51Testing软件测试论坛

标题: loadRunner9.0回放脚本报错:MsgId: MMSG-26388 [打印本页]

作者: jh_soft    时间: 2012-2-3 11:40
标题: loadRunner9.0回放脚本报错:MsgId: MMSG-26388
Action()
{

        char * memberId;
           web_add_cookie("merchantIdByCookie=000045; DOMAIN=cisap01test.server.ydcn");

        web_add_cookie("cardTypeByCookie=0000; DOMAIN=cisap01test.server.ydcn");

        web_url("member.do",
                "URL=http://cisap01test.server.ydcn:8801/CIS/member.do",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",        
                LAST);
        //lr_think_time(10);
    web_reg_save_param("memberId",  "LB/IC=memberId\" value=\"", "RB=\" />",   LAST); //"Ord=All",

        web_url("member.do;jsessionid=DDB242C2A29BA85F84CF96C3492E790B",
                "URL=http://cisap01test.server.ydcn:8801/CIS/member.do;jsessionid=DDB242C2A29BA85F84CF96C3492E790B?service=saveBase&eventId=KK00000007&name=%E6%89%A3%E6%89%A3&male=0&country=01&licenceCategory=2&licenceNum=117121111111129&birthDate=19770101&mobilePhone=19991492739&addressProvince=31&addressCity=31&addressZone=15",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://cisap01test.server.ydcn:8801/CIS/member.do",
                "Snapshot=t6.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=images/theme/button_bg_80.jpg", "Referer=http://cisap01test.server.ydcn:8801/CIS/member.do;jsessionid=DDB242C2A29BA85F84CF96C3492E790B?service=saveBase&eventId=KK00000007&name=%E6%89%A3%E6%89%A3&male=0&country=01&licenceCategory=2&licenceNum=117121111111129&birthDate=19770101&mobilePhone=19991492739&addressProvince=31&addressCity=31&addressZone=15", ENDITEM,
                LAST);
   
        lr_message("value---------------:%s",lr_eval_string("{memberId}"));

        return 0;
}

回放报错:
Action.c(9): web_url("member.do") highest severity level was "ERROR", 228136 body bytes, 1887 header bytes          [MsgId: MMSG-26388]
作者: jh_soft    时间: 2012-2-3 11:46
解决方法:
1.选择Tools - recording options 打开recording options选项框
2.选择Internet protocl - recording
3.点击HTML - based script后面的 Html Advanced
4.在打开的页面中将script type选项改为第二个
再次回放问题解决。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2