|
小弟也遇到这样的一个问题~~上传文件时 lr 把.xls的文件路径,当做文件名一起上传了;但是在脚本中我并没有写入文件的路径 :
========================脚本如下=================================
web_submit_data("Upload.do",
"Action=http://192.168.200.235:8088/wem/File/Upload.do?filecode=E37D2800%2D7BEC%2DDE4E%2D891F%2D34B5E378ACC7&filename=WEM%2Exls",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"Referer=",
"Mode=HTML",
ITEMDATA,
"Name=Filename", "Value=WEM.xls",ENDITEM,
"Name=Filedata", "Value=WEM.xls", "File=Yes", ENDITEM,
"Name=Upload", "Value=Submit Query", ENDITEM,
LAST);
====================报错信息如下========================
Action2.c(41): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.200.235:8088/wem/File/Upload.do?filecode=E37D2800%2D7BEC%2DDE4E%2D891F%2D34B5E378ACC7&filename=WEM%2Exls" [MsgId: MERR-26612]
Action2.c(41): web_submit_data("Upload.do") highest severity level was "ERROR", 3098 body bytes, 182 header bytes [MsgId: MMSG-26388]
===================后台数据==========================
严重:Servlet.servicr() for servlet annomvc threw exception
java.io.FileNotFoundException: D:\a\D:\Documents\Desktop\Dome1\Wem.xls(文件、目录名或卷标语法不正确。)
=====注释====================
D:/a 为文件上传后的保存路径 |
|