|
本帖最后由 ymwang119 于 2012-5-10 16:36 编辑
回复 8# xiongxixin
脚本修改如下试试:
Action()
{
lr_rendezvous("login_10");
lr_start_transaction("login_10");
lr_think_time(10);
web_reg_save_param("userSession","LB=Value=\"","RB=\"","NotFound=ERROR","Search=All", LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={userSession}", ENDITEM,
"Name=username", "Value={Username}", ENDITEM,
"Name=password", "Value={Password}", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=44", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
lr_end_transaction("login_10",LR_AUTO);
return 0;
} |
|