LoadRunner如何模拟用户思考时间
发布网友
发布时间:2022-04-19 23:43
我来回答
共1个回答
热心网友
时间:2023-07-06 17:05
打开loadrunner 的Virtual User Generator
菜单栏:Vuser ---Run-Time settings...,切换到Thark Time选项
好吧!为了更好的理解这个界面上设置,现在我们通过一个脚本来分析。
Action()
{
double trans_time; //定义变量
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("i-1.0.0.png",
"URL=http://s1.bdstatic.com/r/www/img/i-1.0.0.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://www.baidu.com/",
"Snapshot=t2.inf",
LAST);
web_url("favicon.ico",
"URL=http://www.baidu.com/favicon.ico",
"Resource=1",
"RecContentType=image/x-icon",
"Referer=",
"Snapshot=t3.inf",
LAST);
web_url("su",
"URL=http://suggestion.baidu.com/su?wd=&cb=window.bdsug.sugPreRequest&sid=1466&t=1362316450913",
"Resource=1",
"RecContentType=app/json",
"Referer=http://www.baidu.com/",
"Snapshot=t4.inf",
LAST);