[Calabash] Calabash-iOS on Physical Devices
晚上11:11Calabash-iOS on Physical Devices
0. Prepare the environment
- Installed Xcode
- Installed a new version of Xcode
- Install Ruby
1. Link calabash.framework to your XCode project
Download the calabash.framework
$ bundle exec calabash-ios download
Link the calabash.frameworkAfter that, you have build your apps on real machine.
2. Install and generate Calabash-ios folder
$ gem install calabash-cucumber
$ calabash-ios gen
$ gem install calabash-cucumber
$ calabash-ios gen
3. Start to run your test
- BUNDLE_ID : Your apps bundle_ID
- DEVICE_TARGET : Your devices UDID
- DEVICE_ENDPOINT : Your devices IP
$ export BUNDLE_ID=com.example.MyApp-cal
$ export DEVICE_TARGET=< UDID >
$ export DEVICE_ENDPOINT=http://<ip>:37265
$ bundle exec cucumber
Tips: To get UDID from command line
udid=$(ideviceinfo | grep UniqueDeviceID | awk '{ print $2}')
$ export BUNDLE_ID=com.example.MyApp-cal
$ export DEVICE_TARGET=< UDID >
$ export DEVICE_ENDPOINT=http://<ip>:37265
$ bundle exec cucumber
udid=$(ideviceinfo | grep UniqueDeviceID | awk '{ print $2}')
[Reference]
1. Set calabash-ios framework
https://github.com/calabash/calabash-ios/wiki/Tutorial%3A–Creating-a-cal-Target
2. Name your own devices
https://github.com/calabash/calabash-ios/wiki/Improving-Network-Stability#tip-name-your-devices
3. Test on real devices
https://github.com/calabash/calabash-ios/wiki/Testing-on-Physical-Devices
https://github.com/calabash/calabash-ios/wiki/Improving-Network-Stability#tip-name-your-devices
3. Test on real devices
https://github.com/calabash/calabash-ios/wiki/Testing-on-Physical-Devices
0 意見