51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1585|回复: 3
打印 上一主题 下一主题

[原创] 脚本回放报错,在线等待解决!谢谢

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-7-20 10:33:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Action.c(42): Error -26377: No match found for the requested parameter "sid". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 99999 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(42): web_submit_data("login.php_2") highest severity level was "ERROR", 6746 body bytes, 1074 header bytes  [MsgId: MMSG-26388]

脚本已经做了关联,用户帐号和密码已做了参数化,回放叠加5次。没有问题。查看数据库用户和流量都正常。当是叠加10次就随机挂掉个。报错见上面的日志。

脚本:
Action()
{
    web_set_max_html_param_len("99999");

        web_add_cookie("reachstone_uid=0; DOMAIN=192.168.1.66");

        web_url("login.php",
                "URL=https://192.168.1.66/WebPages/login.php",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t11.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("login.js",
                "URL=https://192.168.1.66/WebPages/login.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=https://192.168.1.66/WebPages/login.php",
                "Snapshot=t12.inf",
                LAST);

        web_url("bg.jpg",
                "URL=https://192.168.1.66/WebPages/image/bg.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/login.php",
                "Snapshot=t13.inf",
                LAST);

        web_concurrent_end(NULL);

web_reg_save_param("sid",
                "LB=key=",
                "RB=$/",
                "Ord=1",
                LAST);

        web_submit_data("login.php_2",
                "Action=https://192.168.1.66/WebPages/login.php",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=https://192.168.1.66/WebPages/login.php",
                "Snapshot=t14.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=auth_username", "Value={username}", ENDITEM,
                "Name=auth_passwd", "Value={password}", ENDITEM,
                LAST);

        web_concurrent_start(NULL);

        web_url("log.jpg",
                "URL=https://192.168.1.66/WebPages/image/log.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t15.inf",
                LAST);

        web_url("editpass.jpg",
                "URL=https://192.168.1.66/WebPages/image/editpass.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t16.inf",
                LAST);

        web_url("icon2.jpg",
                "URL=https://192.168.1.66/WebPages/image/icon2.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t17.inf",
                LAST);

        web_url("bg1.jpg",
                "URL=https://192.168.1.66/WebPages/image/bg1.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t18.inf",
                LAST);

        web_url("logout.jpg",
                "URL=https://192.168.1.66/WebPages/image/logout.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t19.inf",
                LAST);

        web_concurrent_end(NULL);


        web_url("jingtai.html",
                "URL=https://192.168.1.66/$domain=192.168.1.70$key={sid}$/jingtai.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://192.168.1.66/WebPages/menu.php",
                "Snapshot=t20.inf",
                "Mode=HTTP",
                LAST);

        return 0;
}

[ 本帖最后由 bjsbd 于 2009-7-20 10:38 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-7-20 10:44:37 | 只看该作者

回复 1# 的帖子

你不是不报错了嘛?
回复 支持 反对

使用道具 举报

  • TA的每日心情
    擦汗
    2015-5-25 17:24
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    3#
    发表于 2009-7-20 11:59:12 | 只看该作者
    关联出错了
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
     楼主| 发表于 2009-7-20 13:14:43 | 只看该作者
    高手,请告诉我,怎么修改?
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-5-6 23:41 , Processed in 0.069771 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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