JavaScript Functions > Alphabetical Listing of Utility Functions (lr) > lr.thinkTime

lr.thinkTime

Pauses execution between commands in a script.

ExampleRun-Time Functions

Syntax

lr.thinkTime( thinkTime );

Arguments

ArgumentComments
thinkTime The length of the pause, in seconds.

lr.thinkTime allows you to pause test execution during a run. This is especially useful in simulating think time, the time a real user pauses to think between actions.

When using cross-step downloads or asynchronous functions of any kind, a long think time may cause the download to time out.

Return Values

Not applicable

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

lr.thinkTime instructs the script to pause for 10 seconds.

lr.thinkTime(10);