|
脚本:
1.vuser_init中录制:打开网站首页面。
2.Action中录制:从首页中点击某个行业链接。并对这个点击动作,插入事务点。
Action()
{
lr_rendezvous("v1.5.11_category");
lr_start_transaction("v1.5.11_category");
web_submit_data("search.do",
"Action=http://192.168.1.192/foreground/search.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.192/foreground/category-index-list-action/PROD.html",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=keywords", "Value=", ENDITEM,
"Name=searchType", "Value=info", ENDITEM,
"Name=infoType1", "Value=10", ENDITEM,
"Name=infoType2", "Value=0", ENDITEM,
"Name=cateValue1", "Value=1", ENDITEM,
"Name=cateValue2", "Value=101", ENDITEM,
"Name=cateValue3", "Value=0", ENDITEM,
"Name=cateLevel", "Value=2", ENDITEM,
"Name=point", "Value=0", ENDITEM,
EXTRARES,
"Url=images8/index/0328toptiao.gif", ENDITEM,
"Url=images8/index/0328toptiao3.gif", ENDITEM,
"Url=images8/pub/asistantbg.gif", ENDITEM,
"Url=images8/index/0328bottom2.jpg", ENDITEM,
LAST);
lr_end_transaction("v1.5.11_category", LR_AUTO);
return 0;
}
测试结果:
对于事务点v1.5.11_category测出的响应时间为:从点击那个行业链接到进入二级页面为止(不包括二级页面显示时间)。
问题:我想测出,从点击那个行业链接到进入二级页面,并且等二级页面(我要查找的结果列表)完整显示出来,整个过程的响应时间如何设置函数? |
|