background image
<< Customizing Baan Vuser Scripts | Handling Exceptions >>
<< Customizing Baan Vuser Scripts | Handling Exceptions >>

Think Time

Creating Vuser Scripts
Chapter 24, page 410
Baan Vuser Scripts · Creating Baan Vuser Scripts
In
Think Time
You can set the think time range for script execution. The think time emulates the
work pattern of an actual user--the time the user pauses between actions. You set
the beginning and end of a think time range using the set_think_time function.
After each statement LoadRunner pauses for the duration of the think time, a
random value within the specified range.
If your desired think time range is constant throughout the script, you can define
the beginning and end ranges as constants as shown in the example below.
In the following example, the think time range was set from 500 to 1000
milliseconds:
#define MINTHINK 500
#define MAXTHINK 1000
int LR_FUNC Actions(LR_PARAM p)
{
set_think_time(MINTHINK,MAXTHINK);
set_window ("Menu browser [User: bsp ] [812]", 10);
. . .