51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2308|回复: 4
打印 上一主题 下一主题

[求助] 急!!录制脚本时一直出现同样的错误!!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-7-4 11:43:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
请各位高手帮忙分析下,为什么每次录制的时候都出现这样的错误,我录制完后,回放,提示错误代码是-26612。查看-26612错误原因:
Message Code 26612
HTTP Status-Code='%_1'_ld ('%2') for 'resource'

The replay sent an unsupported request to the server. The server responded with the error "INTERNAL SERVER ERROR".

Troubleshooting
Try to access the URL or the application being tested from a browser on the same machine.
Comment out or remove any preceding web_add_header and/or web_add_auto_header calls in the script.
Check for values in the script that might need correlation.

高手们,帮我分析下吧,偶都不知道为什么?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情

    2016-12-30 10:59
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    2#
    发表于 2008-7-4 13:08:48 | 只看该作者
    贴上你的代码和回放日志
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2008-7-4 14:24:36 | 只看该作者
    action部分:
    #include "lrs.h"
    #include "as_web.h"


    Action()
    {
        web_url("left_linkbg.jpg",
                    "URL=http://192.168.1.188:8090/mainsale/images/left_linkbg.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.188:8090/mainsale/menu.do",
                    "Snapshot=t3.inf",
                    LAST);

        web_url("left_linkbg.jpg_2",
                    "URL=http://192.168.1.188:8090/mainsale/images/left_linkbg.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.188:8090/mainsale/menu.do",
                    "Snapshot=t4.inf",
                    LAST);

        web_url("left_linkbg.jpg_3",
                    "URL=http://192.168.1.188:8090/mainsale/images/left_linkbg.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.188:8090/mainsale/menu.do",
                    "Snapshot=t5.inf",
                    LAST);

        web_url("left_linkbg.jpg_4",
                    "URL=http://192.168.1.188:8090/mainsale/images/left_linkbg.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.188:8090/mainsale/menu.do",
                    "Snapshot=t6.inf",
                    LAST);

        web_url("newEmployeeAction.do",
                    "URL=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/menu.do",
                    "Snapshot=t7.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=images/left_linkbg.jpg", "Referer=http://192.168.1.188:8090/mainsale/menu.do", ENDITEM,
                    LAST);

        web_custom_request("itemsBeans.findList",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t8.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=9425_1215142076000\n"
                    "c0-param0=string:select%20c.cityId%2Cc.cityName%20from%20City%20c\n"
                    "c0-param1=string:\n"
                    "xml=true\n",
                    LAST);

        lr_think_time( 4 );

        web_submit_data("newEmployeeAction.do_2",
                    "Action=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t9.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=command", "Value=query", ENDITEM,
                    "Name=id", "Value=", ENDITEM,
                    "Name=cityId", "Value=全部", ENDITEM,
                    LAST);

        web_custom_request("itemsBeans.findList_2",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t10.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=3649_1215142077875\n"
                    "c0-param0=string:select%20c.cityId%2Cc.cityName%20from%20City%20c\n"
                    "c0-param1=string:\n"
                    "xml=true\n",
                    LAST);

        lr_think_time( 1 );

        web_submit_data("newEmployeeAction.do_3",
                    "Action=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t11.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=command", "Value=add", ENDITEM,
                    "Name=id", "Value=", ENDITEM,
                    "Name=cityId", "Value=全部", ENDITEM,
                    "Name=infos", "Value=", ENDITEM,
                    "Name=perPage", "Value=10", ENDITEM,
                    "Name=pages", "Value=1", ENDITEM,
                    LAST);

        web_custom_request("itemsBeans.findList_3",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t12.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=8157_1215142082031\n"
                    "c0-param0=string:select%20c.cityId%2Cc.cityName%20from%20City%20c\n"
                    "c0-param1=string:\n"
                    "xml=true\n",
                    LAST);

        web_custom_request("itemsBeans.findList_4",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t13.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=7516_1215142090875\n"
                    "c0-param0=string:select%20c.countyId%2Cc.cityname%20from%20County%20c%20where%20c.cityId%3D\n"
                    "c0-param1=string:591\n"
                    "xml=true\n",
                    LAST);

        web_custom_request("itemsBeans.findList_5",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t14.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=6831_1215142092421\n"
                    "c0-param0=string:select%20c.shopId%2Cc.shopName%20from%20ShopInfo%20c%20where%20c.status%3D1%20and%20c.deptid%3D'100'%20and%20c.cityId%3D\n"
                    "c0-param1=string:5911\n"
                    "xml=true\n",
                    LAST);

        lr_think_time( 17 );

        web_submit_data("newEmployeeAction.do_4",
                    "Action=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t15.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=command", "Value=save", ENDITEM,
                    "Name=operatorName", "Value=小小", ENDITEM,
                    "Name=cityId", "Value=591", ENDITEM,
                    "Name=countyId", "Value=5911", ENDITEM,
                    "Name=shopId", "Value=100591007", ENDITEM,
                    "Name=operatorAddr", "Value=饿额", ENDITEM,
                    "Name=operatorSex", "Value=0", ENDITEM,
                    "Name=operatorBirth", "Value=2008-7-3", ENDITEM,
                    "Name=operatorPhone", "Value=0591-3541789", ENDITEM,
                    LAST);

        web_url("newEmployeeAction.do_5",
                    "URL=http://192.168.1.188:8090/mainsale/newEmployeeAction.do?",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/login.do",
                    "Snapshot=t16.inf",
                    "Mode=HTML",
                    LAST);

        web_custom_request("itemsBeans.findList_6",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do?",
                    "Snapshot=t17.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=7171_1215142113687\n"
                    "c0-param0=string:select%20c.cityId%2Cc.cityName%20from%20City%20c\n"
                    "c0-param1=string:\n"
                    "xml=true\n",
                    LAST);

        web_submit_data("newEmployeeAction.do_6",
                    "Action=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Method=POST",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do?",
                    "Snapshot=t18.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=command", "Value=query", ENDITEM,
                    "Name=id", "Value=", ENDITEM,
                    "Name=cityId", "Value=全部", ENDITEM,
                    EXTRARES,
                    "Url=images/left_linkbg.jpg", "Referer=http://192.168.1.188:8090/mainsale/menu.do", ENDITEM,
                    LAST);

        web_custom_request("itemsBeans.findList_7",
                    "URL=http://192.168.1.188:8090/mainsale/dwr/exec/itemsBeans.findList",
                    "Method=POST",
                    "Resource=1",
                    "RecContentType=text/plain",
                    "Referer=http://192.168.1.188:8090/mainsale/newEmployeeAction.do",
                    "Snapshot=t19.inf",
                    "EncType=",
                    "Body=callCount=1\n"
                    "c0-scriptName=itemsBeans\n"
                    "c0-methodName=findList\n"
                    "c0-id=9354_1215142115937\n"
                    "c0-param0=string:select%20c.cityId%2Cc.cityName%20from%20City%20c\n"
                    "c0-param1=string:\n"
                    "xml=true\n",
                    LAST);

        return 0;
    }
    回放日志:
    检测不到错误
    但是回放概要那边的回放状态:失败
    发生时间         代码      描述
    Action.c(45)           -26612       错误-26612:
                  对于“http://192.168.1.188:8090/mainsale/newEmployeeAction.do”,HTTP
                                 状态代码=500(Internal server Error [Msg Id:MERR-26612
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2008-7-4 14:34:54 | 只看该作者
    HTTP 500的错误,内部服务器错误
    具体的请看这个http://zhidao.baidu.com/question/5561916.html?si=1
    我不知道是不是这个问题,希望对你有帮助
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
     楼主| 发表于 2008-7-4 15:07:33 | 只看该作者
    我也GOOGLE了下,HTTP 500是内部服务器的问题,但是不知道具体是服务器那边出问题,很纳闷........
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-20 17:59 , Processed in 0.148313 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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