Share this page

# nca_set_think_time

Session Functions

Sets the think time range.

    void nca_set_think_time( DWORD start_range, DWORD end_range);

start_range | The beginning of the think time range in milliseconds.
end_range | The end of the think time range in milliseconds.

The nca_set_think_time function specifies a think time range to be used during script execution. The test uses a random think time from within the specified range and pauses after each action for the length of the think time.

You can define constants for the start and end ranges at the beginning of the script. This allows you to change the range at a single point in the script (see the example).

## Return Values

Oracle NCA Error Codes

## Parameterization

Parameterization is not available for this function.

## Example

In the following example, the nca_set_think_time function sets the think time range from 2000 to 5000 milliseconds using define statements.

Copy code

    #define MINTHINK 2000
    #define MAXTHINK 5000
    int LR_FUNC Action(LR_PARAM p) {
        nca_set_think_time(MINTHINK, MAXTHINK);
        nca_set_window ("ttstpdemo :");
        nca_button_press ("OK");
        lr_rendezvous("StartActions");
    }

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: