When i Build my app it shows test server created, But when i Run a app it shows me the following error which i have mentioned below. For more details i have attached a screenshot please refer it.
Scenario: Then I see "Hello World!" # features/my_first.feature:3
More than one device connected. Specify device serial using ADB_DEVICE_ARG (Ru
ntimeError)
./features/support/app_installation_hooks.rb:18:in Before'
App did not start (RuntimeError)
./features/support/app_life_cycle_hooks.rb:5:in
Before'
Failing Scenarios:
cucumber features/my_first.feature:3 # Scenario: Then I see "Hello World!"
1 scenario (1 failed)
0 steps
0m17.546s
Please help me out with the solution.
It is saying that you have more than one android device (real or emulated) connected to the machine. Calabash uses adb to communicate with the device and adb needs to know which device to talk to if more than one is connected. Either disconnect the device(s) you don't want to use, or set an environment variable with the serial number of your device to ADB_DEVICE_ARG.
You can find the serial number of your device with the command line
adb devices