51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

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

[原创] Loadrunner关联的错误,请大家帮忙看看,在线等待

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-1-11 16:45:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一,脚本部分
web_reg_save_param("code","LB=Name=","RB=Box2","search=Body",LAST);

        web_submit_form("Default.aspx",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=T_userid", "Value=dongql", ENDITEM,
                "Name=T_pwd", "Value=123456", ENDITEM,
                "Name=TextBox2", "Value={code}", ENDITEM,
                "Name=TextBox3", "Value=", ENDITEM,
                "Name=tbVer", "Value=", ENDITEM,
                "Name=Submit.x", "Value=35", ENDITEM,
                "Name=Submit.y", "Value=5", ENDITEM,
                LAST);
二、replay日志部分
Action.c(17): Error -26377: No match found for the requested parameter "code". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
Action.c(17): Notify: Saving Parameter "code = "
Action.c(17): web_submit_form("Default.aspx") highest severity level was "ERROR", 10254 body bytes, 552 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    郁闷
    2015-6-16 14:29
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2011-1-11 16:48:34 | 只看该作者
    出现这个错误的原因,90%是位置放错了。你能不能把详细代码贴点出来
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2011-1-11 17:19:44 | 只看该作者
    Action()
    {

            web_url("oa.szlanyou.com",
                    "URL=http://oa.szlanyou.com/",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t1.inf",
                    "Mode=HTML",
                    LAST);

            lr_think_time(3);

    web_reg_save_param("code","LB=Name=","RB=Box2","search=Body",LAST);

            web_submit_form("Default.aspx",
                    "Snapshot=t2.inf",
                    ITEMDATA,
                    "Name=T_userid", "Value=dongql", ENDITEM,
                    "Name=T_pwd", "Value=123456", ENDITEM,
                    "Name=TextBox2", "Value={code}", ENDITEM,
                    "Name=TextBox3", "Value=", ENDITEM,
                    "Name=tbVer", "Value=", ENDITEM,
                    "Name=Submit.x", "Value=35", ENDITEM,
                    "Name=Submit.y", "Value=5", ENDITEM,
                    LAST);

    lr_output_message("校验码:",lr_eval_string("{code}"));

            web_url("main.aspx",
                    "URL=http://oa.szlanyou.com/main.aspx",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=/webctrl_client/1_0/treeview.htc", "Referer=", ENDITEM,
                    "Url=/image/1.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/7.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/2.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/3.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/4.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/5.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/6.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/k1_02.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_01.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_03.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_04.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_05.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    LAST);

            return 0;
    }
    这是全部的代码了
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2011-1-11 21:10:38 | 只看该作者
    校验码是在访问http://oa.szlanyou.com/的时候返回的吗?

    改成这样试试:

    Action()
    {

    web_reg_save_param("code","LB=Name=","RB=Box2","search=Body",LAST);

            web_url("oa.szlanyou.com",
                    "URL=http://oa.szlanyou.com/",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t1.inf",
                    "Mode=HTML",
                    LAST);

            lr_think_time(3);

            web_submit_form("Default.aspx",
                    "Snapshot=t2.inf",
                    ITEMDATA,
                    "Name=T_userid", "Value=dongql", ENDITEM,
                    "Name=T_pwd", "Value=123456", ENDITEM,
                    "Name=TextBox2", "Value={code}", ENDITEM,
                    "Name=TextBox3", "Value=", ENDITEM,
                    "Name=tbVer", "Value=", ENDITEM,
                    "Name=Submit.x", "Value=35", ENDITEM,
                    "Name=Submit.y", "Value=5", ENDITEM,
                    LAST);

    lr_output_message("校验码:",lr_eval_string("{code}"));

            web_url("main.aspx",
                    "URL=http://oa.szlanyou.com/main.aspx",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=/webctrl_client/1_0/treeview.htc", "Referer=", ENDITEM,
                    "Url=/image/1.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/7.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/2.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/3.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/4.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/5.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/6.gif", "Referer=http://oa.szlanyou.com/left.aspx", ENDITEM,
                    "Url=/image/k1_02.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_01.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_03.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_04.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    "Url=/image/k1_05.gif", "Referer=http://oa.szlanyou.com/top.aspx", ENDITEM,
                    LAST);

            return 0;
    }
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    5#
    发表于 2011-1-11 21:16:36 | 只看该作者
    很明显是放错位置了
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
     楼主| 发表于 2011-1-12 10:24:15 | 只看该作者
    校验码是在访问http://oa.szlanyou.com的时候产生的,我试了PrefTest的方法,但是仍然报错,错误如下,请大家帮忙来看看:

    Action.c(5): Error -26377: No match found for the requested parameter "code". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
    Action.c(5): Notify: Saving Parameter "code = "
    Action.c(5): web_url("oa.szlanyou.com") highest severity level was "ERROR", 117279 body bytes, 4526 header bytes          [MsgId: MMSG-26388]
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-5-22 12:43 , Processed in 0.075310 second(s), 26 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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