极度郁闷问题,可能是关联问题,大家帮忙分析下(目前还未解决)
脚本:两个不同用户同时登录系统后,再退出(就这么简单的步骤)参数化了用户,设置Select next row 为 unique
设置Update value on为 Each iteration
录制两份脚本后,比较动态数据,发现3处是动态的
web_submit_data("default.aspx",web_submit_data("mainpage2.aspx_2",web_submit_data("mainpage2.aspx_3",.
在脚本里对这3处做了关联,运行通过.
在场景里设置两个用户,执行后,一个pass,一个failed.
错误
Action.c(741): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.122.10.208/DevelopmentR2_5/Themes/default/SysMain2.aspx?availWidth=1024&availHeight=708"
附上部分脚本代码:
web_set_max_html_param_len("1024");
web_reg_save_param("CSRule_1",
"LB=IFCAViewStatePersist",
"RB=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
"SaveOffset=1",
LAST);
web_url("DevelopmentR2_5",
"URL=http://10.122.10.208/DevelopmentR2_5/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_submit_data("default.aspx",
"Action=http://10.122.10.208/DevelopmentR2_5/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\{CSRule_1}", ENDITEM,
"Name=__VIEWSTATE", "Value=", ENDITEM,
"Name=EmpNo", "Value=", ENDITEM,
"Name=", "Value=", ENDITEM,
"Name=EmpPassWord", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=__Page", ENDITEM,
"Name=__CALLBACKPARAM", "Value={NewParam},11", ENDITEM,
LAST);
web_url("SysMain2.aspx",
"URL=http://10.122.10.208/DevelopmentR2_5/Themes/default/SysMain2.aspx?availWidth=1024&availHeight=708",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_reg_save_param("CSRule_2",
"LB=IFCAViewStatePersist",
"RB=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
"SaveOffset=1",
LAST);
web_url("mainpage2.aspx",
"URL=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/Themes/default/SysMain2.aspx?availWidth=1024&availHeight=708",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_submit_data("mainpage2.aspx_2",
"Action=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Snapshot=t6.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\{CSRule_2}", ENDITEM,
"Name=__VIEWSTATE", "Value=", ENDITEM,
"Name=CalendarControl1_Calendar1_selecteddates", "Value=2008.5.29", ENDITEM,
"Name=CalendarControl1_Calendar1_visibledate", "Value=0001.1.1", ENDITEM,
"Name=CalendarControl1_Calendar1_apparentvisibledate", "Value=2008.5", ENDITEM,
"Name=textKey", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=NotesControl1", ENDITEM,
"Name=__CALLBACKPARAM", "Value=", ENDITEM,
LAST);
lr_think_time(10);
web_submit_data("mainpage2.aspx_3",
"Action=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Snapshot=t7.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\{CSRule_2}", ENDITEM,
"Name=__VIEWSTATE", "Value=", ENDITEM,
"Name=CalendarControl1_Calendar1_selecteddates", "Value=2008.5.29", ENDITEM,
"Name=CalendarControl1_Calendar1_visibledate", "Value=0001.1.1", ENDITEM,
"Name=CalendarControl1_Calendar1_apparentvisibledate", "Value=2008.5", ENDITEM,
"Name=textKey", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=NotesControl2", ENDITEM,
"Name=__CALLBACKPARAM", "Value=payableoverdue,cashreceiptoverdue,budgetoverestimate,projectcostovertop,mcorprequestescalate,mcexpiredcontract,mcarrearage,mcorptrxvoid,mcorpreceiptvoid,mcorprefund,mcorptrx,rentaltenancy,rentaagentcommission,rentalprospect,rt_prospectcustomertrack", ENDITEM,
LAST);
以下是部分录制日志:
web_submit_data("default.aspx",
"Action=http://10.122.10.208/DevelopmentR2_5/default.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\4ea4f2cb-7bd3-45bb-8656-6e375f20a8a8", ENDITEM, "Name=__VIEWSTATE", "Value=", ENDITEM,
web_submit_data("mainpage2.aspx_3",
"Action=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Snapshot=t7.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\11583e0f-be23-459e-b5bb-918d11e64b7d", ENDITEM, "Name=__VIEWSTATE", "Value=", ENDITEM,
"Name=CalendarControl1_Calendar1_selecteddates", "Value=2008.5.29", ENDITEM,
"Name=CalendarControl1_Calendar1_visibledate", "Value=0001.1.1", ENDITEM,
"Name=CalendarControl1_Calendar1_apparentvisibledate", "Value=2008.5", ENDITEM,
"Name=textKey", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=NotesControl2", ENDITEM,
"Name=__CALLBACKPARAM", "Value=payableoverdue,cashreceiptoverdue,budgetoverestimate,projectcostovertop,mcorprequestescalate,mcexpiredcontract,mcarrearage,mcorptrxvoid,mcorpreceiptvoid,mcorprefund,mcorptrx,rentaltenancy,rentaagentcommission,rentalprospect,rt_prospectcustomertrack", ENDITEM,
LAST);
"Name=EmpNo", "Value=", ENDITEM,
"Name=", "Value=", ENDITEM,
"Name=EmpPassWord", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=__Page", ENDITEM,
"Name=__CALLBACKPARAM", "Value=yanjiali,11", ENDITEM,
LAST);
web_submit_data("mainpage2.aspx_2",
"Action=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx",
"Snapshot=t6.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE_KEY", "Value=C:\\Temp\\IFCAViewStatePersist\\11583e0f-be23-459e-b5bb-918d11e64b7d", ENDITEM, "Name=__VIEWSTATE", "Value=", ENDITEM,
"Name=CalendarControl1_Calendar1_selecteddates", "Value=2008.5.29", ENDITEM,
"Name=CalendarControl1_Calendar1_visibledate", "Value=0001.1.1", ENDITEM,
"Name=CalendarControl1_Calendar1_apparentvisibledate", "Value=2008.5", ENDITEM,
"Name=textKey", "Value=", ENDITEM,
"Name=__CALLBACKID", "Value=NotesControl1", ENDITEM,
"Name=__CALLBACKPARAM", "Value=", ENDITEM,
LAST);
[ 本帖最后由 galiji 于 2008-6-2 10:07 编辑 ] 以下是部分输出日志:
Action.c(20): <body onkeypress="presskeycheck()" onkeyup="upkeycheck()" scroll="no">\r\n
Action.c(20): <form name="Form1" method="post" action="default.aspx" id="Form1">\r\n
Action.c(20): <div>\r\n
Action.c(20): <input type="hidden" name="__VIEWSTATE_KEY" id="__VIEWSTATE_KEY" value="C:\\Temp\\IFCAView
Action.c(20): StatePersist\\97087cf3-274a-4b39-ba14-a6475ce71cba" />\r\nAction.c(20): <input type="hidden" name="__VIEWSTATE" id="\r\n
Action.c(20): __VIEWSTATE" value="" />\r\n
Action.c(20): </div>\r\n
Action.c(716): t=24445ms: 174-byte request body for "http://10.122.10.208/DevelopmentR2_5/default.aspx" (RelFrameId=1)
Action.c(716): __VIEWSTATE_KEY=C%3A%5CTemp%5CIFCAViewStatePersist%5C97087cf3-274a-4b39-ba14-a6475ce71cba&
Action.c(716): __VIEWSTATE=&EmpNo=&=&EmpPassWord=&__CALLBACKID=__Page&__CALLBACKPARAM=yanjiali%2C11
Action.c(716): t=25047ms: 199-byte response headers for "http://10.122.10.208/DevelopmentR2_5/default.aspx" (RelFrameId=1)
Action.c(716): HTTP/1.1 200 OK\r\n
Action.c(716): Date: Fri, 30 May 2008 02:33:56 GMT\r\n
Action.c(741): <form name="form1" method="post" action="SysMain2.aspx?availWidth=1024&availHeight
Action.c(741): =708" id="form1" style="border: 0">\r\n
Action.c(741): <div>\r\n
Action.c(741): <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />\r\n
Action.c(741): <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />\r\n
Action.c(741): <input type="hidden" name="__VIEWSTATE_KEY" id="__VIEWSTATE_KEY" value="C:\\Temp\\IFCAView
Action.c(741): StatePersist\\e0a1e4b2-8bbe-4279-b4a3-ac9b3373d883" />\r\n
Action.c(741): <input type="hidden" name="__VIEWSTATE" id="\r\n
Action.c(741): __VIEWSTATE" value="" />\r\n
Action.c(1101): <form name="form1" method="post" action="mainpage2.aspx" id="form1">\r\n
Action.c(1101): <div>\r\n
Action.c(1101): <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />\r\n
Action.c(1101): <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />\r\n
Action.c(1101): <input type="hidden" name="__VIEWSTATE_KEY" id="__VIEWSTATE_KEY" value="C:\\Temp\\IFCAView
Action.c(1101): StatePersist\\a8f2d3b4-926d-44fa-b20d-4395d4747518" />\r\n
Action.c(1101): <input type="hidden" name="__VIEWSTATE" id="\r\n
Action.c(1101): __VIEWSTATE" value="" />\r\n
Action.c(1541): t=142018ms: 340-byte request body for "http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx" (RelFrameId=1)
Action.c(1541): __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE_KEY=C%3A%5CTemp%5CIFCAViewStatePersist%5Ca8f2d
Action.c(1541): 3b4-926d-44fa-b20d-4395d4747518&__VIEWSTATE=&CalendarControl1_Calendar1_selecteddates=2008
Action.c(1541): .5.29&CalendarControl1_Calendar1_visibledate=0001.1.1&CalendarControl1_Calendar1_apparentv
Action.c(1541): isibledate=2008.5&textKey=&__CALLBACKID=NotesControl1&__CALLBACKPARAM=
Action.c(1541): t=142330ms: 199-byte response headers for "http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx" (RelFrameId=1)
Action.c(1541): HTTP/1.1 200 OK\r\n
Action.c(1541): Date: Fri, 30 May 2008 02:35:53 GMT\r\n
Action.c(1562): Cookie: SysTheme=default; FrontThemes=Default; ASP.NET_SessionId=czlswfenbsuwyp3o0tsh0dv2\r
Action.c(1562): \n
Action.c(1562): Content-Length: 616\r\n
Action.c(1562): \r\n
Action.c(1562): t=142524ms: 616-byte request body for "http://10.122.10.208/DevelopmentR2_5/main/mainpage2.aspx" (RelFrameId=1)
Action.c(1562): __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE_KEY=C%3A%5CTemp%5CIFCAViewStatePersist%5Ca8f2d
Action.c(1562): 3b4-926d-44fa-b20d-4395d4747518&__VIEWSTATE=&CalendarControl1_Calendar1_selecteddates=2008
Action.c(1562): .5.29&CalendarControl1_Calendar1_visibledate=0001.1.1&CalendarControl1_Calendar1_apparentv
Action.c(1562): isibledate=2008.5&textKey=&__CALLBACKID=NotesControl2&__CALLBACKPARAM=payableoverdue%2Ccas
Action.c(1562): hreceiptoverdue%2Cbudgetoverestimate%2Cprojectcostovertop%2Cmcorprequestescalate%2Cmcexpir
Action.c(1562): edcontract%2Cmcarrearage%2Cmcorptrxvoid%2Cmcorpreceiptvoid%2Cmcorprefund%2Cmcorptrx%2Crent
Action.c(1562): altenancy%2Crentaagentcommission%2Crentalprospect%2Crt_prospectcustomertrack
[ 本帖最后由 galiji 于 2008-5-30 12:02 编辑 ] 场景里的错误
Action.c(741): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.122.10.208/DevelopmentR2_5/Themes/default/SysMain2.aspx?availWidth=1024&availHeight=708"
这个错误很奇怪:
SysMain2.aspx 录制的时候,并没有产生什么动态数据,,但是我在输出日志里却看到了
Action.c(741): <form name="form1" method="post" action="SysMain2.aspx?availWidth=1024&availHeight
Action.c(741): =708" id="form1" style="border: 0">\r\n
Action.c(741): <div>\r\n
Action.c(741): <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />\r\n
Action.c(741): <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />\r\n
Action.c(741): <input type="hidden" name="__VIEWSTATE_KEY" id="__VIEWSTATE_KEY" value="C:\\Temp\\IFCAView
Action.c(741): StatePersist\\e0a1e4b2-8bbe-4279-b4a3-ac9b3373d883" />\r\n 高手们,,,快来帮我下把 人呢
页:
[1]