51Testing软件测试论坛
标题:
win7+IE9+Loadrunner11,录制了登录和退出的脚本,做了一下手动关联,回放时仍然登...
[打印本页]
作者:
jj_happy
时间:
2015-6-26 15:24
标题:
win7+IE9+Loadrunner11,录制了登录和退出的脚本,做了一下手动关联,回放时仍然登...
Action()
{
web_set_max_html_param_len ("9999");
web_reg_save_param("usersession",
"LB=userSession value=",
"RB=>",
"ORD=1",
LAST);
web_url("WebTours",
"URL=http://127.0.0.1:2080/WebTours/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
//116265.726690968fQiAtVipDVzzzzzHDfiicpfAQQ
web_submit_data("login.pl",
"Action=http://127.0.0.1:2080/WebTours/login.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={usersession}", ENDITEM,
"Name=username", "Value=wangjunjun", ENDITEM,
"Name=password", "Value=admin", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=58", ENDITEM,
"Name=login.y", "Value=7", ENDITEM,
LAST);
web_url("SignOff Button",
"URL=http://127.0.0.1:2080/WebTours/welcome.pl?signOff=1",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
}
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2