51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1996|回复: 9
打印 上一主题 下一主题

[原创] 每次录制回放都报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-10-11 20:58:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大侠们啊,
小弟录制LoadRunner自带的sample,
每次录制完回放都会报27987错误,
每次报错的地方可能会不一样,
能指点一下么?
我的防火墙,360安全卫士,杀毒软件都关了的
上传了报错的切图,

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2010-10-11 21:14:56 | 只看该作者
不要做图片检查点
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2010-10-11 23:08:25 | 只看该作者
我只是录制啊,没做图片检查点啊
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-10-12 09:59:35 | 只看该作者
请求图片时失败,使用url录制方式试试
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2010-10-12 12:10:37 | 只看该作者
贴个脚本看看,或是说下你的具体操作!!
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2010-10-12 20:31:01 | 只看该作者
vuser_init()
{
web_url("mercuryWebTours",
  "URL=http://127.0.0.1:1080/mercuryWebTours/",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t16.inf",
  "Mode=HTML",
  LAST);
web_url("mercuryWebTours_2",
  "URL=http://127.0.0.1:1080/mercuryWebTours/",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t17.inf",
  "Mode=HTML",
  LAST);
lr_think_time(9);
web_submit_form("login.pl",
  "Snapshot=t18.inf",
  ITEMDATA,
  "Name=username", "Value=jojo", ENDITEM,
  "Name=password", "Value=bean", ENDITEM,
  "Name=login.x", "Value=41", ENDITEM,
  "Name=login.y", "Value=13", ENDITEM,
  LAST);
web_submit_data("login.pl_2",
  "Action=http://127.0.0.1:1080/mercuryWebTours/login.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?in=home",
  "Snapshot=t19.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=userSession", "Value=104243.497772377fDzcActpQVzzzzzHDcVHcpVtQf", ENDITEM,
  "Name=username", "Value=jojo", ENDITEM,
  "Name=password", "Value=bean", ENDITEM,
  "Name=JSFormSubmit", "Value=off", ENDITEM,
  "Name=login.x", "Value=41", ENDITEM,
  "Name=login.y", "Value=13", ENDITEM,
  LAST);
return 0;
}
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2010-10-12 20:31:23 | 只看该作者
Action()
{
lr_think_time(4);
web_image("Search Flights Button",
  "Alt=Search Flights Button",
  "Snapshot=t20.inf",
  LAST);
web_image("Search Flights Button_2",
  "Alt=Search Flights Button",
  "Snapshot=t21.inf",
  LAST);
web_url("reservations.pl",
  "URL=http://127.0.0.1:1080/mercuryWebTours/reservations.pl?page=welcome",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=search",
  "Snapshot=t22.inf",
  "Mode=HTML",
  LAST);
lr_think_time(22);
web_submit_form("reservations.pl_2",
  "Snapshot=t23.inf",
  ITEMDATA,
  "Name=depart", "Value=Frankfurt", ENDITEM,
  "Name=departDate", "Value=10/14/2010", ENDITEM,
  "Name=arrive", "Value=Sydney", ENDITEM,
  "Name=returnDate", "Value=10/17/2010", ENDITEM,
  "Name=numPassengers", "Value=2", ENDITEM,
  "Name=roundtrip", "Value=on", ENDITEM,
  "Name=seatPref", "Value=Aisle", ENDITEM,
  "Name=seatType", "Value=First", ENDITEM,
  "Name=findFlights.x", "Value=65", ENDITEM,
  "Name=findFlights.y", "Value=16", ENDITEM,
  LAST);
web_submit_data("reservations.pl_3",
  "Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl?page=welcome",
  "Snapshot=t24.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=advanceDiscount", "Value=0", ENDITEM,
  "Name=depart", "Value=Frankfurt", ENDITEM,
  "Name=departDate", "Value=10/14/2010", ENDITEM,
  "Name=arrive", "Value=Sydney", ENDITEM,
  "Name=returnDate", "Value=10/17/2010", ENDITEM,
  "Name=numPassengers", "Value=2", ENDITEM,
  "Name=roundtrip", "Value=on", ENDITEM,
  "Name=seatPref", "Value=Aisle", 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=65", ENDITEM,
  "Name=findFlights.y", "Value=16", ENDITEM,
  LAST);
web_submit_form("reservations.pl_4",
  "Snapshot=t25.inf",
  ITEMDATA,
  "Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
  "Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
  "Name=reserveFlights.x", "Value=39", ENDITEM,
  "Name=reserveFlights.y", "Value=10", ENDITEM,
  LAST);
web_submit_data("reservations.pl_5",
  "Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Snapshot=t26.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
  "Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
  "Name=numPassengers", "Value=2", ENDITEM,
  "Name=advanceDiscount", "Value=0", ENDITEM,
  "Name=seatType", "Value=First", ENDITEM,
  "Name=seatPref", "Value=Aisle", ENDITEM,
  "Name=reserveFlights.x", "Value=39", ENDITEM,
  "Name=reserveFlights.y", "Value=10", ENDITEM,
  LAST);
lr_think_time(22);
web_submit_form("reservations.pl_6",
  "Snapshot=t27.inf",
  ITEMDATA,
  "Name=firstName", "Value=s", ENDITEM,
  "Name=lastName", "Value=d", ENDITEM,
  "Name=address1", "Value=f", ENDITEM,
  "Name=address2", "Value=g", ENDITEM,
  "Name=pass1", "Value=h", ENDITEM,
  "Name=pass2", "Value=ja", ENDITEM,
  "Name=creditCard", "Value=12", ENDITEM,
  "Name=expDate", "Value=10/18", ENDITEM,
  "Name=saveCC", "Value=<OFF>", ENDITEM,
  "Name=buyFlights.x", "Value=61", ENDITEM,
  "Name=buyFlights.y", "Value=13", ENDITEM,
  LAST);
web_add_cookie("MTUserInfo=hash&47&firstName&Joseph&expDate&%0A&creditCard&&address1&234%20Willow%20Drive&lastName&Marshall%0A&address2&San%20Jose%2FCA%2F94085&username&jojo; DOMAIN=127.0.0.1");
web_submit_data("reservations.pl_7",
  "Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Snapshot=t28.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=firstName", "Value=s", ENDITEM,
  "Name=lastName", "Value=d", ENDITEM,
  "Name=address1", "Value=f", ENDITEM,
  "Name=address2", "Value=g", ENDITEM,
  "Name=pass1", "Value=h", ENDITEM,
  "Name=pass2", "Value=ja", ENDITEM,
  "Name=creditCard", "Value=12", ENDITEM,
  "Name=expDate", "Value=10/18", ENDITEM,
  "Name=oldCCOption", "Value=", ENDITEM,
  "Name=numPassengers", "Value=2", ENDITEM,
  "Name=seatType", "Value=First", ENDITEM,
  "Name=seatPref", "Value=Aisle", ENDITEM,
  "Name=outboundFlight", "Value=181;2037;10/14/2010", ENDITEM,
  "Name=advanceDiscount", "Value=0", ENDITEM,
  "Name=returnFlight", "Value=811;2037;10/17/2010", ENDITEM,
  "Name=JSFormSubmit", "Value=off", ENDITEM,
  "Name=.cgifields", "Value=saveCC", ENDITEM,
  "Name=buyFlights.x", "Value=61", ENDITEM,
  "Name=buyFlights.y", "Value=13", ENDITEM,
  LAST);
web_submit_form("reservations.pl_8",
  "Snapshot=t29.inf",
  ITEMDATA,
  "Name=Book Another.x", "Value=33", ENDITEM,
  "Name=Book Another.y", "Value=6", ENDITEM,
  LAST);
web_submit_data("reservations.pl_9",
  "Action=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/reservations.pl",
  "Snapshot=t30.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=Book Another.x", "Value=33", ENDITEM,
  "Name=Book Another.y", "Value=6", ENDITEM,
  LAST);
web_url("welcome.pl",
  "URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=flights",
  "Snapshot=t31.inf",
  "Mode=HTML",
  LAST);
web_url("welcome.pl_2",
  "URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=flights",
  "Snapshot=t32.inf",
  "Mode=HTML",
  LAST);
web_url("itinerary.pl",
  "URL=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=itinerary",
  "Snapshot=t33.inf",
  "Mode=HTML",
  LAST);
web_submit_form("itinerary.pl_2",
  "Snapshot=t34.inf",
  ITEMDATA,
  "Name=1", "Value=<OFF>", ENDITEM,
  "Name=2", "Value=<OFF>", ENDITEM,
  "Name=removeAllFlights.x", "Value=57", ENDITEM,
  "Name=removeAllFlights.y", "Value=7", ENDITEM,
  LAST);
web_submit_data("itinerary.pl_3",
  "Action=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/itinerary.pl",
  "Snapshot=t35.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=flightID", "Value=0-1393703-ab", ENDITEM,
  "Name=flightID", "Value=4511556-2162934-sd", ENDITEM,
  "Name=.cgifields", "Value=1", ENDITEM,
  "Name=.cgifields", "Value=2", ENDITEM,
  "Name=removeAllFlights.x", "Value=57", ENDITEM,
  "Name=removeAllFlights.y", "Value=7", ENDITEM,
  LAST);
web_url("welcome.pl_3",
  "URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=menus",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=itinerary",
  "Snapshot=t36.inf",
  "Mode=HTML",
  LAST);
web_url("welcome.pl_4",
  "URL=http://127.0.0.1:1080/mercuryWebTours/welcome.pl?page=menus",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://127.0.0.1:1080/mercuryWebTours/nav.pl?page=menu&in=itinerary",
  "Snapshot=t37.inf",
  "Mode=HTML",
  LAST);
return 0;
}
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2010-10-12 20:31:38 | 只看该作者
vuser_end()
{

        lr_think_time(5);

        web_image("SignOff Button",
                "Alt=SignOff Button",
                "Snapshot=t38.inf",
                LAST);

        web_add_cookie("MSO=SID&1286885980; DOMAIN=127.0.0.1");

        web_add_cookie("MTUserInfo=firstName&Joseph&hash&47&lastName&Marshall%0A&address1&234%20Willow%20Drive&username&jojo&address2&San%20Jose%2FCA%2F94085; DOMAIN=127.0.0.1");

        web_image("SignOff Button_2",
                "Alt=SignOff Button",
                "Snapshot=t39.inf",
                LAST);

        return 0;
}
回复 支持 反对

使用道具 举报

该用户从未签到

9#
 楼主| 发表于 2010-10-12 20:32:03 | 只看该作者
这个是今天录制的,结果还是报和昨天一样的错误,什么原因啊?
回复 支持 反对

使用道具 举报

该用户从未签到

10#
 楼主| 发表于 2010-10-12 20:37:11 | 只看该作者
我将此贴重新转到了这个帖子下,麻烦关心小弟的可以移驾看看,谢谢
《录制回放时,那位大侠帮我看看啊,在线等解答....》
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-26 01:25 , Processed in 0.072820 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表