Reputation: 1
I am doing a test on a website where a link exist as a button "save as csv". I want to save this by using jmeter. Can you please suggest what will be the right path to do this ?
Upvotes: 0
Views: 179
Reputation: 168082
Most probably the link has href
attribute which points to the location of the CSV file, i.e.
<a href="http://example.com/path/to/file.csv">Save as CSV</a>
It means that you need to send a simple HTTP GET request to the location of the href
attribute of the link. The relevant configuration of the HTTP Request sampler would be something like:
If you additionally want to save the file to your hard drive - use Save Responses to a file listener, see Performance Testing: Upload and Download Scenarios with Apache JMeter article for more information if needed.
If you have problems with constructing this or that JMeter HTTP Request manually - remember that you can always just record it using your browser and JMeter's HTTP(S) Test Script Recorder
Upvotes: 1