|
本帖最后由 celestial1 于 2011-7-6 08:53 编辑
是这样的,我们的产品是基于C#开发的web应用,现在要测试一些页面关于新增数据时的性能;“新增”界面是先点击“新增”按钮, 然后会有个弹出框,在弹出框内录入各字段数据后点“保存”即可。现在的问题是每个弹出框都有JS自已的机制记录的时间(此时间估计是用以保证没有缓存每次都是新的),页面上并看不到它的,但录制后,脚本里就有了这些时间,回放后就老报500的错,可能因为回放时弹出框JS自带的时间又不一样了。 有什么办法解决这个entire吗? 因为这个是录数据的界面,肯定不能删除这段脚本了。 请各位前辈详细告之,部分脚本如下,看怎么修改这个脚本里面相关的时间(“2011-7-5-17-7-54”这类时间,都是录制后脚本里就有了,当时功能操作页面上并看不到这些):
web_reg_save_param("Siebel_Analytic_ViewState17",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("DocInfoEdit.aspx",
"URL=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t362.inf",
"Mode=HTML",
EXTRARES,
"Url=/dtscspcmsnew/App_Themes/Default/images/rwglbd_tubiao.jpg", "Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54", ENDITEM,
"Url=/dtscspcmsnew/App_Themes/Default/images/an11.gif", "Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54", ENDITEM,
"Url=/Dtscspcmsnew/JQResource/Calendar/skin/datePicker.gif", "Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54", ENDITEM,
LAST);
web_url("My97DatePicker.htm_2",
"URL=http://192.168.11.172/Dtscspcmsnew/JQResource/Calendar/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54",
"Snapshot=t363.inf",
"Mode=HTML",
EXTRARES,
"Url=skin/whyGreen/img.gif", ENDITEM,
LAST);
web_submit_data("DocInfoEdit.aspx_2",
"Action=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54",
"Snapshot=t364.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState17}", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWDwLz1aNSAozn8fkMAo/n8fkMAoXw+soJAqeT3ecJAoOQnNoKAorW74oFApT12+4HAoXN1OcLAqLIo6gGAtTNs+kHAvuw7uAHAqug3PcMAuPhu98HAsLll9kENAyhNY4KVKy0Hu+EFgWJ3j1ZYAI=", ENDITEM,
"Name=ctl00$MainContent$FIELD_4", "Value=测试数据", ENDITEM,
"Name=ctl00$MainContent$FIELD_1", "Value=2011-07-05", ENDITEM,
"Name=ctl00$MainContent$raffix", "Value=", ENDITEM,
"Name=ctl00$MainContent$btnSave", "Value=保存", ENDITEM,
"Name=ctl00$MainContent$hidfModelCode", "Value=hyjy", ENDITEM,
"Name=ctl00$MainContent$hidfAction", "Value=add", ENDITEM,
"Name=ctl00$MainContent$hidfDocInfoId", "Value=be67ae03-4d9c-4ca5-ad0a-5da4ec5e889b", ENDITEM,
"Name=ctl00$MainContent$hidfTypeId", "Value=", ENDITEM,
"Name=ctl00$MainContent$hidfState", "Value=", ENDITEM,
"Name=ctl00$MainContent$hidfButtonId", "Value=ctl00_TopContent_btnSearch", ENDITEM,
"Name=ctl00$MainContent$hidOrgan", "Value=", ENDITEM,
LAST);
web_url("My97DatePicker.htm_3",
"URL=http://192.168.11.172/Dtscspcmsnew/JQResource/Calendar/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.11.172/dtscspcmsnew/Code/NewDocManage/DocInfoEdit.aspx?action=add&modelCode=hyjy&typeId=&ButtonId=ctl00_TopContent_btnSearch&Datetime=2011-7-5-17-7-54",
"Snapshot=t365.inf",
"Mode=HTML",
LAST);
这些里面那自带的时间(2011-7-5-17-7-54)怎么改啊。。录制时页面上并没有。。求助!请详细告之。 |
|