51Testing软件测试论坛
标题:
运行失败报26377的错误
[打印本页]
作者:
irene0331223
时间:
2008-9-3 14:29
标题:
运行失败报26377的错误
请教:如何找到错误的原因。
场景设置如下:同时加载所有用户;直到完成为止;Vuser为5个
运行场景的时候,总是报:
vuser_init.c(39): 错误 -26377: 找不到请求的参数“Siebel_Analytic_ViewState2”的匹配项。检查请求的边界是否存在于响应数据中。此外,如果要保存的数据超过 1024 个字节,请使用 web_set_max_html_param_len 增加参数大小
录制脚本如下:
vuser_init()
{
web_set_max_html_param_len("1024");
web_url("login.jsf",
"URL=http://localhost:8080/IBRSweb/xmanager/pages/public/login.jsf",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
/* Registering parameter(s) from source task id 13
// {Siebel_Analytic_ViewState2} = "rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cgAQamF2YS5sYW5nLk9iamVjdAAAAAAAAAAAAAAAeHAAAAADdAABMnB0ACUveG1hbmFnZXIvcGFnZXMvbWFpbm1lbnUvbWFpbm1lbnUuanNw"
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
lr_start_transaction("登陆");
web_submit_form("j_acegi_security_check;jsessionid=52D663CF6C9124D331FB3BBF2856BA43",
"Snapshot=t2.inf",
ITEMDATA,
"Name=j_username", "Value={h}", ENDITEM,
"Name=j_password", "Value=", ENDITEM,
EXTRARES,
"Url=/IBRSweb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12204202/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/spacer.gif", "Referer=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf", ENDITEM,
"Url=/IBRSweb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12204202/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/blank.gif", "Referer=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf", ENDITEM,
LAST);
lr_end_transaction("登陆", LR_AUTO);
return 0;
}
Action()
{
lr_rendezvous("录");
lr_start_transaction("录");
web_submit_data("mainmenu.jsf",
"Action=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=header:headerform:newpagesid", "Value=77F9EA5FA9F44C21D5838A5CD22500A2", ENDITEM,
"Name=autoScroll", "Value=", ENDITEM,
"Name=header:headerform_SUBMIT", "Value=1", ENDITEM,
"Name=jscook_action", "Value=header_headerform__idJsp27_menu:A]A5E20A15E93C4AEA904FA7612722B12D", ENDITEM,
"Name=header:headerform:_idcl", "Value=", ENDITEM,
"Name=header:headerform:_link_hidden_", "Value=", ENDITEM,
"Name=javax.faces.ViewState", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
EXTRARES,
"Url=/IBRSweb/ibrs/js/My97DatePicker/skin/WdatePicker.css", "Referer=http://localhost:8080/IBRSweb/ibrs/pages/bizflow/inputfstremit.jsf", ENDITEM,
"Url=/IBRSweb/ibrs/css/icbc.css", "Referer=http://localhost:8080/IBRSweb/ibrs/pages/bizflow/inputfstremit.jsf", ENDITEM,
LAST);
web_submit_data("mainmenu.jsf",
"Action=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:8080/IBRSweb/xmanager/pages/mainmenu/mainmenu.jsf",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=header:headerform:newpagesid", "Value=E1E8FBD3D236A85398B54476E7F0DB0B", ENDITEM,
"Name=autoScroll", "Value=", ENDITEM,
"Name=header:headerform_SUBMIT", "Value=1", ENDITEM,
"Name=jscook_action", "Value=header_headerform__idJsp27_menu:A]A5E20A15E93C4AEA904FA7612722B12D", ENDITEM,
"Name=header:headerform:_idcl", "Value=", ENDITEM,
"Name=header:headerform:_link_hidden_", "Value=", ENDITEM,
"Name=javax.faces.ViewState", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
EXTRARES,
"Url=/IBRSweb/ibrs/js/My97DatePicker/skin/WdatePicker.css", "Referer=http://localhost:8080/IBRSweb/ibrs/pages/bizflow/inputfstremit.jsf", ENDITEM,
"Url=/IBRSweb/ibrs/css/icbc.css", "Referer=http://localhost:8080/IBRSweb/ibrs/pages/bizflow/inputfstremit.jsf", ENDITEM,
LAST);
[
本帖最后由 irene0331223 于 2008-9-3 14:37 编辑
]
作者:
tinafrog
时间:
2008-9-3 14:45
标题:
回复 1# 的帖子
关联函数没有取到数值,检查一下关联函数用的对不对。再把web_set_max_html_param_len("1024")值改大点试试看
作者:
irene0331223
时间:
2008-9-3 15:01
请问怎么检查关联的对不对呢,这是自动录制的结果。谢谢
作者:
zj101582
时间:
2008-9-3 15:14
标题:
回复 1# 的帖子
关联函数 web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
检查请求的左右边界 LB/IC=ViewState\" value=\"", "RB/IC=\""的值
试试
作者:
irene0331223
时间:
2008-9-3 15:26
还是不太懂,我在录制日志和回放日志里查找参数Siebel_Analytic_ViewState2,找不到;我再找服务器刚开始返回的值‘rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cgAQamF2YS5sYW5nLk9iamVjdAAAAAAAAAAAAAAAeHAAAAADdAABMnB0ACUveG1hbmFnZXIvcGFnZXMvbWFpbm1lbnUvbWFpbm1lbnUuanNw’也同样找不到,该怎么办?
作者:
zj101582
时间:
2008-9-3 16:39
标题:
回复 5# 的帖子
关联错了,重新做关联
作者:
tinafrog
时间:
2008-9-3 17:10
标题:
回复 5# 的帖子
我转载的一篇文章讲的比较详细,你可以参考一下
http://www.51testing.com/?90058/ ... e_itemid_90303.html
作者:
tinafrog
时间:
2008-9-3 17:21
标题:
回复 5# 的帖子
我个人转载了一篇文章,相信对你有所帮助,你可以参考一下
http://www.51testing.com/?90058/ ... e_itemid_90303.html
作者:
irene0331223
时间:
2008-9-3 17:31
谢谢楼上的回答!
哎,自动关联也出错阿。
作者:
irene0331223
时间:
2008-9-3 17:32
谢谢楼上的答复!
哎,自动关联也出错了。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2