51Testing软件测试论坛
标题:
请教高手,录制示例系统的脚本为何无法回放
[打印本页]
作者:
琰儿
时间:
2007-6-21 15:58
标题:
请教高手,录制示例系统的脚本为何无法回放
提示这样的错误:Action.c (11): undeclared identifier `LAST'
Action.c (17): undeclared identifier `ITEMDATA'
Action.c (18): undeclared identifier `ENDITEM'
c:\\documents and settings\\sina.sinadellgx280\\local settings\\temp\\noname4\\\\combined_noname4.c (5): 3 errors, not writing pre_cci.ci
这是录制的脚本:
Action()
{
web_url("mercuryWebTours",
"URL=http://127.0.0.1:1080/mercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(15);
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=39", ENDITEM,
"Name=login.y", "Value=12", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);
lr_think_time(5);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=06/22/2007", ENDITEM,
"Name=arrive", "Value=Los Angeles", ENDITEM,
"Name=returnDate", "Value=06/23/2007", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=57", ENDITEM,
"Name=findFlights.y", "Value=10", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=030;251;06/22/2007", ENDITEM,
"Name=reserveFlights.x", "Value=34", ENDITEM,
"Name=reserveFlights.y", "Value=6", ENDITEM,
LAST);
lr_think_time(10);
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=12345678", ENDITEM,
"Name=expDate", "Value=06/06", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=48", ENDITEM,
"Name=buyFlights.y", "Value=5", ENDITEM,
LAST);
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t7.inf",
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t8.inf",
LAST);
return 0;
}
作者:
snnylip
时间:
2008-7-24 17:07
兄台,如何解决的
作者:
duola1119
时间:
2008-7-25 08:53
从错误提示中看是没有定义,但是这几个都是LR自带的关键字,不可能没有定义啊,你检查检查你安装的LR是不是缺少什么东西,或者你重新装一下吧。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2