Search code examples
jmeterload

100 users upload file at the same time jmeter


I have the following scenario:

create 100 users, then all users send a file (each one a unique and different file selected from an excel containing 100 file names) at the same time.


Solution

    1. Record a single file upload event using HTTP(S) Test Script Recorder. During the recording make sure that the file you will be uploading lives under "bin" folder of your JMeter installation as well.
    2. Parameterize recorded hard-coded filename using CSV Data Set Config. Keep in mind that you need to either copy your files to "bin" folder of your JMeter installation or make sure that your CSV file contains full paths to the files you will need to upload.
    3. Set number of threads to 100 in your Thread Group
    4. Add a Synchronizing Timer as a child of the HTTP Request sampler which performs the file upload and set "Number of Simultaneous Users to Group by" to 100