lr_think_time()
在脚本中的命令之间暂停执行(添加思考时间)。
void lr_think_time(double thinkTime);
参数说明:
thinkTime:暂停的长度,以秒为单位。
lr_think_time允许您在运行期间暂停测试执行。 这在模拟思考时间,真实用户停止在行动之间思考的时间特别有用。
示例:lr_think_time
在以下段中,lr_think_time指示脚本在访问链接和提交表单后暂停10秒钟。
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);