51Testing软件测试论坛
标题:
LR录制脚本:图片批量上传,回放日志没有报错,但没有上传成功
[打印本页]
作者:
sxczcql666
时间:
2010-9-7 15:41
标题:
LR录制脚本:图片批量上传,回放日志没有报错,但没有上传成功
Action()
{
web_url("XPButtonUploadText_61x22.png",
"URL=http://192.168.1.111/phm/camerist/images/XPButtonUploadText_61x22.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://192.168.1.111/phm/camerist/js/swfupload.swf?swfuploadrnd=100297502",
"Snapshot=t71.inf",
LAST);
web_submit_data("doUpload.jsp",
"Action=http://192.168.1.111/phm/camerist/doUpload.jsp",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=",
"Snapshot=t72.inf",
"Mode=HTTP",
ITEMDATA,
"Name=Filename", "Value=shan14.jpg", ENDITEM,
"Name=fileImfor0", "Value=shan14", ENDITEM,
"Name=fileImfor1", "Value=shan14", ENDITEM,
"Name=fileIntro1", "Value=shan14", ENDITEM,
"Name=userId", "Value=3824", ENDITEM,
"Name=fileNum", "Value=2", ENDITEM,
"Name=fileIntro0", "Value=shan14", ENDITEM,
"Name=Filedata", "Value=shan14.jpg", "File=Yes", ENDITEM,
"Name=Upload", "Value=Submit Query", ENDITEM,
LAST);
web_submit_data("doUpload.jsp_2",
"Action=http://192.168.1.111/phm/camerist/doUpload.jsp",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=",
"Snapshot=t73.inf",
"Mode=HTTP",
ITEMDATA,
"Name=Filename", "Value=shan15.jpg", ENDITEM,
"Name=fileImfor0", "Value=shan15", ENDITEM,
"Name=fileImfor1", "Value=shan14", ENDITEM,
"Name=fileIntro1", "Value=shan14", ENDITEM,
"Name=userId", "Value=3824", ENDITEM,
"Name=fileNum", "Value=1", ENDITEM,
"Name=fileIntro0", "Value=shan15", ENDITEM,
"Name=Filedata", "Value=shan15.jpg", "File=Yes", ENDITEM,
"Name=Upload", "Value=Submit Query", ENDITEM,
LAST);
作者:
PrefTest
时间:
2010-9-7 15:49
用HTTPWatch跟踪一下,看究竟是怎样上传文件的,LR可能没录下来
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2