TA的每日心情 | 奋斗 2014-10-16 14:14 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
报错信息是:Action.c(59): Error -26488: Could not obtain information about submitted file "C:\Program Files (x86)\HP\LoadRunner\scripts\succedRegister\q": _stat32 rc=-1, errno=2 [No such file or directory]. Using an empty file [MsgId: MERR-26488]
不管录制了什么脚本,回放必出这个问题,网上搜了一些方法不是不行就是步骤不明确无法操作(有人说是controller使用其他的机器而不是本地机器,还有的说修改UNC路径),求大神告诉详细的解决方法,小弟不胜感激、、
代码如下- Action()
- {
- lr_start_transaction("事务开始");
- web_url("add_url.txt",
- "URL=http://www.liebao.cn/lego/game/add_url.txt?2387596",
- "TargetFrame=",
- "Resource=1",
- "RecContentType=text/plain",
- "Referer=",
- "Snapshot=t1.inf",
- LAST);
- web_url("legoGameConfig2.js",
- "URL=http://img.lego.i.liebao.cn/game_center/legoGameConfig2.js",
- "TargetFrame=",
- "Resource=1",
- "RecContentType=application/x-javascript",
- "Referer=",
- LAST);
- web_url("WebTours",
- "URL=http://127.0.0.1:1080/WebTours/",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t2.inf",
- "Mode=HTML",
- EXTRARES,
- "Url=http://www.liebao.cn/lego/game/assets/img/banner.jpg", "Referer=", ENDITEM,
- LAST);
- web_url("index.php",
- "URL=http://api.liebao.cn/mars/index.php?r=legoWeather/getcity",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t3.inf",
- "Mode=HTML",
- LAST);
- web_add_cookie("thw=cn; DOMAIN=ip.taobao.com");
- web_url("getIpInfo.php",
- "URL=http://ip.taobao.com/service/getIpInfo.php?ip=121.237.252.239",
- "TargetFrame=",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t4.inf",
- "Mode=HTML",
- EXTRARES,
- "Url=http://dl.liebao.cn/Module/InfoBarConfig_new", "Referer=", ENDITEM,
- "Url=http://api.liebao.cn/extension/deploy.php?prodversion=5.2.91.10096&pid=home&spid=up&uuid=ae103e313c1269854683bcab08cc7dbe&did=fcgs7fehoorwt7zmhdfim8afevmj&cfg_version=2015.0331.6400.1", "Referer=", ENDITEM,
- LAST);
- web_submit_data("spp",
- "Action=http://p.api.pc120.com/spp/",
- "Method=POST",
- "EncType=multipart/form-data",
- "TargetFrame=",
- "RecContentType=text/plain",
- "Referer=",
- "Snapshot=t5.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=file", "Value=q", "File=Yes", ENDITEM,
- LAST);
- web_submit_data("login.pl",
- "Action=http://127.0.0.1:1080/WebTours/login.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
- "Snapshot=t6.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=userSession", "Value=116043.561117861fQziQQApzHfDfiVDpQttAf", ENDITEM,
- "Name=username", "Value=jojo", ENDITEM,
- "Name=password", "Value=bean", ENDITEM,
- "Name=JSFormSubmit", "Value=off", ENDITEM,
- "Name=login.x", "Value=37", ENDITEM,
- "Name=login.y", "Value=6", ENDITEM,
- LAST);
- web_url("Search Flights Button",
- "URL=http://127.0.0.1:1080/WebTours/welcome.pl?page=search",
- "TargetFrame=body",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
- "Snapshot=t7.inf",
- "Mode=HTML",
- EXTRARES,
- "Url=http://dl.liebao.cn/op/net.dat", "Referer=", ENDITEM,
- LAST);
- lr_think_time(9);
- web_submit_data("reservations.pl",
- "Action=http://127.0.0.1:1080/WebTours/reservations.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/reservations.pl?page=welcome",
- "Snapshot=t8.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=advanceDiscount", "Value=0", ENDITEM,
- "Name=depart", "Value=Denver", ENDITEM,
- "Name=departDate", "Value=05/26/2015", ENDITEM,
- "Name=arrive", "Value=Denver", ENDITEM,
- "Name=returnDate", "Value=05/27/2015", ENDITEM,
- "Name=numPassengers", "Value=1", ENDITEM,
- "Name=seatPref", "Value=None", ENDITEM,
- "Name=seatType", "Value=First", ENDITEM,
- "Name=.cgifields", "Value=roundtrip", ENDITEM,
- "Name=.cgifields", "Value=seatType", ENDITEM,
- "Name=.cgifields", "Value=seatPref", ENDITEM,
- "Name=findFlights.x", "Value=54", ENDITEM,
- "Name=findFlights.y", "Value=12", ENDITEM,
- LAST);
- web_submit_data("reservations.pl_2",
- "Action=http://127.0.0.1:1080/WebTours/reservations.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/reservations.pl",
- "Snapshot=t9.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=outboundFlight", "Value=001;0;05/26/2015", ENDITEM,
- "Name=numPassengers", "Value=1", ENDITEM,
- "Name=advanceDiscount", "Value=0", ENDITEM,
- "Name=seatType", "Value=First", ENDITEM,
- "Name=seatPref", "Value=None", ENDITEM,
- "Name=reserveFlights.x", "Value=63", ENDITEM,
- "Name=reserveFlights.y", "Value=3", ENDITEM,
- LAST);
- web_submit_data("reservations.pl_3",
- "Action=http://127.0.0.1:1080/WebTours/reservations.pl",
- "Method=POST",
- "TargetFrame=",
- "RecContentType=text/html",
- "Referer=http://127.0.0.1:1080/WebTours/reservations.pl",
- "Snapshot=t10.inf",
- "Mode=HTML",
- 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=", ENDITEM,
- "Name=oldCCOption", "Value=", ENDITEM,
- "Name=numPassengers", "Value=1", ENDITEM,
- "Name=seatType", "Value=First", ENDITEM,
- "Name=seatPref", "Value=None", ENDITEM,
- "Name=outboundFlight", "Value=001;0;05/26/2015", ENDITEM,
- "Name=advanceDiscount", "Value=0", ENDITEM,
- "Name=returnFlight", "Value=", ENDITEM,
- "Name=JSFormSubmit", "Value=off", ENDITEM,
- "Name=.cgifields", "Value=saveCC", ENDITEM,
- "Name=buyFlights.x", "Value=57", ENDITEM,
- "Name=buyFlights.y", "Value=8", ENDITEM,
- EXTRARES,
- "Url=http://img.function.liebao.cn/game_center/game_cfg_ext.js?11937981", "Referer=", ENDITEM,
- "Url=http://dl.liebao.cn/adblock/adfilter_liebao.dat", "Referer=", ENDITEM,
- "Url=http://dl.liebao.cn/adblock/adfilter_easylist.dat", "Referer=", ENDITEM,
- LAST);
- lr_end_transaction("事务结束",LR_AUTO);
- return 0;
- }
复制代码
|
|