|
一个信息系统,录制了首页登录脚本,回放正常,加入场景后,一个用户运行成功,两个用户就运行失败。
错误信息如下:Action.c(119): Error -26614: HTTP Status-Code=417 (Unknown) for "http://10.163.26.65:8073/ylfwjk/welcomAction!loadMenu.do?_r=0.22860109749593743"
登录脚本回下:
Action()
{
web_url("ylfwjk",
"URL=http://10.163.26.65:8073/ylfwjk/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t35.inf",
"Mode=HTML",
EXTRARES,
"Url=ta/resource/external/My97DatePicker/skin/WdatePicker.css", ENDITEM,
"Url=indexue/images/login_bg.png", ENDITEM,
"Url=indexue/images/blogin.png", ENDITEM,
"Url=indexue/images/user.png", ENDITEM,
"Url=indexue/images/zi01.png", ENDITEM,
"Url=indexue/images/bg_c.png", ENDITEM,
"Url=indexue/images/login_right.png", ENDITEM,
"Url=ta/resource/themes-beta/base/SexyButtons/images/skins/silver/button_right.gif", ENDITEM,
"Url=ta/resource/themes-beta/base/SexyButtons/images/skins/silver/button_left.gif", ENDITEM,
"Url=ta/resource/themes-beta/base/icons/icon16x16/icons.png", ENDITEM,
"Url=ta/resource/themes-beta/base/validatebox/validatebox_pointer1.gif", ENDITEM,
"Url=indexue/images/btn01_01.png", ENDITEM,
LAST);
lr_rendezvous("集合点");
lr_start_transaction("首页登录");
web_submit_data("formLoginCheckAction.do",
"Action=http://10.163.26.65:8073/ylfwjk/formLoginCheckAction.do?r='+Math.random()",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/",
"Snapshot=t36.inf",
"Mode=HTML",
ITEMDATA,
"Name=j_username", "Value=test_01", ENDITEM,
"Name=j_password", "Value=test", ENDITEM,
LAST);
//lr_error_message( "用户名: %s", lr_eval_string( "{username}" ) );
//lr_error_message( "密码: %s", lr_eval_string( "{password}" ) );
web_add_cookie("j_username=test_01; DOMAIN=10.163.26.65");
web_add_cookie("indexStyle.base=blue; DOMAIN=10.163.26.65");
web_url("indexAction.do",
"URL=http://10.163.26.65:8073/ylfwjk/indexAction.do",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t37.inf",
"Mode=HTML",
EXTRARES,
"Url=ta/resource/themes-beta/2014/blue/ta-theme.css", ENDITEM,
"Url=indexue/common/logo.png", ENDITEM,
"Url=ta/resource/themes-beta/2014/blue/images/top_right.jpg", ENDITEM,
"Url=ta/resource/themes-beta/2014/blue/images/bg.png", ENDITEM,
"Url=indexue/indexue_2014/images/blank-arrow.png", ENDITEM,
"Url=ta/resource/themes/base/extentcss/images/panel_tools1.gif", ENDITEM,
"Url=ta/resource/themes-beta/2014/blue/images/bgx.png", ENDITEM,
"Url=indexue/indexue_2014/images/menu/bg.png", ENDITEM,
"Url=indexue/indexue_2014/images/menu/global.png", ENDITEM,
"Url=ta/resource/themes-beta/base/SexyButtons/images/skins/silver/buttonbg.png", ENDITEM,
"Url=ta/resource/themes-beta/2014/blue/images/search-btn.png", ENDITEM,
"Url=ta/resource/themes-beta/base/SexyButtons/images/skins/silver/buttonbg1.png", ENDITEM,
"Url=indexue/common/style_default.jpg", ENDITEM,
"Url=indexue/common/style_ds.jpg", ENDITEM,
"Url=indexue/common/style_oa.jpg", ENDITEM,
"Url=indexue/indexue_2014/images/yuan.png", ENDITEM,
"Url=ta/resource/themes-beta/2014/blue/images/search-icon.png", ENDITEM,
"Url=indexue/indexue_2014/images/icon_close.png", ENDITEM,
"Url=indexue/common/skin_blue.jpg", ENDITEM,
LAST);
web_submit_data("indexAction!findChildMenu.do",
"Action=http://10.163.26.65:8073/ylfwjk/indexAction!findChildMenu.do?_r=0.6137463171802828",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/indexAction.do",
"Snapshot=t38.inf",
"Mode=HTML",
ITEMDATA,
"Name=menuid", "Value=102", ENDITEM,
LAST);
web_url("welcomAction.do",
"URL=http://10.163.26.65:8073/ylfwjk/welcomAction.do",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.163.26.65:8073/ylfwjk/indexAction.do",
"Snapshot=t39.inf",
"Mode=HTML",
EXTRARES,
"Url=indexue/images/bg-content-box.gif", ENDITEM,
"Url=indexue/images/shortcut-button-bg.gif", ENDITEM,
"Url=indexue/images/no.jpeg", ENDITEM,
"Url=indexue/images/yes.jpeg", ENDITEM,
"Url=ta/resource/themes-beta/base/slickgrid/images/datagrid_header_bg.gif", ENDITEM,
LAST);
web_submit_data("indexAction!getMyMenu.do",
"Action=http://10.163.26.65:8073/ylfwjk/indexAction!getMyMenu.do?_r=0.06056429479201675",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/indexAction.do",
"Snapshot=t40.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_submit_data("welcomAction!loadMenu.do",
"Action=http://10.163.26.65:8073/ylfwjk/welcomAction!loadMenu.do?_r=0.22860109749593743",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/welcomAction.do",
"Snapshot=t41.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_submit_data("welcomAction!loadWelcome2.do",
"Action=http://10.163.26.65:8073/ylfwjk/welcomAction!loadWelcome2.do?_r=0.6120926712418635",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/welcomAction.do",
"Snapshot=t42.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_submit_data("welcomAction!initData.do",
"Action=http://10.163.26.65:8073/ylfwjk/welcomAction!initData.do?_r=0.2786481443916443",
"Method=POST",
"TargetFrame=",
"RecContentType=text/json",
"Referer=http://10.163.26.65:8073/ylfwjk/welcomAction.do",
"Snapshot=t43.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_url("formLogoutAction.do",
"URL=http://10.163.26.65:8073/ylfwjk/formLogoutAction.do",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.163.26.65:8073/ylfwjk/indexAction.do",
"Snapshot=t44.inf",
"Mode=HTML",
LAST);
lr_end_transaction("首页登录",LR_AUTO);
return 0;
}
初步判断是这里引起的,"Action=http://10.163.26.65:8073/ylfwjk/formLoginCheckAction.do?r='+Math.random()",导致并发失败。
请高手帮助看看,谢谢
|
|