|
请教LR8.0自动示例中,手动关联登陆脚本出现的问题
这个是自动关联的,回放的时候能够通过
#include "web_api.h"
Action()
{
//自动关联(关联后回放脚本时,可以通过)
web_reg_save_param( "WCSParam_Diff1",
"LB=userSession value=",
"RB=>",
"Ord=1",
"Search=Body",
"RelFrameId=1.2.1",
LAST);
//手动关联(关联后回放脚本,不能通过)
web_reg_save_param("login_session",
"LB=userSession value=",
"RB=>",
"Ord=ALL",
"Search=Body",
LAST);
手动关联出错:Action.c(50): Error -27987: Requested image not found [MsgId: MERR-27987]
Action.c(50): web_image("SignOff Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
web_url("MercuryWebTours",
"URL=http://localhost/MercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(6);
web_submit_data("login.pl",
"Action=http://localhost/MercuryWebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/MercuryWebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={WCSParam_Diff1}", ENDITEM,
"Name=username", "Value=wxq", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=36", ENDITEM,
"Name=login.y", "Value=9", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t3.inf",
LAST);
return 0;
}
为什么我的自动关联有时候可以,有时候不行 |
|