再附上我修改过的脚本
/*访问系统
*/
lr_rendezvous("username");
lr_start_transaction("username");
lr_think_time(20);
web_submit_form("default.asp",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value={NewParam_1}", ENDITEM,
"Name=password", "Value={NewParam_2}", ENDITEM,
LAST);
web_url("menu_main.asp",
"URL=http://honglei/312/menu_main.asp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=images/barCenter.gif", "Referer=http://10.3.1.128/312/top.asp", ENDITEM,
"Url=images/barBottom.gif", "Referer=http://10.3.1.128/312/top.asp", ENDITEM,
"Url=images/hidetoc2.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/hidetoc1.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/web.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/open.png", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/close.png", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/T.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/file.png", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/L.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=htc/test.htc", "Referer=", ENDITEM,
"Url=images/Tplus.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/Lplus.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/Tminus.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/Lminus.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/empty.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
"Url=images/I.gif", "Referer=http://10.3.1.128/312/dtree.asp", ENDITEM,
LAST);
lr_end_transaction("username", LR_AUTO); |