回放时出现错误-26612 -26388
错误如下Action.c(143): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://172.16.200.115:8888/enet/business/articledispatcher/gdsrcvbook/listGdsRcvBook.action?stateFlag="
Action.c(143): web_url("物品代收") highest severity level was "ERROR", 6525 body bytes, 182 header bytes
按照网上说的一些方法试过都没用(如改用URL-based等),请各位大侠指点...
Action()
{
lr_start_transaction("login");
lr_think_time(33);
web_submit_data("loginSysOperInfo.action",
"Action=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.200.115:8888/enet/",
"Snapshot=t16.inf",
"Mode=HTTP",
ITEMDATA,
"Name=loginOperId", "Value=000001", ENDITEM,
"Name=loginPwd", "Value=123456", ENDITEM,
"Name=vercode", "Value=7386", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("colorbox.css",
"URL=http://172.16.200.115:8888/enet/styles/colorbox.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t17.inf",
LAST);
web_url("jquery.min.js",
"URL=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t18.inf",
LAST);
web_url("jquery.colorbox.js",
"URL=http://172.16.200.115:8888/enet/js/colorbox/jquery.colorbox.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t19.inf",
LAST);
web_url("colorbox_example.js",
"URL=http://172.16.200.115:8888/enet/js/colorbox/colorbox_example.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t20.inf",
LAST);
web_url("avatar_img.png",
"URL=http://172.16.200.115:8888/enet/images/avatar_img.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t23.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("nav_bg.png",
"URL=http://172.16.200.115:8888/enet/images/nav_bg.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t21.inf",
LAST);
web_url("tagleft.png",
"URL=http://172.16.200.115:8888/enet/images/tagleft.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t22.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("sidebar_box_bottom.png",
"URL=http://172.16.200.115:8888/enet/images/sidebar_box_bottom.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t24.inf",
LAST);
web_url("sidebar_box_content.png",
"URL=http://172.16.200.115:8888/enet/images/sidebar_box_content.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t25.inf",
LAST);
web_url("tagright.png",
"URL=http://172.16.200.115:8888/enet/images/tagright.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t26.inf",
LAST);
web_url("controls.png",
"URL=http://172.16.200.115:8888/enet/images/controls.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t27.inf",
LAST);
web_url("loading.gif",
"URL=http://172.16.200.115:8888/enet/images/loading.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t28.inf",
LAST);
web_url("sidebar_box_top.png",
"URL=http://172.16.200.115:8888/enet/images/sidebar_box_top.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t29.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("login",LR_AUTO);
lr_start_transaction("list");
lr_think_time(43);
web_url("物品代收",
"URL=http://172.16.200.115:8888/enet/business/articledispatcher/gdsrcvbook/listGdsRcvBook.action?stateFlag=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.200.115:8888/enet/loginSysOperInfo.action",
"Snapshot=t30.inf",
"Mode=HTTP",
LAST);
...... "Name=vercode", "Value=7386", ENDITEM, ,这行是否是验证码? 验证码这块没有通过,虽然这段代码loadrunner算是通过了,但是程序判断是没有通过的,你的验证码每次登陆时候都是从新生成的。这就导致你登陆没有成功造成后便的操作(物品代收)功能500错误,建议对验证码进行处理,编程或是引用dll不嫌麻烦的话,如果项目紧急,可以让开发工程师临时使用万能验证码的方式或是屏蔽处理。验证码的性能应该不会影响很大。 回复 3# androidone
是有验证码呢,多谢多谢~ 要去掉或搞个万能的验证码
页:
[1]