|
loadrunner自带的网站,录制登录操作,录制完成之后,回放的时候,不显示用户名和密码
代码如下:
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://se.360.cn/cloud/picinfo.ini", "Referer=", ENDITEM,
LAST);
lr_think_time(15);
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=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=117482.594410693zAtDAVApQfDzcfipAzfH", ENDITEM,
"Name=username", "Value={NewParam}", ENDITEM,
"Name=password", "Value={NewParam_1}", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
return 0;
}
|
|