Delay Built-ins¶
Delay Built-ins cause the current execution thread to sleep for the specified number of seconds.
Syntax
1 | delay(<seconds Number>) |
Parameter
- seconds - The sleep duration in seconds
Example 1 - Delay for 10 Seconds
1 2 3 4 5 | stepdef "check {} contains text {}" /url, text/ request := Http.get(url).build() response := Http.executeHttpRequest(request) delay(10) end |
Example 2 - Delay for Half a Second
1 | delay(0.5) |
Example 3 - Delay for 3 Seconds
1 | delay("abc".length()) |
Example 4 - Delays for 0.33333333333333333333 Seconds
1 2 | frac := 1/3 delay(frac) |