|
录制一个文件上传的功能(其中操作过程为:点击添加附件-->浏览-->选择文件-->点击上传附件)
录制出来的脚本如下:
web_submit_data("fillProvider.do",
"Action=http://10.25.11.185:8002/vendor/fillProvider.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://10.25.11.185:8002/vendor/displayProvider.do?viewFlag=normal",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=operateFlag", "Value=", ENDITEM,
"Name=infFilled", "Value=1", ENDITEM,
"Name=type", "Value=MATERIAL", ENDITEM,
"Name=email", "Value=ex_qiurongzhen@paic.com.cn", ENDITEM,
"Name=phone", "Value=", ENDITEM,
"Name=mobile", "Value=", ENDITEM,
"Name=products", "Value=", ENDITEM,
"Name=delegate", "Value=", ENDITEM,
"Name=address", "Value=", ENDITEM,
"Name=postcode", "Value=", ENDITEM,
"Name=capital", "Value=0", ENDITEM,
"Name=certificated", "Value=", ENDITEM,
"Name=quality", "Value=", ENDITEM,
"Name=afterService", "Value=", ENDITEM,
"Name=linkman", "Value=", ENDITEM,
"Name=clients", "Value=", ENDITEM,
"Name=cooperateHis", "Value=", ENDITEM,
"Name=introduction", "Value=", ENDITEM,
"Name=file1", "Value=C:\\Documents and Settings\\ex_qiurongzhen\\My Documents\\qrzstresstestfile\\Bidstressfiile\\400KB.doc", "File=yes", ENDITEM,
EXTRARES,
"Url=images/page.gif", "Referer=http://10.25.11.185:8002/vendor/displayProvider.do?viewFlag=normal", ENDITEM,
"Url=images/button_bg3.gif", "Referer=http://10.25.11.185:8002/vendor/displayProvider.do?viewFlag=normal", ENDITEM,
"Url=images/button_bg3.gif", "Referer=http://10.25.11.185:8002/vendor/displayProvider.do?viewFlag=normal", ENDITEM,
"Url=images/button_bg3.gif", "Referer=http://10.25.11.185:8002/vendor/displayProvider.do?viewFlag=normal", ENDITEM,
LAST);
现在的问题是:我需要测试上传附件的并发反应时间,但从这个脚本中,我根本没有办法把上传附件这个操作与前面的浏览、选择文件等操作分隔出来。
以上脚本是基于html-base script录制的;
也试过基于url-base script录制,但录制出来的脚本都是静态页面,而没有任何提交动作。
我使用的版本是7.51;上传附件功能中的提交是使用JS做的。
不知道大家有没有遇到这样的问题?该怎么样解决?
[ 本帖最后由 qrz2000 于 2006-9-27 16:09 编辑 ] |
|