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 scenarios.
Can any one help me how to achieve these using JMeter.
Thanks, Raj
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With