|
小弟新学LOADRUNNER,现在在尝试性的应用,在修改脚本的地方有一些问题想请教
脚本截断
----------------
"Url=../temp/treeimg/tree4.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
"Url=../temp/treeimg/3.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
LAST);
lr_think_time( 6 );
web_submit_form("searchmoney.aspx_2",
"Snapshot=t4.inf",
ITEMDATA,
"Name=year", "Value=2005", ENDITEM,
"Name=month", "Value=1", ENDITEM,
"Name=Button1", "Value=查询", ENDITEM,
EXTRARES,
"Url=../flash/1984.swf", "Referer=", ENDITEM,
"Url=../images/middle2.gif", ENDITEM,
"Url=../images/middle1.gif", ENDITEM,
"Url=../images/abc_03.gif", ENDITEM,
"Url=../images/abc_07.gif", ENDITEM,
"Url=../images/abc_05.gif", ENDITEM,
"Url=../images/abc_08.gif", ENDITEM,
"Url=../images/middle3.gif", ENDITEM,
"Url=../images/10.gif", ENDITEM,
"Url=../images/abc_01.gif", ENDITEM,
"Url=../images/abc_02.gif", ENDITEM,
"Url=../temp/treeimg/1.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
"Url=../temp/treeimg/tree3.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
"Url=../temp/treeimg/tree4.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
"Url=../temp/treeimg/3.gif", "Referer=http://172.16.123.120/temp/tree5.htm", ENDITEM,
LAST);
lr_think_time( 10 );
web_submit_form("searchmoney.aspx_3",
-----------------------
这是一个宿舍的管理系统,这一步的内容是登陆之后,对年月的水电费进行查询
我现在的想法是模拟多用户并发登陆,每个用户在登陆之后间隔随机时间进行查询,而且查询的次数也是随即
也就是说
在lr_think_time( 6 );这一段,要怎么样才可以让它变成随即的1-60秒呢?
还有就是,因为想设置不同的用户重复这一段操作(随机)1-5次
有什么方法可以实现呢?
希望前辈可以指点一下 |
|