如何 运行 在 iOS 模拟器上使用 VS 进行测试(在 mac 上)

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

刚刚开始研究 Xamarin 测试云。 我想使用 VS 和 运行 编写一个简单的测试,此测试在 iOS 模拟器上,即 运行ning 在 Mac 机器上。 我已连接到 Xamarin Mac Agent。代理 运行 在与 iOS 模拟器相同的 Mac 机器上。

当我尝试使用类似这样的东西时,我遇到了异常 "iOS tests are not supported on Windows":

app = ConfigureApp.iOS.StartApp();

我知道我不能 运行 iOS 在 Windows 上测试,但我想 运行 在 iOS 模拟器上 iOS Mac.

有人可以解释一下我该怎么做吗?可能吗?

还有一个问题。如前所述,我刚刚开始使用 xamarin 和测试。我不确定我是否理解 Xamarin Test Cloud 和 Xamarin UI Test 之间的区别。有人可以解释一下吗?

目前无法从 Visual Studio 在模拟器上启动 iOS 测试(运行ning 在你的 Mac 上)——你必须在 Mac 本身上从 Xamarin Studio 开始测试,以便能够 运行 在模拟器或设备上进行测试。

UITest 是基于 Calabash 的自动化 UI 验收测试 框架,允许程序员在 C# 中编写和执行测试 - more info can be found at this link.

Test Cloud 是一项 服务,它允许您在我们自己托管的 2,000 多台设备上 运行 使用 UITest(或 Calabash)编写的测试(因此您可以针对各种不同的 OS 版本/类型的硬件进行测试)。 - more info can be found at this link.