jiajunying 发表于 2011-12-29 14:13:52

LR做负载时测试2个用户就报26612的错误(就一个登录的操作)郁闷了 很急啊

加载2个用户,就报26612
日志
Action.c(58): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp"       
End auto log messages stack.       

哪位高手给解决一下啊,

jiajunying 发表于 2011-12-29 14:17:31

脚本
Action()
{

        web_add_cookie("popped=yes; DOMAIN=192.168.18.203");

        web_url("login.jsp",
                "URL=http://192.168.18.203:9080/hrms/jsp/login.jsp",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=../images/login/boxRight.png", ENDITEM,
                "Url=../images/login/bg0.jpg", ENDITEM,
                "Url=../images/login/box_bg.png", ENDITEM,
                "Url=../images/login/bg1.jpg", ENDITEM,
                "Url=../images/login/boxLeft.png", ENDITEM,
                "Url=../images/login/loginMenu2.jpg", ENDITEM,
                LAST);

        lr_start_transaction("denglu");

        lr_think_time(19);

        web_submit_form("com.eTechSoft.hrms.security.LoginController",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=userID", "Value={user}", ENDITEM,
                "Name=password", "Value=12345678avic", ENDITEM,
                EXTRARES,
                "Url=../images/login/bg_ft.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/footer.jsp", ENDITEM,
                "Url=../images/tabLeft.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke.jsp", ENDITEM,
                "Url=../images/tabCenter.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke.jsp", ENDITEM,
                "Url=../images/tabRight.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke.jsp", ENDITEM,
                "Url=../images/login/bg_menu.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/bg_menuHover.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/topBg.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/icon.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/bgmenu.png", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/icon_02.png", "Referer=", ENDITEM,
                "Url=../images/menu/top_button_v.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp", ENDITEM,
                "Url=../images/login/icon_13.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_03.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_04.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_06.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_05.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_09.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_11.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_15.png", "Referer=", ENDITEM,
                "Url=../images/login/icon_12.png", "Referer=", ENDITEM,
                LAST);

        lr_end_transaction("denglu",LR_AUTO);

        lr_think_time(5);

        web_url("com.eTechSoft.hrms.security.LoginController_2",
                "URL=http://192.168.18.203:9080/hrms/servlet/com.eTechSoft.hrms.security.LoginController?actionType=switch&platID=selfCenter&salaryDepartID=001001&departID=001001",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR.jsp",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=../images/tabLeft.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke_emp.jsp", ENDITEM,
                "Url=../images/tabCenter.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke_emp.jsp", ENDITEM,
                "Url=../images/tabRight.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/awoke_emp.jsp", ENDITEM,
                "Url=../images/login/bg_menu.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/login/bg_menuHover.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/menu/top_button_v.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/login/topBg.jpg", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/login/icon.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/login/bgmenu.png", "Referer=http://192.168.18.203:9080/hrms/jsp/menuHR_emp.jsp", ENDITEM,
                "Url=../images/login/bg_ft.gif", "Referer=http://192.168.18.203:9080/hrms/jsp/footer.jsp", ENDITEM,
                LAST);

        return 0;
}

ziheng198688 发表于 2011-12-29 15:03:19

问一下楼主,一个用户运行的时候有问题吗?会是两个用户的不同数据问题吧,比如salaryDepartID=001001&departID=001001这一段,两个用户的salaryDeaprtID和departID是一样的吗?一般情况下,500error很有可能是脚本提交的数据不正确的。

jiajunying 发表于 2011-12-30 10:53:52

一个用户的时候不会出错,一般情况下,我这最大可以撑到10个用户不出错,但是2个用户出错的时候很多啊

jiajunying 发表于 2011-12-30 10:56:12

应该是ziheng198688

朋友说的这的错误,关联的问题,不过我是个性能测试的菜鸟啊,不知道这一块应该怎么修改,谢谢,能不能帮忙指点一下

trollmax 发表于 2012-5-29 16:29:34

求教中............

cafard-haibin 发表于 2012-5-29 22:37:38

请确认参数的设置方式。
页: [1]
查看完整版本: LR做负载时测试2个用户就报26612的错误(就一个登录的操作)郁闷了 很急啊