lr_think_time
Pauses execution between commands in a script.
void lr_think_time( double thinkTime );
| Alphabetical Listing - C Language Utility 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 is returned.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following segment, lr_think_time instructs the script to pause for 10 seconds after accessing a link and submitting a form.
web_link("1 Book Search:", "Text=1 Book Search:", LAST );
lr_think_time(10);
web_submit_form("db2net.exe", ITEMDATA, "name=library.TITLE",
"value=UNIX", ENDITEM, "name=library.AUTHOR", "value=",
ENDITEM, LAST );
lr_think_time(10);web_url("index.html", "URL=http://dogbert/index.html", "TargetFrame=",
"RecContentType=text/html", LAST );

