TA的每日心情 | 开心 2016-7-15 11:52 |
---|
签到天数: 8 天 连续签到: 1 天 [LV.3]测试连长
|
2#
楼主 |
发表于 2015-8-12 13:50:13
|
只看该作者
Action()
{
web_reg_save_param("login","LB=Name=userSession Value=","RB=>",LAST);
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("WebTours_2",
"URL=http://127.0.0.1:1080/WebTours",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_url("header.html",
"URL=http://127.0.0.1:1080/WebTours/header.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("welcome.pl",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
lr_think_time(6);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"TargetFrame=body",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
//"Name=userSession", "Value=116587.94272985fQQzQQcpDAtVzzzHDfQiVpQfDicf", ENDITEM,
"Name=userSession", "Value={login}", ENDITEM,
"Name=username", "Value=admin", ENDITEM,
"Name=password", "Value=admin", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=73", ENDITEM,
"Name=login.y", "Value=4", ENDITEM,
LAST);
web_submit_data("login.pl_2",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"TargetFrame=body",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=116587.94272985fQQzQQcpDAtVzzzHDfQiVpQfDicf", ENDITEM,
"Name=username", "Value=admin", ENDITEM,
"Name=password", "Value=admin", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=73", ENDITEM,
"Name=login.y", "Value=4", ENDITEM,
LAST);
web_url("login.pl_3",
"URL=http://127.0.0.1:1080/WebTours/login.pl?intro=true",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/login.pl",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_url("welcome.pl_2",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_add_cookie("MSO=SID&1439278153&MSO_JSFormSubmit2&on&MSO_ServerErrorsProb&50&MSO_ServerLoadProb&50; DOMAIN=127.0.0.1");
web_add_cookie("MTUserInfo=firstName&&address2&&username&admin&hash&78&lastName&%0A&address1&&creditCard&&expDate&%0A; DOMAIN=127.0.0.1");
web_url("welcome.pl_3",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
return 0;
}
|
|