我想将Iphone连接到MAC mini,并使用Xamarin UI测试从Windows机器上对其进行远程运行测试 [英] I would like to connect my Iphone to a MAC mini and remotely run tests on it from my Windows machine using Xamarin UI test

查看:263
本文介绍了我想将Iphone连接到MAC mini,并使用Xamarin UI测试从Windows机器上对其进行远程运行测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试执行针对Xamarin.UI.Test框架编写的UI测试脚本时,出现"Windows不支持iOS测试" 的错误消息.

I am getting the error saying "iOS tests are not supported on Windows" while trying to execute UI test script written against the Xamarin.UI.Test framework.

是否可以通过Visual Studio 2017(Windows计算机)在IOS应用上远程运行UI测试?

Appium具有远程服务器功能,使我们能够连接到Mac并运行测试脚本. Xamarin UI测试是否具有这样的功能?

Appium has a remote server feature which enable us to connect to mac and run test script. Does Xamarin UI test has any feature like this?

推荐答案

不支持使用Mac Agent从Windows运行iOS Xamarin.UITests.

Running iOS Xamarin.UITests from Windows using the Mac Agent is not supported.

原因:

UITest驱动程序正在使用Apple的XCUITest来驱动UI自动化 这与Xamarin的iOS远程处理方式不兼容 有效(基本上是UI"hack").

The UITest driver is using Apple's XCUITest to drive the UI automation and that is not compatible with the way that Xamarin's iOS remoting works (basically a UI "hack").

解决方案:

您可以改为使用Xamarin Studio在Mac上直接运行它们.

You can instead run them directly on the Mac using Xamarin Studio.

参考:如何在VS上使用VS运行测试iOS模拟器(在Mac上)

这篇关于我想将Iphone连接到MAC mini,并使用Xamarin UI测试从Windows机器上对其进行远程运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆