[Calabash] Calabash-iOS on Physical Devices

晚上11:11

Calabash-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.framework

After that, you have build your apps on real machine.


2. Install and generate Calabash-ios folder

$ 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}')

[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

You Might Also Like

0 意見