RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Sleep inside Waiter.waitForText method can be changed to wait and notitify #776

Closed haitaoz closed 9 years ago

haitaoz commented 9 years ago

Understand UI has to wait till current search view operation return.

We could use wait(timeout) and notify to avoid the last sleep of 500ms on UI thread.

This can improve UI response time by 500ms maximum.

renas commented 9 years ago

Unfortunately the UI is slow therefor we have these sleeps to slow the execution down. Removing them will make the execution to fast which will lead to flaky tests.