-2

Good afternoon,

I'm trying to simulate multiple users on my server (stress test + performance test).

Real users click on a button which make them download a resource (generated PDF file). To simulate the same action, is it sufficient to send a GET request on this resource?

Thanks in advance for your answer.

Zoette
  • 1,241
  • 2
  • 18
  • 49
  • Are they downloading a PDF file from the file system? Is the PDF file generated on the fly via a server side process? They are quite different scenarios. – Adrian Brand Aug 14 '18 at 05:12
  • Thanks for your insight @Adrian Brand. These are generated PDF files. – Zoette Aug 14 '18 at 05:14
  • Are you asking, does a browser use GET to download a file, when clicking on a button. Well, that depends on what the button does. Could also be POST. – hyde Aug 14 '18 at 05:15
  • Hello @hyde, let my clarify my question, sorry if it was not clear enough. I know for sure that the browser is sending a GET request. I retrieved the adress and parameters and am now sending the same GET request with a stress test tool (and it returns 200). I would like to know if it simulated the same server activity than the real user downloading the PDF from his browser. – Zoette Aug 14 '18 at 05:21
  • 1
    You could use something like Ethereal to see what all the browser sends to the server, and what your test script sends to the server, and compare. The GET request will be the same no matter how you send it (browser or script), but server could be on different state depending on what happened before the GET (such as, user having logged in, different users having access to different files). – hyde Aug 14 '18 at 05:25
  • Thanks for this advice, I am going to try this. – Zoette Aug 14 '18 at 05:28

1 Answers1

0

Download a http stress testing tool and configure it to point to your resource.

This is going to be different for your OS so read a few good article like this.

https://www.blazemeter.com/blog/open-source-load-testing-tools-which-one-should-you-use

Adrian Brand
  • 20,384
  • 4
  • 39
  • 60