51Testing软件测试论坛
标题:
菜鸟刚学习,为什么使用lR11录制完发现脚本每个页面都被录制了两遍?
[打印本页]
作者:
fcholy
时间:
2014-6-8 22:51
标题:
菜鸟刚学习,为什么使用lR11录制完发现脚本每个页面都被录制了两遍?
录制的脚本如下,为什么感觉每个页面都被录制了两遍,回放提示 ”You've reached this page incorrectly (probably a bad user session value). Please use this link.“
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("WebTours_2",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
"Name=username", "Value=user01", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
lr_think_time(6);
web_submit_data("login.pl_2",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
"Name=username", "Value=user01", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=56", ENDITEM,
"Name=login.y", "Value=11", ENDITEM,
LAST);
web_submit_data("login.pl_3",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=113587.546780073fitczfQptDHfDfAffpQfzzcf", ENDITEM,
"Name=username", "Value=user01", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=56", ENDITEM,
"Name=login.y", "Value=11", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t5.inf",
LAST);
web_add_cookie("MSO=SID&1402238265&MSO_JSFormSubmit1&on&MSO_ServerErrorsProb&50&MSO_ServerLoadProb&50; DOMAIN=127.0.0.1");
web_add_cookie("MTUserInfo=firstName&&address2&&username&user01&hash&49&lastName&%0A&address1&&creditCard&&expDate&%0A; DOMAIN=127.0.0.1");
web_image("SignOff Button_2",
"Alt=SignOff Button",
"Snapshot=t6.inf",
LAST);
return 0;
}
复制代码
作者:
nj_chenwei
时间:
2014-6-10 17:32
看不懂
作者:
xiaoguai1217
时间:
2014-6-11 10:12
IE什么版本? 换个6或7.
录制时用点击登录,不要回车。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2