vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

Wait instead of sleep in SWTBot tests #226

Closed reprogrammer closed 13 years ago

reprogrammer commented 13 years ago

The wait methods such as waitUntil and waitWhile in class SWTBotFactory take an ICondition and proceed to the next step of the script depending on when the evaluation of the condition changes and the specified timeout. If we replace sleep by the wait methods in the UI tests of CodingSpectator, we'll get more robust tests that might even run faster.

reprogrammer commented 13 years ago

f19861ec1ab296b22194533bc3fbdcad43e15766 .. f19a891669cbf98bca0e2f6e4d480f4c997d28cb replaced all the uses of sleep by wait. This change has improved the performance and reliability of the automated UI tests.