51Testing软件测试论坛
标题:
录制的脚本在并发超过20个左右用户时,大约十分之一的Vu报错,大家一起来找原因
[打印本页]
作者:
gaoainunu
时间:
2011-7-23 11:06
标题:
录制的脚本在并发超过20个左右用户时,大约十分之一的Vu报错,大家一起来找原因
这次做个了.Net架构的软件,脚本中七处做了关联,是一个添加申报信息的操作。脚本回放没问题,并发压力在20个以下也没问题,再增加用户就会出现错误(大概10%的用户报错):vuser_init.c(416): Error -26377: No match found for the requested parameter "Siebel_Analytic_ViewState1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size
作者:
gaoainunu
时间:
2011-7-23 11:09
web_submit_data("login.aspx_2",
"Action=http://192.168.11.254/jxw/login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.11.254/jxw/login.aspx",
"Snapshot=t46.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState0}", ENDITEM,
"Name=UID", "Value={NewParam_1}", ENDITEM,
"Name=PWD", "Value=123456", ENDITEM,
"Name=dxyzm", "Value=", ENDITEM,
"Name=txtUID", "Value={NewParam_1}", ENDITEM,
"Name=txtPWD", "Value=123456", ENDITEM,
"Name=verifyNum", "Value=", ENDITEM,
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
web_reg_save_param("Siebel_Analytic_ViewState1",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_save_param("EVENTVALIDATION1",
"LB/IC=EVENTVALIDATION\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("leaderQuery.aspx",
"URL=http://192.168.11.254/jxw/leaderQuery.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.11.254/jxw/dbsx/Perworklist.aspx",
"Snapshot=t47.inf",
"Mode=HTML",
EXTRARES,
"Url=WebResource.axd?d=Tka1mlByjGgCac-hehu_zyXyNlB-AuBCmT0mtjqp0X-xOIetJrXvU5oyebc8b8ngDAslUnkvbuXFLntOhj5YhV7P1uE1&t=634449996707136250", ENDITEM,
"Url=ScriptResource.axd?d=4mZt_6UH1O3muHrKonIbYxMviPebV3VGTKWoKdHX8He3Me-OJ6QnItQjFuPtswx0L6HPqejnz8pSC_Hh1ddRXJNh4BVFLwzGtoWEkI8qcRN9_4IersfSzlaUdWx0y6N-UFBhGA2&t=633049125920000000", ENDITEM,
"Url=ScriptResource.axd?d=FQmwmI4CwOw5ukQCy76PRVCmxrFv5RstotoUtitxDnmGHNLr3gjJ4qHPyIxYHXzTz4MZ5R8HVFPQELGcluxihJXUOM6K0CoRs00-UnbtatcGtgm846vNBN4sp_EkJAQJCCHiGA2&t=633049125920000000", ENDITEM,
"Url=js/calendar.js", ENDITEM,
"Url=htc/button2.htc", "Referer=", ENDITEM,
"Url=htc/trHead2.htc", "Referer=", ENDITEM,
"Url=htc/datatable2.htc", "Referer=", ENDITEM,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
web_submit_data("leaderQuery.aspx_2",
"Action=http://192.168.11.254/jxw/leaderQuery.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.11.254/jxw/leaderQuery.aspx",
"Snapshot=t48.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState1}", ENDITEM,
"Name=__EVENTVALIDATION", "Value={EVENTVALIDATION1}", ENDITEM,
"Name=tbSelYear", "Value=1950", ENDITEM,
"Name=tbSelMonth", "Value=1", ENDITEM,
"Name=lSort", "Value=", ENDITEM,
"Name=hd_xmid", "Value=", ENDITEM,
"Name=hd_typeid", "Value=", ENDITEM,
"Name=ddl_year", "Value=2011", ENDITEM,
"Name=txt_seachpro", "Value=", ENDITEM,
"Name=ddl_Status", "Value=-1", ENDITEM,
"Name=btn_addnew", "Value=鐢虫姤鏂伴」鐩\xAE", ENDITEM,
EXTRARES,
"Url=htc/button2.htc", "Referer=", ENDITEM,
LAST);
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_reg_save_param("EVENTVALIDATION2",
"LB/IC=EVENTVALIDATION\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
作者:
gaoainunu
时间:
2011-7-23 11:10
以上是部分脚本
作者:
gaoainunu
时间:
2011-7-23 11:11
是什么原因造成大并发下脚本报错?
作者:
hclovezz1314
时间:
2011-7-25 09:38
简单
web_set_max_html_param_len to increase the parameter size看到这个了吧 ,在看看你的关联,意思就是你关联的内容比如是个序列号,那个序列号太长了,超过了默认长度,那你就必须手动加入函数 web_set_max_html_param_len("XXX");
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2