How to perform load testing for website using JMeter

junaidp picture junaidp · Feb 16, 2012 · Viewed 33.5k times · Source

I want to create a script in JMeter that simulates e.g. 100 users accessing our site over a period of 3-4 minutes.

We need to test whether our application can allow 25.000 users/day - that is 1.100 per hour.

For that i have made this Jmeter test:

enter image description here enter image description here

and here is the result

enter image description here

and here is the graph

enter image description here

I want to know what this result is exactly telling us, if my test pass or fails, if yahoo.com (for which we have run this test for our example) can allow 25.000 users/day and if i am inputting my criteria / requirements correctly?

Thanks

Answer

Aliaksandr Belik picture Aliaksandr Belik · Feb 20, 2012

1. I would advise to use better some custom samplers from jmeter-plugins instead:

2. In addition to the @Qwe comment above: test not the single HTTP request but user's transactions: each test-thread should simulate a kind of real-user browsing activity: login (if any), navigating through the site, search, accessing/editing personal settings, logout, etc.
To emulate real-user add also "think-time" timer between transaction steps.

3. Control responses, at least the following:

4. Look into corresponding JMeter documentation:

5. Some step-by-step guidelines about Jmeter setup and usage for load-testing you can find here:


UPD.
Please find, use and feel free to extend this Awesome JMeter collection continued on github.