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

查看:263
本文介绍了如何在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 Test Cloud和Xamarin UI Test之间的差异.有人可以解释吗?

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)编写的测试(因此您可以针对各种不同的OS版本/硬件类型进行测试) ). -可在此链接找到更多信息.

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天全站免登陆