Next: , Previous: allowerrorcodes keyword, Up: Test Case control


5.7.5 sleep keyword

The sleep keyword is used to pause the execution of a test case for a specified timeout. Sleep has one mandatory argument, which is described below.

The sleep keyword only stops the test case line-runner active object for the specified period. All the other user active objects will continue to be serviced. That is, no further lines of the test case file will be executed during that delay, but the process is not halted; any user active objects may still be completed.

Argument
Timeout
The timeout for the pause, specified in milliseconds.

The sleep keyword can be used, for example, in the following way:

     sleep 10000   // pause for 10 seconds

Note: sleep keyword works in the same way as deprecated pausecombiner keyword.