51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1407|回复: 1
打印 上一主题 下一主题

[求助] No match found for the requested parameter "formhash

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2016-5-10 19:23:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用LR录了一个BBS的注册和登录,关联完成之后提示这个错误:Action.c(182): Error -26377: No match found for the requested parameter "formhash". 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()
{

       


        web_url("forum.php",
                "URL=http://211.149.218.16/bbs/forum.php",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTTP",
                LAST);



        web_concurrent_start(NULL);



        lr_start_transaction("sign");

       


        web_url("style_1_common.css",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

       

        web_url("style_1_forum_index.css",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_forum_index.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("common.js",
                "URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("style_1_widthauto.css",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

       
        web_url("forum.js",
                "URL=http://211.149.218.16/bbs/static/js/forum.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

       


        web_url("logging.js",
                "URL=http://211.149.218.16/bbs/static/js/logging.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);


        web_url("home.php",
                "URL=http://211.149.218.16/bbs/home.php?mod=misc&ac=sendmail&rand=1462838281",
                "Resource=1",
                "RecContentType=text/javascript",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_concurrent_end(NULL);





        lr_think_time(8);

        web_url("立即注册",
                "URL=http://211.149.218.16/bbs/member.php?mod=register",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://211.149.218.16/bbs/forum.php",
                "Snapshot=t2.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);



        web_url("style_1_common.css_2",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);



       
        web_url("style_1_widthauto.css_2",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);
       

        web_url("logging.js_2",
                "URL=http://211.149.218.16/bbs/static/js/logging.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);



        web_url("register.js",
                "URL=http://211.149.218.16/bbs/static/js/register.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);


        web_url("common.js_2",
                "URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);

        web_concurrent_end(NULL);

        lr_think_time(5);

       

       

        web_url("forum.php_2",
                "URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=123456qwe",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                "Snapshot=t3.inf",
                "Mode=HTTP",
                LAST);

        lr_think_time(10);


        web_url("forum.php_3",
                "URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=123456qwe@qq.com",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                "Snapshot=t4.inf",
                "Mode=HTTP",
                LAST);

       

        web_url("forum.php_4",
                "URL=http://211.149.218.16/bbs/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=123456qwe@qq.com",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                "Snapshot=t5.inf",
                "Mode=HTTP",
                LAST);

web_reg_save_param_ex(
                "ParamName=formhash",
                "LB=<input type=\"hidden\" name=\"formhash \" value=\"",
                "RB=\" />",
                SEARCH_FILTERS,
                LAST);

        web_url("ajax.js",
                "URL=http://211.149.218.16/bbs/static/js/ajax.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                LAST);



        web_submit_data("member.php",
                "Action=http://211.149.218.16/bbs/member.php?mod=register&inajax=1",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                "Snapshot=t6.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=regsubmit", "Value=yes", ENDITEM,
                "Name=formhash", "Value={formhash}", ENDITEM,
                "Name=referer", "Value=forum.php", ENDITEM,
                "Name=activationauth", "Value=", ENDITEM,
                "Name=username1", "Value={sign}", ENDITEM,
                "Name=password1", "Value={password1}", ENDITEM,
                "Name=password3", "Value={password2}", ENDITEM,
                "Name=email1", "Value={email}", ENDITEM,
                LAST);



        web_url("forum.php_5",
                "URL=http://211.149.218.16/bbs/forum.php",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://211.149.218.16/bbs/member.php?mod=register",
                "Snapshot=t7.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("style_1_common.css_3",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_common.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("forum.js_2",
                "URL=http://211.149.218.16/bbs/static/js/forum.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("style_1_forum_index.css_2",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_forum_index.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("common.js_3",
                "URL=http://211.149.218.16/bbs/static/js/common.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("style_1_widthauto.css_3",
                "URL=http://211.149.218.16/bbs/data/cache/style_1_widthauto.css?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

        web_url("html5notification.js",
                "URL=http://211.149.218.16/bbs/static/js/html5notification.js?j8N",
                "Resource=1",
                "Referer=http://211.149.218.16/bbs/forum.php",
                LAST);

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

使用道具 举报

  • TA的每日心情
    无聊
    2018-2-28 12:22
  • 签到天数: 4 天

    连续签到: 1 天

    [LV.2]测试排长

    2#
    发表于 2016-5-11 08:47:16 | 只看该作者
    关联函数放的位置不对
    关联函数要放在可以提取到数据的请求的前面,表示要到下一个请求中查找需要的数据,然后再进行使用

    你目前是放在要使用的前面,当然查找不到咯

    应该放在下面这段前面:
            web_url("立即注册",
                    "URL=http://211.149.218.16/bbs/member.php?mod=register",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://211.149.218.16/bbs/forum.php",
                    "Snapshot=t2.inf",
                    "Mode=HTTP",
                    LAST);

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 积极回复获得测试积点10

    查看全部评分

    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-7 01:41 , Processed in 0.061829 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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