google搜索 站内搜索                 软件测试门户 | 软件测试培训 | 文章资料精选 | 软件测试论坛 | 测试解决方案 | 软件测试博客 | 测试招聘求职 
打印

[求助] LR回放脚本出错 Error -26612

LR回放脚本出错 Error -26612


求助:LR回放脚本出错 Error -26612


Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx&Anthem_CallBack=true"          [MsgId: MERR-26612]

web_custom_request("Login.aspx") highest severity level was "ERROR", 4610 body bytes, 351 header bytes          [MsgId: MMSG-26388]

我做的操作是登陆(输入账户和密码)系统是B/S架构用.NET写的asp的网站
回放的时候就报 Error -26612
请高手指教
谢谢

TOP

这个错误无所谓,关键看后面的HTTP错误是500

表示你的被测系统内部错误
欢迎访问Ricky的专业个人测试博客
http://www.rickyzhu.com
专注于测试自动化,性能测试以及测试工具的研究

TOP

但是我手动的访问系统是可以正常的,
录制的时候也是正常的,就是回放的时候出错,请问怎样处理,

TOP

关联

因为你这系统要登陆,会有cookie或者session

自己搜索吧

TOP

好,
谢谢
我去看看

TOP

有结果了吗? 我今天也碰到了这个问题,不知道怎么解决?

TOP

还是没有解决问题
关联也做了,
不知道怎样解决,
请高手指教

TOP

Can you post your login script here? I think there should have some parameter can't be hard-code

TOP

这是我录制的代码

Action()
{

        web_set_max_html_param_len("2048");

        /* Registering parameter(s) from source task id 3
        // {Siebel_Analytic_ViewState2} = "dDwxOTkxNjg0Mjg1Ozs+Gwh8PX8Gcsw4BO9cuTnXsHovcl8="
        // */

        web_reg_save_param("Siebel_Analytic_ViewState2",
                "LB/IC=ViewState\" value=\"",
                "RB/IC=\"",
                "Ord=1",
                "RelFrameId=1",
                "Search=Body",
                LAST);


        web_url("Login.aspx",
                "URL=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTTP",
                LAST);
        web_url("WebFrame.css",
                "URL=http://192.168.1.251/Css/WebFrame.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
                "Snapshot=t2.inf",
                LAST);


        web_concurrent_start(NULL);
        web_url("user.gif",
                "URL=http://192.168.1.251/Images/user.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
                "Snapshot=t3.inf",
                LAST);

        web_url("password.gif",
                "URL=http://192.168.1.251/Images/password.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
                "Snapshot=t4.inf",
                LAST);
   


        web_concurrent_end(NULL);

        lr_think_time(9);

        web_custom_request("Login.aspx_2",
                "URL=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx&Anthem_CallBack=true",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.1.251/Login.aspx?ReturnUrl=%2fDefault.aspx",
                "Snapshot=t5.inf",
                "Mode=HTTP",
                "EncType=application/x-www-form-urlencoded; charset=utf-8",
                "Body=&Anthem_UpdatePage=true&__VIEWSTATE={Siebel_Analytic_ViewState2_URL}&TextBox1=chenhaitao&TextBox2=123456&TextBox3=&__EVENTTARGET=loginButton&__EVENTARGUMENT=",
                LAST);

        web_convert_param("Siebel_Analytic_ViewState2_URL",
                "SourceString={Siebel_Analytic_ViewState2}",
                "SourceEncoding=HTML",
                "TargetEncoding=URL",
                LAST);

        web_url("Default.aspx",
                "URL=http://192.168.1.251//Default.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t6.inf",
                "Mode=HTTP",
                LAST);


        web_concurrent_start(NULL);
        web_url("MainMenu.js",
                "URL=http://192.168.1.251//common/MainMenu.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t7.inf",
                LAST);

        web_url("WebFrame.css_2",
                "URL=http://192.168.1.251//Css/WebFrame.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t8.inf",
                LAST);

        web_url("MainMenu.css",
                "URL=http://192.168.1.251//Css/MainMenu.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t9.inf",
                LAST);

        web_url("MainMenu.js_2",
                "URL=http://192.168.1.251/Common/MainMenu.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t10.inf",
                LAST);

        web_url("closemenu.gif",
                "URL=http://192.168.1.251//Images/closemenu.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t12.inf",
                LAST);

        web_url("arrow.gif",
                "URL=http://192.168.1.251/Images/arrow.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t13.inf",
                LAST);

        web_url("NoticeRoll.aspx",
                "URL=http://192.168.1.251//BaseData/NoticeRoll.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t16.inf",
                "Mode=HTTP",
                LAST);

        web_url("MainInfo.aspx",
                "URL=http://192.168.1.251//MainInfo.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t17.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_end(NULL);

        web_url("title.gif",
                "URL=http://192.168.1.251//Images/title.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t11.inf",
                LAST);


        web_concurrent_start(NULL);
        web_url("close1.jpg",
                "URL=http://192.168.1.251//images/close1.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t14.inf",
                LAST);

        web_url("bg_w1.gif",
                "URL=http://192.168.1.251//images/bg_w1.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t15.inf",
                LAST);

        web_concurrent_end(NULL);


        web_concurrent_start(NULL);
        web_url("tabpane.js",
                "URL=http://192.168.1.251//common/tabpane/js/tabpane.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t18.inf",
                LAST);

        web_url("tab.css",
                "URL=http://192.168.1.251//common/tabpane/css/luna/tab.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t19.inf",
                LAST);

        web_url("ProgressBar.js",
                "URL=http://192.168.1.251/common/ProgressBar.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t20.inf",
                LAST);

        web_url("winlib.js",
                "URL=http://192.168.1.251/common/winlib.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t22.inf",
                LAST);

        web_concurrent_end(NULL);

        web_url("loading.gif",
                "URL=http://192.168.1.251/images/loading.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t21.inf",
                LAST);


        web_concurrent_start(NULL);

TOP

web_url("tab.active.png",
                "URL=http://192.168.1.251//common/tabpane/css/luna/tab.active.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t23.inf",
                LAST);

        web_url("tab.png",
                "URL=http://192.168.1.251//common/tabpane/css/luna/tab.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t24.inf",
                LAST);

        web_url("tab.hover.png",
                "URL=http://192.168.1.251//common/tabpane/css/luna/tab.hover.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://192.168.1.251//MainInfo.aspx",
                "Snapshot=t25.inf",
                LAST);

        web_concurrent_end(NULL);

        lr_think_time(6);
         web_submit_data("Default.aspx_2",
                "Action=http://192.168.1.251//Default.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.1.251//Default.aspx",
                "Snapshot=t26.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=__EVENTTARGET", "Value=MainTopCtl1:lbtnLogout", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value=dDwtMTE5MDA4NDI4Nzt0PDtsPGk8MT47PjtsPHQ8O2w8aTwwPjtpPDE+Oz47bDx0PDtsPGk8Mz47aTw1PjtpPDc+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPOmZiOa1t+a2mzs+Pjs+Ozs+O3Q8cDw7cDxsPG9uY2xpY2s7PjtsPGphdmFzY3JpcHQ6cmV0dXJuIGNvbmZpcm0oJ+aCqOehruWunuimgeS7juW9k+WJjeezu+e7n+azqOmUgOWQl++8nycpXDs7Pj4+Ozs+O3Q8cDw7cDxsPG9uY2xpY2s7PjtsPGphdmFzY3JpcHQ6cmV0dXJuIGNvbmZpcm0oJ+aCqOehruWunuimgemAgOWHuuezu+e7n+WQl++8nycpXDs7Pj4+Ozs+Oz4+O3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDE+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8V2lkdGg7XyFTQjs+O2w8MTwxNjBweD47aTwyNTY+Oz4+Oz47bDxpPDA+O2k8MT47aTwyPjtpPDM+O2k8ND47aTw1PjtpPDY+O2k8Nz47aTw4PjtpPDk+O2k8MTA+O2k8MTE+O2k8MTI+O2k8MTM+O2k8MTQ+O2k8MTU+O2k8MTY+O2k8MTc+O2k8MTg+O2k8MTk+O2k8MjA+O2k8MjE+O2k8MjI+O2k8MjM+O2k8MjQ+O2k8MjU+O2k8MjY+O2k8Mjc+O2k8Mjg+O2k8Mjk+O2k8MzA+O2k8MzE+O2k8MzI+O2k8MzM+O2k8MzQ+O2k8MzU+O2k8MzY+O2k8Mzc+O2k8Mzg+O2k8Mzk+O2k8NDA+O2k8NDE+O2k8NDI+O2k8NDM+O2k8NDQ+O2k8NDU+O2k8NDY+O2k8NDc+O2k8NDg+O2k8NDk+O2k8NTA+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8SGVpZ2h0O1RleHQ7Q3NzQ2xhc3M7XyFTQjs+O2w8MTwyMHB4Pjvlt6XljZXnrqHnkIY7TWFpb"
       
       
        return 0;
}

TOP

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.
欢迎访问我的博客:http://tester2test.cnblogs.com
测试者家园论坛:http://tester2test.5d6d.com
我的作品:《软件性能测试与LoadRunner实战》

TOP

 
当前时区 GMT+8, 现在时间是 2008-11-24 02:40Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹