Hey Karl,
thx for the quick fix. I tried it out with the calabash-cucumber version: 0.9.145.pre4
Command
DEVICE_ENDPOINT=
http://192.168.1.221 BUNDLE_ID=RichardBKirk.DollarBets-cal DEVICE_TARGET=d22302cbe3241099deaea85ed23ee26a3fb95fed cucumber
Result
- sometimes it works, sometimes not. I really tried to find a pattern when it was working and when not, but it is totally random. Even I was just waiting for 25 minutes. Then I tried it again (without replugging the device or something else) and I got a different error as 25 minutes before.
My procedure
1. Updated calabash version (client and server version are up-to-date with 0.9.145.pre4
2. Installed iOS app via XCode
3. Executed cucumber command (see above)
Different errors
1. Instruments Trace Error : Failed to start trace. => App didn't start
### Starting App: RichardBKirk.DollarBets-cal ###
Time out waiting for UIAutomation run-loop to Start.
Instruments Trace Error : Failed to start trace.
(RuntimeError)
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:120:in `run_with_options'
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:272:in `run'
/Library/Ruby/Gems/1.8/gems/calabash-cucumber-0.9.145.pre4/lib/calabash-cucumber/launcher.rb:75:in `relaunch'
/Users/mj/Documents/workspace/Dollar-Bets/features/support/01_launch.rb:29:in `Before'
Given I am on the Welcome Screen # features/step_definitions/my_first_steps.rb:1
Then I swipe left # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:211
And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:149
Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps
2. Time out waiting for UIAutomation run-loop to Start. => App started, but testcases were not executed
### Starting App: RichardBKirk.DollarBets-cal ###
Time out waiting for UIAutomation run-loop to Start.
2013-05-18 16:26:45.821 instruments[95544:1207] Connection to the remote device lost while launching target. Aborting...
2013-05-18 16:26:45.823 instruments[95544:1207] Recording cancelled : At least one target failed to launch; aborting run
Instruments Trace Error : Failed to start trace.
(RuntimeError)
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:120:in `run_with_options'
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:272:in `run'
/Library/Ruby/Gems/1.8/gems/calabash-cucumber-0.9.145.pre4/lib/calabash-cucumber/launcher.rb:75:in `relaunch'
/Users/mj/Documents/workspace/Dollar-Bets/features/support/01_launch.rb:29:in `Before'
Given I am on the Welcome Screen # features/step_definitions/my_first_steps.rb:1
Then I swipe left # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:211
And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:149
3. with DEVICE_TARGET=device insted of UDID => App didn't start
### Starting App: RichardBKirk.DollarBets-cal ###
Time out waiting for UIAutomation run-loop to Start.
Instruments Usage Error : Unknown hardware device specified.
(RuntimeError)
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:120:in `run_with_options'
/Library/Ruby/Gems/1.8/gems/run_loop-0.0.9/lib/run_loop/core.rb:272:in `run'
/Library/Ruby/Gems/1.8/gems/calabash-cucumber-0.9.145.pre4/lib/calabash-cucumber/launcher.rb:75:in `relaunch'
/Users/mj/Documents/workspace/Dollar-Bets/features/support/01_launch.rb:29:in `Before'
Given I am on the Welcome Screen # features/step_definitions/my_first_steps.rb:1
Then I swipe left # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:211
And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.145.pre4/features/step_definitions/calabash_steps.rb:149
Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps
Let me know if I can support you on this topic somehow. I would be very cool to launch the app via calabash-cucumber. I tried to check the source code of "run_loop" but couldn't find it anywhere..
Markus