51Testing软件测试论坛

标题: LR做负载时测试2个用户就报26612的错误(就一个登录的操作)郁闷了 很急啊 [打印本页]

作者: jiajunying    时间: 2011-12-29 14:13
标题: 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"          [MsgId: MERR-26612]
End auto log messages stack.        [MsgId: MMSG-10544]

哪位高手给解决一下啊,
作者: jiajunying    时间: 2011-12-29 14:17
脚本
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
问一下楼主,一个用户运行的时候有问题吗?会是两个用户的不同数据问题吧,比如salaryDepartID=001001&departID=001001这一段,两个用户的salaryDeaprtID和departID是一样的吗?一般情况下,500error很有可能是脚本提交的数据不正确的。
作者: jiajunying    时间: 2011-12-30 10:53
一个用户的时候不会出错,一般情况下,我这最大可以撑到10个用户不出错,但是2个用户出错的时候很多啊
作者: jiajunying    时间: 2011-12-30 10:56
应该是ziheng198688

朋友说的这的错误,关联的问题,不过我是个性能测试的菜鸟啊,不知道这一块应该怎么修改,谢谢,能不能帮忙指点一下
作者: trollmax    时间: 2012-5-29 16:29
求教中............
作者: cafard-haibin    时间: 2012-5-29 22:37
请确认参数的设置方式。




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