51Testing软件测试论坛

标题: 刚学loadrunner 测试遇到问题 求帮忙 [打印本页]

作者: johnnysam    时间: 2010-7-13 17:46
标题: 刚学loadrunner 测试遇到问题 求帮忙
错误提示:
Action.c(139): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://passport-office.urgamer.com/AccountCenter/index.aspx"          [MsgId: MERR-26612]

Action.c(139): web_submit_data("index.aspx") highest severity level was "ERROR", 2907 body bytes, 240 header bytes          [MsgId: MMSG-26388]

脚本代码:
Action()
{

        web_add_cookie("__utma=58995314.784157784.1277951991.1278394656.1278571496.21; DOMAIN=passport-office.urgamer.com");

        web_add_cookie("__utmz=58995314.1278064206.12.2.utmcsr=news.urgamer.com|utmccn=(referral)|utmcmd=referral|utmcct=/; DOMAIN=passport-office.urgamer.com");

        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 5
        // {Siebel_Analytic_ViewState2} = "/wEPDwULLTEwMTcyOTQzOTdkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQhidG5Mb2dpbnNTDRAxfcccTol9rUlTMTBR6+MJ"
        // */

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

        web_url("passport-office.urgamer.com",
                "URL=http://passport-office.urgamer.com/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=http://www.google-analytics.com/ga.js", ENDITEM,
                "Url=/App_Themes/images/news_01.jpg", ENDITEM,
                "Url=/App_Themes/images/news_14.jpg", ENDITEM,
                "Url=/App_Themes/images/login_bg.jpg", ENDITEM,
                "Url=/App_Themes/images/uppop_01.jpg", ENDITEM,
                "Url=/App_Themes/images/uppop_02.jpg", ENDITEM,
                "Url=/HomePageCaptCha.aspx?1279011201945", ENDITEM,
                LAST);

        web_submit_data("check_outchain.php",
                "Action=http://qurl.f.360.cn/check_outchain.php",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=urls", "Value=64a800ab75a2def67a170db42e154c40|65e6d726e8f9bfbc7d481eba49b785bb|3be28ddff7206ee2e25e54e0ed6517ff\tnUE0pQbiY3Oup3Ajo3W0YJ9zMzywMF51pzquoJIlYzAioF8=\n", ENDITEM,
                "Name=src", "Value=addrbar", ENDITEM,
                "Name=product", "Value=wd", ENDITEM,
                "Name=combo", "Value=urlproc", ENDITEM,
                "Name=v", "Value=1", ENDITEM,
                "Name=vk", "Value=cc53dc70", ENDITEM,
                "Name=mid", "Value=b005881eca5965d282590c2d86f3b84f", ENDITEM,
                LAST);

        web_url("nav_01.png",
                "URL=http://passport-office.urgamer.com/images/nav/nav_01.png",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                LAST);

        /* Registering parameter(s) from source task id 62
        // {Siebel_Analytic_ViewState6} = "/wEPDwUKMTkxMjMwMjYyMg9kFgJmD2QWAgIBD2QWBgIBDxYCHgVzdHlsZQUNZGlzcGxheTpub25lO2QCAw8WAh8ABQ5kaXNwbGF5OmJsb2NrOxYCAgEPFgIeCWlubmVyaHRtbAUJc2hlbnFpb25nZAIFD2QWFgIBDxYEHwAFDGNvbG9yOkdyZWVuOx8BBQnlt7Lorr7nva5kAgMPFgIfAAUNZGlzcGxheTpub25lO2QCBQ8WBB8ABQxjb2xvcjpHcmVlbjsfAQUJ5bey57uR5a6aZAIHDxYCHwEFDOmCrueuseino+e7kWQCCQ8WBB8ABQxjb2xvcjpHcmVlbjsfAQUJ5bey6aqM6K+BZAILDxYEHwAFDGNvbG9yOkdyZWVuOx8BBQnlt7LlrozlloRkAg0PFgIfAQUJc2hlbnFpb25nZAIPDw8WAh4EVGV4dAUP56ys5LiA5qyh55m75b2VZGQCEQ8WAh8BBRLmnKrnmbvpmYbov4fmuLjmiI9kAhMPDxYCHwIFBjQwNTg1MWRkAhUPFgIeA3NyYwUlLi4vQXBwX1RoZW1lcy9pbWFnZXMvaWNvbi9pY29uXzc4LmpwZ2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFD2N0bDAwJGJ0bkxvZ291dHtpMIFl5tVxadRymEmcXzsQLAPZ"
        // */

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

        web_submit_data("login.aspx",
                "Action=http://passport-office.urgamer.com/login.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://passport-office.urgamer.com/",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWBQKasMToDAKUj8fhDAK1qbSRCwKu9tTtBQKC3IeGDKqj+JHf1gpPbhZUHtjDs5GkJFec", ENDITEM,
                "Name=txtAccount", "Value=shenqiong", ENDITEM,
                "Name=txtPassword", "Value=shen1990", ENDITEM,
                "Name=txtValidate", "Value=7094", ENDITEM,
                "Name=btnLogin.x", "Value=51", ENDITEM,
                "Name=btnLogin.y", "Value=20", ENDITEM,
                EXTRARES,
                "Url=/App_Themes/images/left_08.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_11.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_09.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/left_12.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/news_10.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/login_15.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/login_14.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/icon/but_01.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/Captcha.aspx?no=1382337499", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                "Url=/App_Themes/images/icon/leftMenu29_02.jpg", "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx", ENDITEM,
                LAST);

        web_url("nav_01.png_2",
                "URL=http://passport-office.urgamer.com/images/nav/nav_01.png",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                LAST);

        web_custom_request("GetCaptchaImageTwo",
                "URL=http://passport-office.urgamer.com/WebService/LoginWebService.asmx/GetCaptchaImageTwo",
                "Method=POST",
                "Resource=0",
                "RecContentType=application/json",
                "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx",
                "Snapshot=t6.inf",
                "Mode=HTML",
                "EncType=application/json;utf-8",
                "Body={}",
                LAST);

        web_custom_request("GetCaptchaImage",
                "URL=http://passport-office.urgamer.com/WebService/LoginWebService.asmx/GetCaptchaImage",
                "Method=POST",
                "Resource=0",
                "RecContentType=application/json",
                "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx",
                "Snapshot=t7.inf",
                "Mode=HTML",
                "EncType=application/json;utf-8",
                "Body={}",
                LAST);

        web_submit_data("index.aspx",
                "Action=http://passport-office.urgamer.com/AccountCenter/index.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://passport-office.urgamer.com/AccountCenter/index.aspx",
                "Snapshot=t8.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState6}", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWAgL6jPZNAr6dhroKLJr1AEjZFozbOO2dYVtYc9oCMzo=", ENDITEM,
                "Name=txtAccount", "Value=", ENDITEM,
                "Name=txtPassword", "Value=", ENDITEM,
                "Name=txtValidate", "Value=", ENDITEM,
                "Name=ctl00$btnLogout.x", "Value=55", ENDITEM,
                "Name=ctl00$btnLogout.y", "Value=16", ENDITEM,
                EXTRARES,
                "Url=../HomePageCaptCha.aspx?1279011218117", "Referer=http://passport-office.urgamer.com/login.aspx", ENDITEM,
                "Url=../App_Themes/images/nav/nav04_02.jpg", "Referer=http://passport-office.urgamer.com/login.aspx", ENDITEM,
                LAST);

        web_url("nav_01.png_3",
                "URL=http://passport-office.urgamer.com/images/nav/nav_01.png",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t9.inf",
                "Mode=HTML",
                LAST);

        return 0;
}
作者: johnnysam    时间: 2010-7-13 17:47
在回放的时候 快照有区别   密码框都没有填写进去
作者: msnshow    时间: 2010-7-13 20:46
是登陆不成功,所以报500错么
作者: 云层    时间: 2010-7-14 08:56
不好说原因,和系统架构可能有关系




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