osama-raddad / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Retry more times when click becomes long click #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Do onView(withId(xxx)).perform(click(rollback()) on a view that has different 
behavior between click and long click. When it becomes long click, it does the 
rollback action. It retries three times before it gives up.

What is the expected output? What do you see instead?
While it is very rare, I still can see it fails three times in a row, 
especially when I run several emulators on the same machine in parallel. I 
don't see any reason why it shouldn't be something higher like 10 instead of 3. 
I don't care if it tries 5 or 8 times before finally being able to perform the 
right click, but if it fails my test because it fails to click in three tries, 
that is annoying.

What version of the product are you using? On what operating system?
Espresso 1.1

Please provide any additional information below.

Original issue reported on code.google.com by K76...@gmail.com on 5 Feb 2014 at 10:24

GoogleCodeExporter commented 9 years ago
Increasing number of retries is not a stable solution. We are exploring other 
workarounds, but it will be a while before we have a good solution for this.

Original comment by vale...@google.com on 30 Mar 2015 at 8:52