|
3#
楼主 |
发表于 2015-7-17 18:00:29
|
只看该作者
录制的脚本是这样的
Action()
{
web_url("index.htm",
"URL=http://127.0.0.1:1080/WebTours/index.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(13);
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=login.x", "Value=57", ENDITEM,
"Name=login.y", "Value=10", ENDITEM,
LAST);
lr_output_message("登录用户为%s",lr_eval_string("{username}"));
lr_output_message("密码为%s",lr_eval_string("{password}"));
return 0;
} |
|