求助: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;
} 这应该不是问题吧! 录制选项--常规--录制--http/HTML级别,选择第一个,在HTML高级中也选择第一个(描述用户脚本的脚本),然后估计就ok了 谢谢大家。第二天录制又好了。 谢谢大家。第二天录制又好了。
页:
[1]