Let’s talk about how to download a file from API call using JMeter. First you have to create a JMeter project by adding Thread Group, HTTP Requests and etc. Then, add a “Save Responses to a file” Listener to the download HTTP Request
- Right click on the HTTP Request > Add > Listener > Save Responses to a file
And Then, you can add further inputs to the save file
Filename prefix: File will download to this location (~ sign mentioned: file will download to the location where jmeter script saves in your machine)
After run test you can see the downloaded file in the mentioned location.