Professional Documents
Culture Documents
Prerequisites:
Ruby 2.0 need to be installed in local mac machine.
Setup:
1. The following gems need to be installed (this make take some time because of dependencies)
gem install calabash-cucumber
(Note it may needs to run sudo gem install calabash-cucumber if it gets ERROR: While executing
gem ... (Gem::FilePermissionError)).
ex :- for gem install calabash-cucumber
Need to go to the NMCFA (which contain .xcodeproject) folder in terminal for setup the project.
ex: - Administrators-Mac-mini-23:NMCFA bikash$ calabash-ios setup
5. After build and run the source code the, Started LPHTTP server on port 37265
message should be displayed on the console on successful setup with calabash.
Need to go to the NM_Func_Atmn folder in the terminal for running the test scripts.
8
. Run the generated test on Device:
Calabash iOS supports running tests on physical devices. Executing a test on a physical device is quite easy, but
there are a few things to be aware of.
1) Make sure the app you are running on device is installed on the device and is properly linked with Calabash iOS
(i.e., prints "Calabash Server" in the log).
2) Wifi must be enabled on the device. Write down its IP-address. Make sure you don't have any firewall or antivirus
software blocking communication between iDevice and Mac.
3) Finally, you must run cucumber with the DEVICE_ENDPOINT environment variable set to http://ip:37265, where ip
is the WiFi IP address of the device.
IMPORTANT NOTE
The version of Instruments that ships with Xcode 5 does not allow testing on devices running iOS 5.
ex:
cucumber