51Testing软件测试论坛
标题:
如何用LoadRunner录模拟,从客户端上传数据到服务器端?
[打印本页]
作者:
lijianhuav
时间:
2011-3-22 17:03
标题:
如何用LoadRunner录模拟,从客户端上传数据到服务器端?
如题
作者:
阿七
时间:
2011-3-23 10:43
你录1遍后 重放就上去了
不清楚你特指什么?
作者:
archonwang
时间:
2011-3-24 16:26
....
云里雾里。。。。
作者:
骑士大大
时间:
2013-3-5 16:41
小弟也遇到这样的一个问题~~上传文件时 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 为文件上传后的保存路径
作者:
骑士大大
时间:
2013-3-5 16:48
小弟也遇到一个上传的问题,好像是LR把文件的路径当做文件名一起上传上去了,服务器一直报错;求教有什么方法可以解决掉它吗?
=================================报错的脚本如下=================================
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]
=====================================后台如下========================================
[attach]83905[/attach]
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2