Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I am facing one of the problem in my application at the time of downloading a file. I am unable to capture the request after click on download link. So may be anybody can guide me how to capture these requests with JMeter?

Steps:

  1. Click on Download link
  2. Save the file
  3. Select the drive/location where to save
  4. Click save button
share|improve this question

2 Answers 2

up vote 2 down vote accepted

As Sam mentions when you click "Download" link or button the majority of browsers send GET request for the content and start downloading it in background into temp folder. After you choose the destination the browser just copies the file.

If you need to test the performance of web server on multiple and/or concurrent downloads you just need to simulate GET requests.

If you need to perform some operations on downloaded files, i.e. check size, integrity, type, etc. JMeter offers Save Responses to a file Listener which can store any response including Download one into a file.

See Performance testing: Upload and Download Scenarios with Apache JMeter guide for more details on implementation.

share|improve this answer

When you download a file through your browser like that, it is just making a simple http get request, similar to other requests. The differences is that the browser recognizes that the resource it is getting is not something to parse as html and attempt to display, but to download instead.

Some browser tools, and the jmeter recorder don't usually pick up those requests. You can use a tool like Fiddler or Wireshark to see the requests and then create the requests from scratch in jmeter using the info from the request you see in the other tool.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.