|
0测试积点
本帖最后由 yyl551 于 2011-8-31 19:30 编辑
录制LR订票系统
流程:登陆-注销
脚本:
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",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=106497.446091535ftHHQzcpDiDDDDDDDcizHpHHtD", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=36", ENDITEM,
"Name=login.y", "Value=1", ENDITEM,
LAST);
lr_think_time(4);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
}
脚本回放提示:Action.c(33): Error -27987: Requested image not found [MsgId: MERR-27987]
Action.c(33): web_image("SignOff Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
这是因为未对userSession、login.x、login.y做关联。
问题:为什么LR自带的自动扫描关联功能扫描不到需要关联的地方吗? |
|