0
votes

The same request works on Fiddler. so the web service is working ok.

When creating http request on Jmeter with same parameters as in fiddler, I get the correct response from server but the file does not appears in site. It's a simple http post request with zip file.

I have attached the file in "Files upload" in Jmeter with MIME type the same as in Fiddler (application/x-zip-compressed), etc... but the file get not uploaded while posting from Jmeter.

I dont know what other information you may need, just ask for it and I will try to find it.

this is how the request looks on Fiddler: this is how the request looks on Fiddler:

Request on view results tree

when recording with Jmeter the http request look like the picture: enter image description here

2

2 Answers

1
votes

This should not be "simple" http post request, it has to be multipart/form-data post request so make double check that you:

  1. Either provide full path to the file or drop the file to "bin" folder of your JMeter installation
  2. Use correct "Parameter Name" (should be equal to the FileUpload object name)
  3. Check Use multipart/form-data for POST box

JMeter File Upload

See Performance Testing: Upload and Download Scenarios with Apache JMeter article for more information on properly simulating file upload events using JMeter

0
votes

putting ${FILENAME} under file path in the "Files Upload" section (while leaving its paramter name empty and specifying an encoding) did the trick for me: enter image description here