51Testing软件测试论坛
标题:
LoadRunner回放录制错误27995
[打印本页]
作者:
lebinchen
时间:
2013-6-3 19:24
标题:
LoadRunner回放录制错误27995
部分代码:
Action()
{
web_add_cookie("smile=1D1; DOMAIN=localhost");
web_add_cookie("uchome_loginuser=doudouchen; DOMAIN=localhost");
web_add_cookie("UvK_oldtopics=D29D; DOMAIN=localhost");
web_add_cookie("UvK_fid2=1370256310; DOMAIN=localhost");
web_add_cookie("UvK_sid=NkN6PP; DOMAIN=localhost");
web_add_cookie("UvK_visitedfid=2; DOMAIN=localhost");
web_url("bbs",
"URL=http://localhost:88/bbs/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=forumdata/cache/style_1_common.css?966", ENDITEM,
"Url=images/default/bodybg.gif", ENDITEM,
"Url=images/default/header.gif", ENDITEM,
"Url=images/default/mtabbg.gif", ENDITEM,
"Url=images/default/newtopic.gif", ENDITEM,
"Url=images/default/forum.gif", ENDITEM,
"Url=images/default/icon_nav.gif", ENDITEM,
"Url=forumdata/cache/style_1_float.css?966", ENDITEM,
"Url=images/default/loading.gif", ENDITEM,
"Url=images/default/newclose.gif", ENDITEM,
"Url=register.php?infloat=yes&handlekey=register&inajax=1&ajaxtarget=floatwin_register", ENDITEM,
"Url=images/default/newright.gif", ENDITEM,
"Url=ajax.php?infloat=register&handlekey=register&action=checkusername&username=sdcv&inajax=1&ajaxtarget=returnmessage4", ENDITEM,
"Url=ajax.php?infloat=register&handlekey=register&action=checkemail&email=sderf@qq.com&inajax=1&ajaxtarget=returnmessage4", ENDITEM,
"Url=images/default/check_error.gif", ENDITEM,
LAST);
lr_think_time(13);
web_submit_data("register.php",
"Action=http://localhost:88/bbs/register.php?regsubmit=yes&inajax=1",
"Method=POST",
"RecContentType=application/xml",
"Referer=http://localhost:88/bbs/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=0300270a", ENDITEM,
"Name=referer", "Value=index.php", ENDITEM,
"Name=handlekey", "Value=register", ENDITEM,
"Name=activationauth", "Value=", ENDITEM,
"Name=username", "Value=sdcv", ENDITEM,
"Name=password", "Value=111", ENDITEM,
"Name=password2", "Value=111", ENDITEM,
"Name=email", "Value=sderf@qq.com", ENDITEM,
LAST);
web_add_cookie("checkpm=1; DOMAIN=localhost");
lr_think_time(4);
web_url("bbs_2",
"URL=http://localhost:88/bbs/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=forumdata/cache/style_1_common.css?966", ENDITEM,
"Url=images/default/mtabbg.gif", ENDITEM,
"Url=images/default/header.gif", ENDITEM,
"Url=images/default/newtopic.gif", ENDITEM,
"Url=images/default/bodybg.gif", ENDITEM,
"Url=images/default/forum.gif", ENDITEM,
"Url=images/default/icon_nav.gif", ENDITEM,
"Url=pm.php?checknewpm=0.43029888973181224&inajax=1&ajaxtarget=pm_ntc", ENDITEM,
"Url=misc.php?action=nav&infloat=yes&handlekey=nav&inajax=1&ajaxtarget=floatwin_nav", ENDITEM,
"Url=images/default/arrow_right.gif", ENDITEM,
"Url=post.php?action=newthread&fid=2&infloat=yes&handlekey=newthread&inajax=1&ajaxtarget=floatwin_newthread", ENDITEM,
"Url=include/js/post.js?966", ENDITEM,
"Url=images/icons/icon1.gif", ENDITEM,
"Url=include/js/bbcode.js?966", ENDITEM,
"Url=images/icons/icon2.gif", ENDITEM,
"Url=images/icons/icon3.gif", ENDITEM,
"Url=images/icons/icon4.gif", ENDITEM,
"Url=images/icons/icon5.gif", ENDITEM,
"Url=images/icons/icon6.gif", ENDITEM,
"Url=images/icons/icon7.gif", ENDITEM,
"Url=images/icons/icon8.gif", ENDITEM,
"Url=images/icons/icon10.gif", ENDITEM,
"Url=images/icons/icon9.gif", ENDITEM,
"Url=images/icons/icon11.gif", ENDITEM,
"Url=images/icons/icon14.gif", ENDITEM,
"Url=images/icons/icon12.gif", ENDITEM,
"Url=images/icons/icon16.gif", ENDITEM,
"Url=images/icons/icon13.gif", ENDITEM,
"Url=images/icons/icon15.gif", ENDITEM,
"Url=forumdata/cache/smilies_var.js?966", ENDITEM,
"Url=images/default/arrow_down.gif", ENDITEM,
"Url=images/common/editor.gif", ENDITEM,
"Url=images/default/newarow.gif", ENDITEM,
"Url=images/smilies/default/smile.gif", ENDITEM,
"Url=images/smilies/default/biggrin.gif", ENDITEM,
"Url=images/smilies/default/sad.gif", ENDITEM,
"Url=images/smilies/default/shocked.gif", ENDITEM,
"Url=images/smilies/default/cry.gif", ENDITEM,
"Url=images/smilies/default/victory.gif", ENDITEM,
"Url=images/smilies/default/huffy.gif", ENDITEM,
"Url=images/smilies/default/titter.gif", ENDITEM,
"Url=images/smilies/default/tongue.gif", ENDITEM,
"Url=images/smilies/default/sweat.gif", ENDITEM,
"Url=images/smilies/default/mad.gif", ENDITEM,
"Url=images/smilies/default/lol.gif", ENDITEM,
"Url=images/smilies/default/loveliness.gif", ENDITEM,
"Url=images/smilies/default/dizzy.gif", ENDITEM,
"Url=images/smilies/default/funk.gif", ENDITEM,
"Url=images/smilies/default/shutup.gif", ENDITEM,
"Url=images/smilies/default/curse.gif", ENDITEM,
"Url=images/smilies/default/sleepy.gif", ENDITEM,
"Url=images/smilies/default/hug.gif", ENDITEM,
"Url=images/smilies/default/shy.gif", ENDITEM,
"Url=images/smilies/default/kiss.gif", ENDITEM,
"Url=images/smilies/default/call.gif", ENDITEM,
"Url=images/smilies/default/time.gif", ENDITEM,
"Url=images/smilies/default/handshake.gif", ENDITEM,
LAST);
lr_think_time(10);
web_submit_data("post.php",
"Action=http://localhost:88/bbs/post.php?infloat=yes&action=newthread&fid=2&extra=&topicsubmit=yes&inajax=1",
"Method=POST",
"RecContentType=application/xml",
"Referer=http://localhost:88/bbs/",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=24edd492", ENDITEM,
"Name=handlekey", "Value=newthread", ENDITEM,
"Name=wysiwyg", "Value=0", ENDITEM,
"Name=iconid", "Value=", ENDITEM,
"Name=updateswfattach", "Value=0", ENDITEM,
"Name=subject", "Value=山东省的地方", ENDITEM,
"Name=checkbox", "Value=0", ENDITEM,
"Name=message", "Value=大放送打发士大夫似的发生地方打发士大夫似的发生地方似的", ENDITEM,
"Name=tags", "Value=", ENDITEM,
"Name=addtags", "Value=+可用标签", ENDITEM,
"Name=addfeed", "Value=1", ENDITEM,
LAST);
web_url("viewthread.php",
"URL=http://localhost:88/bbs/viewthread.php?tid=30&extra=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:88/bbs/",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=forumdata/cache/style_1_viewthread.css?966", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/reply.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/addbuddy.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/pmto.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/tradesmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/arrow_left.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/printpost.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/text_common.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/text_zoom.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/debatesmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/ajaxaction.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/folder_s.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/fastreply.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/repquote.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/edit.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/pm_ntc.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=../home/image/icon/profile.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/notify_bg_m.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
LAST);
lr_think_time(7);
web_link("退出",
"Text=退出",
"Snapshot=t6.inf",
LAST);
web_link("如果您的浏览器没有自动跳转,请点击这里",
"Text=如果您的浏览器没有自动跳转,请点击这里",
"Snapshot=t7.inf",
EXTRARES,
"Url=images/default/videosmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/activitysmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/rewardsmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
"Url=images/default/pollsmall.gif", "Referer=http://localhost:88/bbs/viewthread.php?tid=30&extra=", ENDITEM,
LAST);
return 0;
}
错误是:
Action.c(185): 错误 -27995: 找不到请求的链接(“文本=退出”) [MsgId: MERR-27995]
Action.c(185): web_link("退出") 最高严重级别为“ERROR”,0 个正文字节,0 个标头字节 [MsgId: MMSG-26388]
有的说是要改工具里面的录制选项,改过了重新录制还是有问题。
作者:
1528583487
时间:
2013-6-5 11:05
以前我也碰到过这个问题,改了之后还是不行,后来过了一天再改录制不报错了。。。。。
作者:
meilirensheng
时间:
2013-11-6 11:32
楼主怎么解决的啊,我压测时也出现了此问题啊.
作者:
莫莫看世界
时间:
2016-9-18 17:45
楼主怎么解决的啊+1~~~~~~
作者:
骑车去看海
时间:
2016-9-21 14:23
我是来取经的,这是什么情况,会发生此错误
作者:
崔建基
时间:
2016-12-29 13:05
错误是:
Action.c(185): 错误 -27995: 找不到请求的链接(“文本=退出”) [MsgId: MERR-27995]
Action.c(185): web_link("退出") 最高严重级别为“ERROR”,0 个正文字节,0 个标头字节 [MsgId: MMSG-26388]
感觉我的经验,需要检查是否真的登录上系统了,如果没有登录上系统,就没有退出按钮,那么就会报这个错误,loadrunner排问题的时候,业务逻辑理解比较重要。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2