【发布时间】:2014-03-19 06:51:43
【问题描述】:
我有一个上传产品图片的场景。我使用代理服务器记录了场景 但图片没有上传。我尝试将图像移动到 bin 文件夹,然后仍然没有上传图像。谁能帮我纠正这个问题。 我的代码是:
Send parameter with request
Name Value
_method POST
Send files with request
file path Parameter name MIME type
C:/loc/jmeter/bin/img.jpg data[Product][product_image] image/jpeg
实际上问题在于 HTTP 请求路径,因为当我使用代理服务器添加图像时
HTTP Requests
Server Name: Server.com
path:/products/image/1147
使用相同的路径我无法上传图片,但是当我更改
“路径:/products/image/1148”
能够上传图片,但每次我都无法更改。
有没有办法让它自动化。
请帮帮我..
【问题讨论】:
-
请发布您的cmets
-
感谢找到解决方案
标签: jmeter load-testing performance-testing jmeter-plugins jmeter-maven-plugin