c# - 我想将我的 Iphone 连接到 MAC mini,并使用 Xamarin UI 测试从我的 Windows 计算机远程运行测试

标签 c# macos xamarin.forms xamarin.ios xamarin.uitest

我在尝试执行针对 Xamarin.UI.Test 框架编写的 UI 测试脚本时收到错误消息:“Windows 不支持 iOS 测试”

有没有办法从 Visual studio 2017(Windows 机器)远程运行 IOS 应用程序的 UI 测试?

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

最佳答案

不支持使用 Mac 代理从 Windows 运行 iOS Xamarin.UITests。

原因:

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 上运行它们。

引用:How to run test using VS on iOS simulator(on mac)

关于c# - 我想将我的 Iphone 连接到 MAC mini,并使用 Xamarin UI 测试从我的 Windows 计算机远程运行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53494275/

相关文章:

c# - 以编程方式修改文件内容

c# - 获取总结果数并允许在与 MongoDB 的同一查询中进行分页

c++ - Mac OSX libc++ 缺少 std::uncaught_exceptions 符号

c# - Xamarin Forms 管理闹钟

c# - 键盘在 Xamarin.Forms 搜索栏上卡住

javascript - Paypal智能按钮结账无需发货

c# - ASP.NET Core 3.1 中基于角色的授权,带有 Identity 和 ExternalLogin

macos - Swift 字符串变量本地化

macos - find 缺少选项 -printf,现在怎么办?

xamarin.ios - Xamarin.Forms 在 UIDocumentInteractionController 中看不到打印选项