(新手学习问题)loadrunner关联的问题
使用loadrunner 8.02. 用jojo登陆网站MercuryWebTours,做了3笔fight。也查到有3笔记录。
3. 用loadrunner 8.0录制jojo登陆后删除1笔订单。
4. 再用loadrunner 8.0回放后发现出现信息:
Action.c(29): Error -27979: Requested form not found
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, 删除后,其实回放会把我原先有的记录删掉。并不是我希望的结果。我知道有关联这个东西哦,不过不太清楚怎么弄啊~请大家帮帮忙吧~谢啦。 其实你这个脚本可以不用关联的,脚本自己会帮你处理掉sessionid,关联这个东西说来话长你直接看我书里面关于关联的试读章节好了,基本是全的 :(但是有问题啊,我如何回放我录制删除的那笔呢?不做关联的话,回放不通过。除非我删除"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
但如果我回放后没有记录了,还是会报哪个错的。。所以有些不解哦。呵呵
页:
[1]