TA的每日心情 | 擦汗 2016-3-16 15:27 |
---|
签到天数: 25 天 连续签到: 1 天 [LV.4]测试营长
|
本帖最后由 thirfing 于 2013-5-13 10:08 编辑
LR版本是11.0,
操作系统:XP 2002 SP3
浏览器:ie6
录制的是系统自带的购买机票系统
录制完成后,回放没有问题,但是参数化后,再回放就报错,我也查了一些资料,做了设置,但是还是报错,不知道是怎么回事,有截图和有脚本代码,在这请教各位大侠帮帮我指点迷津吧,谢谢你们了!
一下是报错的截图:
以下是我录制的脚本:
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(9);
lr_start_transaction("logig");
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value={name}", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=54", ENDITEM,
"Name=login.y", "Value=10", ENDITEM,
LAST);
lr_end_transaction("logig", LR_AUTO);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);
lr_think_time(6);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=04/08/2013", ENDITEM,
"Name=arrive", "Value=London", ENDITEM,
"Name=returnDate", "Value=04/09/2013", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Window", ENDITEM,
"Name=seatType", "Value=First", ENDITEM,
"Name=findFlights.x", "Value=40", ENDITEM,
"Name=findFlights.y", "Value=6", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=022;600;04/08/2013", ENDITEM,
"Name=reserveFlights.x", "Value=35", ENDITEM,
"Name=reserveFlights.y", "Value=7", ENDITEM,
LAST);
lr_think_time(8);
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=1232336654899669998", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=45", ENDITEM,
"Name=buyFlights.y", "Value=11", ENDITEM,
LAST);
web_submit_form("reservations.pl_4",
"Snapshot=t7.inf",
ITEMDATA,
"Name=Book Another.x", "Value=51", ENDITEM,
"Name=Book Another.y", "Value=12", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t8.inf",
LAST);
return 0; |
|