Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Waits and timeouts

Vlado Pakan edited this page Aug 7, 2013 · 24 revisions

Waits are used in case when tests have to wait for some time, event or condition to be passed. Best practice is to use conditional waiting so test continues only in case when specific condition passed so developer can be sure that test is in proper state. Unfortunately there are situation when such a condition doesn't exist. In that case it's fine to pause test for some fixed time period.

Conditional waiting

Red Deer imlements these two main wait classes to perfor conditional waiting

WaitUntil(WaitCondition condition);

WaitWhile (WaitCondition condition);

Clone this wiki locally