51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 8136|回复: 5
打印 上一主题 下一主题

[求助] LoadRunner回放录制错误27995

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-6-3 19:24:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
部分代码:
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]


有的说是要改工具里面的录制选项,改过了重新录制还是有问题。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2013-6-5 11:05:54 | 只看该作者
以前我也碰到过这个问题,改了之后还是不行,后来过了一天再改录制不报错了。。。。。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2013-11-6 11:32:32 | 只看该作者
楼主怎么解决的啊,我压测时也出现了此问题啊.
回复 支持 反对

使用道具 举报

  • TA的每日心情
    难过
    2016-6-29 16:44
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    4#
    发表于 2016-9-18 17:45:21 | 只看该作者
    楼主怎么解决的啊+1~~~~~~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-2-24 10:09
  • 签到天数: 60 天

    连续签到: 1 天

    [LV.6]测试旅长

    5#
    发表于 2016-9-21 14:23:53 | 只看该作者
    我是来取经的,这是什么情况,会发生此错误
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2016-12-29 13:05:25 | 只看该作者
    错误是:
    Action.c(185): 错误 -27995: 找不到请求的链接(“文本=退出”)          [MsgId: MERR-27995]
    Action.c(185): web_link("退出") 最高严重级别为“ERROR”,0 个正文字节,0 个标头字节          [MsgId: MMSG-26388]

    感觉我的经验,需要检查是否真的登录上系统了,如果没有登录上系统,就没有退出按钮,那么就会报这个错误,loadrunner排问题的时候,业务逻辑理解比较重要。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-24 10:09 , Processed in 0.117274 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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