51Testing软件测试论坛
标题:
LR9.1回放订票系统的错误,请求解决
[打印本页]
作者:
lilyxucsj
时间:
2010-8-30 22:06
标题:
LR9.1回放订票系统的错误,请求解决
脚本:
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(13);
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=103942.969137303fDtzfzzptHfDcAHQpDQiif", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", 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=103942.969137303fDtzfzzptHfDcAHQpDQiif", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=42", ENDITEM,
"Name=login.y", "Value=9", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=08/31/2010", ENDITEM,
"Name=arrive", "Value=Denver", ENDITEM,
"Name=returnDate", "Value=09/01/2010", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=39", ENDITEM,
"Name=findFlights.y", "Value=9", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=000;0;08/31/2010", ENDITEM,
"Name=reserveFlights.x", "Value=64", ENDITEM,
"Name=reserveFlights.y", "Value=7", ENDITEM,
LAST);
lr_think_time(22);
web_submit_form("reservations.pl_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=firstName", "Value=Joseph", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=123456", ENDITEM,
"Name=expDate", "Value=2010", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=49", ENDITEM,
"Name=buyFlights.y", "Value=7", ENDITEM,
LAST);
lr_think_time(5);
web_image("SignOff Button",
"Alt=SignOff Button",
"Ordinal=1",
"Snapshot=t7.inf",
LAST);
return 0;
}
回放时会有这样错误:
Action.c(44): Error -27987: Requested image not found [MsgId: MERR-27987]
Action.c(44): web_image("Search Flights Button") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
请求高手解决
作者:
msnshow
时间:
2010-8-31 08:57
你添加的图片检查没找到,建议回放时打开display窗口看看具体情况
作者:
PrefTest
时间:
2010-8-31 10:21
userSession没有做关联处理
作者:
云层
时间:
2010-8-31 11:08
由于登陆没有关联sessionid导致登陆失败,最后图片退出按钮点不到出错
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2