Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download and save files in JMeter

Tags:

java

jmeter

Is there any way to configure in JMeter to save the files coming from a response?
In the dialog box, choose 'save file'?

like image 279
Juan P. Osio Avatar asked Aug 12 '10 01:08

Juan P. Osio


1 Answers

I have been struggling with issue for a week and finally got the solution.

You need to add a Listener "Save response to a file" with that request only that fetches file and then give a location where u want to save the file.
Jmeter saves 2 files one contains response Result and other is the original file.
File format is same as what is fetched from database well in my case the file name that is saved by jmeter on the location is "TEXTFILE_1.octet-stream".
Rename this file to original format like file.jpg or whatever is the format.
You will get the original file and for checking the file integrity, data loss and data corruption, CRC check can be done for the file obtained from jmeter and file before upload - CRC value for the file should be same.

Hope it helps.

like image 155
Arti Tripathi Avatar answered Oct 05 '22 15:10

Arti Tripathi