51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1836|回复: 4
打印 上一主题 下一主题

[原创] 极度郁闷问题,可能是关联问题,大家帮忙分析下(目前还未解决)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-5-30 11:59:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
脚本:两个不同用户同时登录系统后,再退出(就这么简单的步骤)
参数化了用户,设置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 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2008-5-30 11:59:40 | 只看该作者
以下是部分输出日志:
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\n
Action.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 编辑 ]
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2008-5-30 12:45:21 | 只看该作者
场景里的错误
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
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2008-5-30 17:28:58 | 只看该作者
高手们,,,快来帮我下把
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2008-6-1 10:28:50 | 只看该作者
人呢
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-8 05:42 , Processed in 0.080824 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表