Pete,
When I try to launch the app from the command line, this is what I
get:
PING
FAILED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
PING
FAILED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
PING FAILED!!!!!!!!!!!
PING
FAILED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Given I launch the app # step_definitions/
launch_steps.rb:1
Encountered 1 timeouts while launching the app.
Encountered 2 timeouts while launching the app.
Encountered 3 timeouts while launching the app.
Encountered 4 timeouts while launching the app.
Encountered 4 timeouts in a row while trying to launch the app.
(RuntimeError)
./step_definitions/launch_steps.rb:33
./step_definitions/launch_steps.rb:23:in `loop'
./step_definitions/launch_steps.rb:23:in `/^I launch the app$/'
FanFueledAutomatedTesting.feature:8:in `Given I launch the app'
The way that I have been running my scripts is a little different.
First, I have to launch the project in the simulator. Then, I run my
cucumber command. The app then back's out of the app (as if it were
touching the home screen). Upon seeing the home screen on the
simulator, I relaunch the app by pressing it's icon within the
simulator. By this time, "FRANK!" gets spelled and the script starts.
When it is time for the next scenario to start running, the app once
again returns to the home screen. And yet again, I have to press the
app's icon in order for the scenarios to start running. If I were to
let my script continue running without manually launching it from the
simulator, here is what I see:
FRAN Given I launch the app # step_definitions/
launch_steps.rb:1
Encountered 1 timeouts while launching the app.
Encountered 2 timeouts while launching the app.
Encountered 3 timeouts while launching the app.
Encountered 4 timeouts while launching the app.
Encountered 4 timeouts in a row while trying to launch the app.
(RuntimeError)
./step_definitions/launch_steps.rb:33
./step_definitions/launch_steps.rb:23:in `loop'
./step_definitions/launch_steps.rb:23:in `/^I launch the app$/'
FanFueledAutomatedTesting.feature:16:in `Given I launch the app'
When I touch "btn search" # frank-cucumber-0.6.1/lib/
frank-cucumber/core_frank_steps.rb:178
Then I wait to see "Search" # frank-cucumber-0.6.1/lib/
frank-cucumber/core_frank_steps.rb:6
When I touch "Cancel" # frank-cucumber-0.6.1/lib/
frank-cucumber/core_frank_steps.rb:178
Then I wait to see "btn search" # frank-cucumber-0.6.1/lib/
frank-cucumber/core_frank_steps.rb:6
I do believe that it has to do with my "Given I launch the app" step.
I have just been using the default "launch_steps.rb" file located
within features/step_definitions/launch_steps.rb. As stated above, I
set the APP_BUNDLE_PATH withiin the env.rb file. My APP_BUNDLE_PATH
could have been initialized incorrectly. I read on another post that
Xcode puts the build's in a different folder than where the app is
stored, however when I try to find a build I am unsuccessful. Any
ideas?
Once again, I appreciate all the help and effort that you both have
provided. Thank you so much,
John
On Aug 4, 7:17 am, Pete Hodgson <
phodg...@thoughtworks.com> wrote:
> Hi John,
>
> When you the app freezes after FR, can you try leaving the script for a
> minute and see if it manages to relaunch the app and get going again?
> Starting the app can be slightly flaky, and there are several levels of
> timeouts which try to workaound various lockups. It could be that one of
> those timeouts will recover from the state the simulator gets in.
>
> Cheers,
> Pete
>