Share this page

# lr.think_time

Pauses execution between commands in a script.

## C#

    void lr.think_time( double thinkTime );

## VB.NET

    Sub  lr.think_time( ByVal thinkTime As Double )

Runtime Functions

## Arguments

Name | Comments
--- | ---
thinkTime | The length of the pause, in seconds.

lr.think_time 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

No value returned.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the think time pauses the replay for 1000 seconds. Output messages indicate the beginning and end of the think time period.

Copy code

    lr.output_message("Begin thinking...");
    lr.think_time(1000);
    lr.output_message("Finish thinking...");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: