I am using JMeter to do performance test a web page. I have a scenario for uploading a file and downloading a file. I need to load test uploading file and downloading file s
There are actually no difficulties in recording upload/download traffic with any HTTP sniffing tool and then emulate recorded requests in using jmeter.
In the simplest case you will get something like the following:
This will look like the following:
Thread Group Number of Threads = X Loop Count = Y . . . UPLOAD HTTP Request Method = POST Use multipart/form-data for POST = true -- Send Files with Request -- section: File Path = ${testFile} Parameter Name = datafile MIME Type = ... . . . DOWNLOAD HTTP Request Method = GET Save Responses to a file Filename Prefix = downloadTest_ Variable Name = testFile . . .
Here you can find sample script implemented for schema given above: file-upload-download.jmx.
The following posts may also appear useful:
You can also use custom jmeter-plugins.
These two seem extremely suitable for your tests: