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.
f19861ec1ab296b22194533bc3fbdcad43e15766 .. f19a891669cbf98bca0e2f6e4d480f4c997d28cb replaced all the uses of sleep by wait. This change has improved the performance and reliability of the automated UI tests.
The wait methods such as
waitUntil
andwaitWhile
in classSWTBotFactory
take anICondition
and proceed to the next step of the script depending on when the evaluation of the condition changes and the specified timeout. If we replacesleep
by the wait methods in the UI tests of CodingSpectator, we'll get more robust tests that might even run faster.