|
使用loadrunner 8.0
2. 用jojo登陆网站MercuryWebTours,做了3笔fight。也查到有3笔记录。
3. 用loadrunner 8.0录制jojo登陆后删除1笔订单。
4. 再用loadrunner 8.0回放后发现出现信息:
Action.c(29): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(29): web_submit_form("itinerary.pl") highest severity level was "ERROR", 0 body bytes, 0 header byte
具体脚本如下哦:
Action()
{
web_url("MercuryWebTours",
"URL=http://localhost:8160/MercuryWebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=57", ENDITEM,
"Name=login.y", "Value=13", ENDITEM,
LAST);
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t3.inf",
LAST);
web_submit_form("itinerary.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=1", "Value=on", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
"Name=removeFlights.x", "Value=126", ENDITEM,
"Name=removeFlights.y", "Value=15", ENDITEM,
LAST);
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t5.inf",
EXTRARES,
"Url=FormDateUpdate.class", "Referer=", ENDITEM,
"Url=CalSelect.class", "Referer=", ENDITEM,
LAST);
return 0;
}
现在的情况是我把"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM, 删除后,其实回放会把我原先有的记录删掉。并不是我希望的结果。我知道有关联这个东西哦,不过不太清楚怎么弄啊~请大家帮帮忙吧~谢啦。 |
|