calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

Getting Retrying.. HTTPClient::ReceiveTimeoutError: (execution expired) and app becomes unresponsive after using touch method in steps. #1349

Open sravanibattula opened 7 years ago

sravanibattula commented 7 years ago

Hello @jmoody ,

I am getting Retrying.. HTTPClient::ReceiveTimeoutError: (execution expired) message when I execute test script because of touch method (device agent touch or calabash touch,I used wait_for_none_animating and wait_for_element_exists and a 10 seconds sleep to make calabash touch method work) but the both touch methods work fine in calabash-ios console though.I get Retrying.. HTTPClient::ReceiveTimeoutError: (execution expired) after touching the element I need to.

      wait_for_none_animating
      sleep(2)
      touch("* marked:'Add'")
      sleep(2)
      mm_app_keyboard_hide
      sleep(2)
      wait_for_none_animating
      wait_for_element_exists("* marked:'Save'")
      sleep(5)
      touch("* marked:'Save'")

After touching save app becomes unresponsive.

I am using calabash-ios 0.21.1, run_loop 2.6.2, calabash-cucumber 0.21.2. I executed my test case on simulator iPhone8(11.1) with Xcode 9

jmoody commented 7 years ago

but the both touch methods work fine in calabash-ios console

Then you need to wait longer?

sravanibattula commented 7 years ago

It touches the element if I wait longer and the app becomes unresponsive after that..App works normal if I do the same thing in console though.

The difference I noticed is in console if I do touch("* marked:'Add'") it opens the box as expected but I do the same thing in run it shows the keyboard too..so I have to do a keyboard_hide if I want to touch save button.Do you think this caused the issue?

jmoody commented 7 years ago

The difference I noticed is in console if I do touch("* marked:'Add'") it opens the box as expected but I do the same thing in run it shows the keyboard too..so I have to do a keyboard_hide if I want to touch save button.Do you think this caused the issue?

This sounds like a UI bug. The keyboard is either appearing incorrectly or the keyboard is appearing correctly and it is hiding a UI element. How would a user be able to touch the Add button?

Keep in mind, I have no idea what your app is or what it looks like. You will need to paste screenshots or a movie to get more help.

seshusangeetha commented 6 years ago

I am not getting any UI specific issues in my case but app becomes inresponsive resulting in the failure of the step and the test