Run cucumber file on multiple iOS devices

拜拜、爱过 提交于 2019-12-11 18:38:22

问题


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


回答1:


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.

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.

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


来源:https://stackoverflow.com/questions/24476849/run-cucumber-file-on-multiple-ios-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!