0
votes

I have a xyz.zip file and it contains multiple json files. I have to send this zip file in Jmeter post request and read all the json files.

Please let me know any solution.

Thanks in advance!

1
Whether you want tho send this zip file? or the json file date from the zip file - Mohamed Sulaimaan Sheriff
I want to send the json file data from the zipped file. API input accepts only zip file. This zipped file has 3 different json files that needs to be read. - Surbhi

1 Answers

0
votes

Just like any other file, using HTTP Request sampler

  1. Tick "Use multipart/form-data" box

  2. Provide full or relative path to your .zip file and use correct "Parameter Name" matching the name of the relevant <input type="file"> element at the page

    enter image description here

More information: Performance Testing: Upload and Download Scenarios with Apache JMeter