51Testing软件测试论坛
标题:
求助:Loadrunner 11脚本出现2个web_submit_data
[打印本页]
作者:
obabyfaceo
时间:
2012-8-20 23:50
标题:
求助:Loadrunner 11脚本出现2个web_submit_data
刚刚接触Loadrunner的菜鸟,软件版本是11.0 。
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(5);
web_submit_data("login.pl",
"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",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=108989.664479546fzAzVffpizzzzzzHDDzDzpQDfc", ENDITEM,
"Name=username", "Value=zk", ENDITEM,
"Name=password", "Value=zk", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
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=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=108989.664479546fzAzVffpizzzzzzHDDzDzpQDfc", ENDITEM,
"Name=username", "Value=zk", ENDITEM,
"Name=password", "Value=zk", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=52", ENDITEM,
"Name=login.y", "Value=11", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
}
作者:
cibsoft
时间:
2012-8-21 14:02
这应该不是问题吧!
作者:
ph5623082
时间:
2012-8-21 22:06
录制选项--常规--录制--http/HTML级别,选择第一个,在HTML高级中也选择第一个(描述用户脚本的脚本),然后估计就ok了
作者:
obabyfaceo
时间:
2012-8-22 21:40
谢谢大家。第二天录制又好了。
作者:
obabyfaceo
时间:
2012-8-22 21:40
谢谢大家。第二天录制又好了。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2