TA的每日心情 | 开心 2015-11-18 22:53 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
最近web项目有一脚本,需要上传excel文件。
vuGen回放成功,但是放在controller上却显示说找不到对应的文件。
vuGen代码:
web_submit_data("UploadProductLists.action",
"Action=XXXX",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer=XXXX",
"Snapshot=t40.inf",
"Mode=HTML",
ITEMDATA,
"Name=productListExcel", "Value={Param_ProductListXlsLocation}", "File=yes", ENDITEM, LAST);
其中Param_ProductListXlsLocation 参数列表中值是C:\\\\Documents and Settings\\\\xxx\\\\Desktop\\\\TestData\\\\Test.xls
Controller log:
UploadList.c(111): Notify: Parameter Substitution: parameter "Param_ProductListXlsLocation" = "C:\\Documents and Settings\\xxx\\Desktop\\TestData\\Test.xls" [MsgId: MMSG-13992]
UploadList.c(111): Warning -26488: Could not obtain information about submitted file "C:\\Documents and Settings\\xxx\\Desktop\\TestData\\Test.xls": _stat32 rc=-1, errno=2 [No such file or directory]. Using an empty file [MsgId: MWAR-26488]
各位有遇到过这样的问题么?
[ 本帖最后由 yings_9371 于 2010-9-14 07:50 编辑 ] |
|