Jignesh Parmar

JMETER: HOW TO UPLOAD MULTIPLE IMAGES BY CSV FILE IN APACHE JMETER?

Published 3 years ago 2183 Views
image

Step 1: Configure JMeter for CSV file image upload.

  • Launch Jmeter
  • Right Click on Test Plan --> Add--> Threads (Users) --> Thread Group
  • Right Click on Thread Group --> Add --> Sampler --> HTTP Request
  • Now, fill the value in the appropriate fields.
    1. Method = "POST"
    2. Make sure "Use multipart / form-data" checkbox is checked.
  • Click on the Files Upload tab and fill in the details as described below.
    1. File Path: Here, enter parameter name between the dollar and curly brackets. Like:  ${image}
    2. Parameter Name: Give the appropriate name of the image parameter.
    3. MIME Type: Enter the MIME type as per the selected images for upload.
      • image/png
      • image/jpeg
      • image/jpg
      • image/bmp
      • image/webp
      • image/gif

 

Step 2: Create CSV file for image path

  • Press the window button of the computer and enter excel and open the excel file.
  • Now enter the full path of the images with the image name and extensions in a single column.
  • Then save this file as a CSV file(Comma-Delimited).

Step 3: Create CSV Data set config in Jmeter

  • Right Click on Thread Group --> Add --> Config Element --> CSV Data Set Config
  • Fill appropriate details in the config file as below steps.
    • Filename: By browse option select CSV file.
    • Variable Name(comma-delimited): Enter the parameter name of the image file for Web Services/API.
    • Select other options as below image.

A BLOG ABOUT DEVELOPMENT

Subscribe and get my latest blog post in your inbox.
image
JMETER: HOW TO GENERATE HTML AND CSV FILE REPORT OF LOAD/PERFORMANCE TESTING BY COMMAND PROMPT?

By cmd and JMeter we can generate an HTML report of Load testing and Performance testing by command.

image
JMETER: HOW TO UPLOAD MULTIPLE IMAGES BY CSV FILE IN APACHE JMETER?

By Jmeter CSV file configuration we can upload multiple images with the help of Apache JMeter for Performance/Load testing.

image
JMETER : HOW TO UPLOAD MULTIPLE IMAGES BY APACHE JMETER?

By Apache Jmeter we can upload multiple images for load/performance testing by a single API/Web service call.