fan2597 / android-test-kit

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

Retry more times when click becomes long click #52

Open GoogleCodeExporter opened 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