|
随着查询内容的参数化,申请的资源不一样,是关联还是参数化
这是脚本里面的一段,红色的部分是查询条件,我想对每个虚拟用户进行参数化,让它们请求不同的资源
web_submit_data("SearchTrain.aspx_2",
"Action=http://xxx.xxx.xx.xxx:8099/Report/SearchTrain.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://xxx.xxx.xx.xxx:8099/Report/SearchTrain.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE",
"Value=这里是viewstate的值,很长一大串,省略", ENDITEM,
"Name=to", "Value=2013-12-03", ENDITEM,
"Name=Dropshi", "Value=00", ENDITEM,
"Name=Dropfen", "Value=00", ENDITEM,
"Name=from", "Value=2013-12-05", ENDITEM,
"Name=DropDshi1", "Value=23", ENDITEM,
"Name=Dropfen1", "Value=59", ENDITEM,
"Name=Line", "Value=5", ENDITEM,
"Name=Train", "Value=", ENDITEM,
"Name=DropDownListStation", "Value=0", ENDITEM,
"Name=DropDownListPlace", "Value=0", ENDITEM,
"Name=AspNetPager1_input", "Value=1", ENDITEM,
"Name=ImageButton1.x", "Value=33", ENDITEM,
"Name=ImageButton1.y", "Value=12", ENDITEM,
EXTRARES,
//(问题在下面URL这部分内容是随着查询条件的变化而变化的,应该做关联还是参数化呢?)
"Url=../Image/qzrkal45fuhmeg55jcge4445/zi2orm1s.hgz.bmp",
"Referer=http://xxx.xxx.xx.xxx:8099/Wavedata/Wave.aspx?motor_id=1&time=2013/12/5
23:59:12&train=085086&station=1&place=2", ENDITEM,
"Url=../Image/qzrkal45fuhmeg55jcge4445/jnh10yoz.t3g.bmp",
"Referer=http://xxx.xxx.xx.xxx:8099/Wavedata/Wave.aspx?motor_id=1&time=2013/12/5
23:59:12&train=085086&station=1&place=2", ENDITEM,
"Url=../Images/featuredfill.gif",
"Referer=http://xxx.xxx.xx.xxx:8099/Wavedata/Wave.aspx?motor_id=1&time=2013/12/5
23:59:12&train=085086&station=1&place=2", ENDITEM,
"Url=../Images/fanhui.gif",
"Referer=http://xxx.xxx.xx.xxx:8099/Wavedata/Wave.aspx?motor_id=1&time=2013/12/5
23:59:12&train=085086&station=1&place=2", ENDITEM,
LAST);
高手帮帮忙? |
|