.................................................................................................................Home / Back to Execution Patterns / Back to Test Automation Patterns
Pattern summary
Use variable delays based on events, not fixed delays based on elapsed time

Category
Execution

Context
Use this pattern to make your test run as fast and as efficiently as possible

Description
When SUT execution is slow it may be necessary to add delays to the automation script. Fixed length delays should be avoided, because in order to account for different test environments, traffic situations and so on you have to use the longest possible pause. New generation tools offer the possibility to wait only until an event happens. The tool will wait the given maximum wait-time only if the event doesn’t occur at all.

Implementation
The actual implementation depends on the tool you are using.

Experiences
If you have used this pattern, please add your name and a brief story of how you used this pattern: your context, what you did, and how well it worked - or how it didn't work!

.................................................................................................................Home / Back to Execution Patterns / Back to Test Automation Patterns