在多个iOS设备上运行cucumber文件 [英] Run cucumber file on multiple iOS devices

查看:393
本文介绍了在多个iOS设备上运行cucumber文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iOS平台(iPhone,iPad)上同时在多个设备上运行黄瓜测试?

How to run cucumber test on multiple devices at the same time on iOS platform(iPhone, iPad) ?

推荐答案

iOS 7及更高版本,这是不可能的,因为Calabash要求应用程序由仪器启动,并且一次只能有一个仪器过程活。

On iOS 7 and above, this is not possible because Calabash requires the app to be launched by instruments and there can be only one instruments process alive at one time.

在iOS& ; 7,可以在测试之前手动启动应用程序,以测试多个设备。 可能有一些解决方法可以在设备上自动启动应用程序(有模拟器),但它们存在于Calabash之外。更有问题的是,Calabash API的一个重要(且不断增长的)部分要求使用乐器启动应用程序。

On iOS < 7, it is possible to test against multiple devices iff you manually launch the app before testing. There might be some work-arounds to automatically launch the app on the device (there are for the simulator), but they exist outside of Calabash. More problematic is that a significant (and growing) portion of the Calabash API requires that the app be launched using instruments.

7,使用DEVICE_ENDPOINT和DEVICE_TARGET指定要定位的设备。

On iOS < 7, use DEVICE_ENDPOINT and DEVICE_TARGET to specify which device to target.

# for iOS < 7 only

# device A
# launch the app manually on the device
$ DEVICE_ENDPOINT=<ip:port> DEVICE_TARGET=<udid> cucumber

# device B in another shell
# launch the app manually on the device
$ DEVICE_ENDPOINT=<ip:port> DEVICE_TARGET=<udid> cucumber

这篇关于在多个iOS设备上运行cucumber文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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