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); 用HTTPWatch跟踪一下,看究竟是怎样上传文件的,LR可能没录下来
页:
[1]