51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] loadrunner参数化后回放报错26612,求帮助

[复制链接]
  • TA的每日心情

    2016-4-28 15:34
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2019-8-21 15:28:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    Action()
    {

            web_url("reg_first",
                    "URL=http://ceshiyonghu.zshiot.com/Register/reg_first",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t1.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=http://js.data.cctv.com/__aplus_plugin_cctv.js,aplus_plugin_aplus_u.js", ENDITEM,
                    "Url=../css/fonts/zenicon.eot", ENDITEM,
                    "Url=../js/layui/lay/modules/form.js", ENDITEM,
                    "Url=../images/ico-22.png", ENDITEM,
                    "Url=http://p.data.cctv.com/v.gif?logtype=1&title=%E8%B4%A6%E5%8F%B7%E6%B3%A8%E5%86%8C&pre=&scr=1920x1080&cna=efD0FJIFBhoCASQvoUjbB47z&spm-cnt=0.0.0.0.2906216aIBJ005&v_id=&aplus&&p=1&o=win10&b=ie11&s=1920x1080&w=trident&ism=pc&cache=fa393ae&lver=8.10.4&jsver=aplus_u&flashInfo=32.0.0&colorDepth=24&timeZone=8&tag=1&stag=-1&lstag=-1", ENDITEM,
                    "Url=../images/ico-03.png", ENDITEM,
                    "Url=../images/ico-01.png", ENDITEM,
                    "Url=../js/layui/lay/modules/layer.js", ENDITEM,
                    "Url=../js/layui/css/modules/layer/default/layer.css?v=3.1.1", ENDITEM,
                    "Url=../js/layui/css/modules/layer/default/loading-2.gif", ENDITEM,
                    LAST);

            lr_start_transaction("zhuce");

            web_submit_data("ValidateLogin",
                    "Action=http://ceshiyonghu.zshiot.com/Register/ValidateLogin",
                    "Method=POST",
                    "RecContentType=application/json",
                    "Referer=http://ceshiyonghu.zshiot.com/Register/reg_first",
                    "Snapshot=t2.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=str", "Value={str}", ENDITEM,   //str参数化
                    LAST);

            web_url("reg_second",
                    "URL=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://ceshiyonghu.zshiot.com/Register/reg_first",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=http://p.data.cctv.com/v.gif?logtype=1&title=%E8%B4%A6%E5%8F%B7%E6%B3%A8%E5%86%8C&pre=http%3A%2F%2Fceshiyonghu.zshiot.com%2FRegister%2Freg_first&scr=1920x1080&cna=efD0FJIFBhoCASQvoUjbB47z&spm-cnt=0.0.0.0.7f79216aowF580&v_id=&aplus&&p=1&o=win10&b=ie11&s=1920x1080&w=trident&ism=pc&cache=e10a7e6&lver=8.10.4&jsver=aplus_u&flashInfo=32.0.0&colorDepth=24&timeZone=8&tag=1&stag=-1&lstag=-1", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str=Z3h4MjIyMQ==&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
                    "Url=../images/ico-05.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
                    "Url=../images/pro-24.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
                    "Url=../images/ico-23.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
                    "Url=../images/ico-04.png", "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh", ENDITEM,
                    LAST);



            web_submit_data("reg_final",
                    "Action=http://ceshiyonghu.zshiot.com/Register/reg_final",
                    "Method=POST",
                    "RecContentType=application/json",
                    "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
                    "Snapshot=t4.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=login", "Value={str}", ENDITEM,
                    "Name=pwd", "Value=MTIzYWFh", ENDITEM,
                    "Name=rpwd", "Value=MTIzYWFh", ENDITEM,
                    "Name=name", "Value={name}", ENDITEM,
                    "Name=sex", "Value=0", ENDITEM,
                    "Name=birthday", "Value=2015-05-05", ENDITEM,
                    "Name=locationCode", "Value=410500", ENDITEM,
                    LAST);

            web_submit_data("reg_final_2",
                    "Action=http://ceshiyonghu.zshiot.com/Register/reg_final",
                    "Method=POST",
                    "RecContentType=application/json",
                    "Referer=http://ceshiyonghu.zshiot.com/Register/reg_second?str={str}&str1=MTIzYWFh&str2=MTIzYWFh",
                    "Snapshot=t5.inf",
                    "Mode=HTML",
                    ITEMDATA,
                    "Name=login", "Value={str}", ENDITEM,
                    "Name=pwd", "Value=MTIzYWFh", ENDITEM,
                    "Name=rpwd", "Value=MTIzYWFh", ENDITEM,
                    "Name=name", "Value={name}", ENDITEM,
                    "Name=sex", "Value=0", ENDITEM,
                    "Name=birthday", "Value=2015-05-05", ENDITEM,
                    "Name=locationCode", "Value=410500", ENDITEM,
                    LAST);

            lr_end_transaction("zhuce",LR_AUTO);
            return 0;
    }
    报错:
    Action.c(54): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://ceshiyonghu.zshiot.com/Register/reg_final"          [MsgId: MERR-26612]
    Action.c(54): web_submit_data("reg_final") highest severity level was "ERROR", 360 body bytes, 239 header bytes, 12 chunking overhead bytes          [MsgId: MMSG-26387]

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

    使用道具 举报

    该用户从未签到

    2#
    发表于 2019-8-21 19:43:00 | 只看该作者
    直接查看你的快照中的请求报文或者打印你提交的请求报文,然后对比正常访问时的请求报文,找到差异,解决差异。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    6 小时前
  • 签到天数: 1522 天

    连续签到: 1 天

    [LV.Master]测试大本营

    3#
    发表于 2019-8-22 10:46:39 | 只看该作者
    把服务器返回日志打开,看看服务器都返回了什么。有可能是登录未成功导致的。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2019-8-30 09:49:31 | 只看该作者
    把返回日志打开呀。查看详细日志。

    Run-time sttting-----log----always send message.--------extended log.
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-25 17:03 , Processed in 0.063133 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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