场景运行时报HTTP Status-Code=500 (Internal Server Error)错误
本帖最后由 zhangsh818 于 2010-12-16 15:53 编辑一段查询的测试脚本,没有设置关联(半自动时没有可关联项)
参数化前后均回放正确,但是放置场景中运行时却有如下error:
Action.c(351): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.33.10.33/KCRM_FV/PostData.aspx?type=GetCustName&words=kin&condition=&randomValue=2131686.805185552"
由于担心虚拟用户数过多引发服务器反应不过来,所以我设置的虚拟用户数只有2,迭代也是2,运行具有如上错误。 本帖最后由 zhangsh818 于 2010-12-16 15:52 编辑
web_url("My97DatePicker.htm",
"URL=http://10.33.10.33/KCRM_FV/Javascripts/DatePicker/My97DatePicker.htm",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.33.10.33/KCRM_FV/CommonPage.aspx?Val=Usercontrols/Header.ascx",
"Snapshot=t4.inf",
"Mode=HTML",
LAST); 本帖最后由 zhangsh818 于 2010-12-16 15:52 编辑
lr_rendezvous("Rendezvous_SearchAllAccounts");
lr_start_transaction("Transaction_SearchAllAccounts");
web_submit_data("CUSTINFOLIST.ASPX_2",
"Action=http://10.33.10.33/CUSTOMERRESOURCE/CUSTINFOLIST.ASPX",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwULLTEwODY3MDEzNzAPFgoeCUNvbmRpdGlvbjK1IAABAAAA/////"
"ZDdXN0TGlzdA88KwAJAQgCAWQcc6bjqGNhVXvgjiA/Icl41aEn1Q==", ENDITEM,
"Name=hiddisplay", "Value=0", ENDITEM,
"Name=txtCustName", "Value=", ENDITEM,
"Name=ddlOwnedIndustry", "Value=", ENDITEM,
"Name=ddlClosedStatus", "Value=", ENDITEM,
"Name=ddlRegion", "Value=", ENDITEM,
"Name=btnSearch", "Value=Search", ENDITEM,
"Name=ddlprequery", "Value=", ENDITEM,
"Name=gvCustList$ctl15$hdnRel", "Value=1", ENDITEM,
"Name=gvCustList$ctl16$hdnCustKey", "Value=25033", ENDITEM,
"Name=gvCustList$ctl16$hdnCustType", "Value=0", ENDITEM,
"Name=gvCustList$ctl16$hdnRel", "Value=1", ENDITEM,
LAST);
lr_end_transaction("Transaction_SearchAllAccounts", LR_AUTO); 本帖最后由 zhangsh818 于 2010-12-16 15:50 编辑
lr_think_time(6);
web_custom_request("PostData.aspx",
"URL=http://10.33.10.33/KCRM_FV/PostData.aspx?type=GetCustName&words=kin&condition=&randomValue=2131686.805185552",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.33.10.33/KCRM_FV/CUSTOMERRESOURCE/CUSTINFOLIST.ASPX",
"Snapshot=t8.inf",
"Mode=HTML",
"EncType=",
LAST);
web_custom_request("PostData.aspx_2",
"URL=http://10.33.10.33/KCRM_FV/PostData.aspx?type=GetCustName&words=kings&condition=&randomValue=1931950.0494491534",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.33.10.33/KCRM_FV/CUSTOMERRESOURCE/CUSTINFOLIST.ASPX",
"Snapshot=t9.inf",
"Mode=HTML",
"EncType=",
LAST); 贴了很长的脚本:$ ,我真的没辙了,请大家见谅撒,望各位同仁指教 问题已解决,4楼中的脚本抓取的是autocompleted功能,而参数化后无法触发该功能,因为我们的系统中是输入3个字符就自动触发该功能,而我所做的参数值均只有1位,现在我把这段脚本注释掉了,再运行时就全部pass了:) 真速度。。。。。。。。。。。。 楼主是怎么定位到这个问题的?怎么知道问题出在那里啊?这样的问题一直困扰着我呀,死的心都有哇~~ 回复 8# hgl
没有具体的定位哦,只是看了错误提示是"http://10.33.10.33/KCRM_FV/PostData.aspx?type=GetCustName&words=kin&condition=&randomValue=2131686.805185552"
然后我就去看脚本了,觉得4楼中的脚本有些奇怪,就咨询了一下开发得知是autocompleted功能的:$,所以我就把它注释掉了 谢谢分享 做性能测试也要对要测试的产品有很深的了解啊,要不然性能测试也会很吃亏的! 我测试的是点击报单浏览菜单,显示报单记录。没有你的web_date_request
lr_rendezvous("searchorder");
lr_start_transaction("searchorder");
web_reg_find("Fail=NotFound",
"Text=期数",
LAST);
web_url("RepeatBrowsing.aspx",
"URL=http://172.16.10.251/yyy/Store/DeclarationsBrowse/RepeatBrowsing.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.10.251/yyy/Store/DeclarationsCenter/Register.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=/yyy/ico/page_arrow3.gif", ENDITEM,
"Url=/yyy/ico/page_arrow1.gif", ENDITEM,
"Url=/yyy/ico/page_arrow4.gif", ENDITEM,
"Url=/yyy/ico/page_arrow2.gif", ENDITEM,
LAST);
web_url("My97DatePicker.htm_2",
"URL=http://172.16.10.251/yyy/My97DatePicker/My97DatePicker.htm",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.10.251/yyy/Store/DeclarationsBrowse/RepeatBrowsing.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
lr_end_transaction("searchorder", LR_AUTO); 不错。顶~~~~~
http://www.99doudou.cn/sigline.gif
祛痘产品哪种好 回复 12# hgl
你的错误提示是什么呢?若只是点击浏览菜单,这个请求应该很简单的呀,是不是省略了一些脚本,要不这个事务感觉有点怪哦
页:
[1]