如何在 iOS 模拟器上使用 VS 运行测试(在 mac 上) [英] How to run test using VS on iOS simulator(on mac)

查看:77
本文介绍了如何在 iOS 模拟器上使用 VS 运行测试(在 mac 上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚开始调查 Xamarin 测试云.我想使用 VS 编写一个简单的测试,并在运行在 Mac 机器上的 iOS 模拟器上运行此测试.我已连接到 Xamarin Mac 代理.Agent 与 iOS 模拟器在同一台 Mac 机器上运行.

Just started investigate the Xamarin Test Cloud. I want to write a simple test using VS and run this test on iOS simulator, which is running on Mac machine. I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.

当我尝试使用这样的东西时,我遇到了Windows 不支持 iOS 测试"的异常:

I've faced with exception "iOS tests are not supported on Windows" when i'm trying to use something like this:

app = ConfigureApp.iOS.StartApp();

我知道我无法在 Windows 上运行 iOS 测试,但我想在 Mac 上的 iOS 模拟器上运行它.

I'm understand that I can't run iOS tests on Windows, but I want to run it on iOS simulator on Mac.

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

Could someone explain me how can I do this? Is it possible?

还有一个问题.如前所述,我刚刚开始使用 xamarin 和测试.我不确定我是否了解 Xamarin 测试云和 Xamarin UI 测试之间的区别.有人能解释一下吗?

And a have another question. As a said I've just started with the xamarin and tests. I'm not shure that I undertand difference between Xamarin Test Cloud and Xamarin UI Test. Could someone explain that?

推荐答案

目前无法从 Visual Studio 在模拟器(在 Mac 上运行)上启动 iOS 测试 - 您必须开始测试从 Mac 上的 Xamarin Studio 开始,以便能够在模拟器或设备上运行测试.

It isn't possible at this time to launch iOS tests on the simulator (running on your Mac) from Visual Studio - you'd have to start the tests from Xamarin Studio on the Mac itself to be able to run the tests in the simulator or on a device.

UITest 是基于 Calabash 的自动化 UI 验收测试框架,允许程序员用 C# 编写和执行测试 - 可在此链接中找到更多信息.

UITest is the Automated UI Acceptance Testing framework based on Calabash that allows programmers to write and execute tests in C# - more info can be found at this link.

Test Cloud 是一项服务,它允许您在我们自己托管的 2,000 多台设备上运行使用 UITest(或 Calabash)编写的测试(因此您可以针对各种不同的操作系统版本/类型的硬件进行测试)).- 可在此链接中找到更多信息.

Test Cloud is a service that allows you to run tests written with UITest (or Calabash) on over 2,000 devices that we host ourselves (so you can test against various different OS versions / types of hardware). - more info can be found at this link.

这篇关于如何在 iOS 模拟器上使用 VS 运行测试(在 mac 上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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