Quality Testing

Quality is delighting customers

How to perform load testing with concurrent users in jmeter ?

How to perform load testing with concurrent users in jmeter

Views: 320

Reply to This

Replies to This Discussion

Normally the process looks like:

  1. Perform the test scenario(s) you would like to cover in browser and record it using JMeter's HTTP(S) Test Script Recorder
  2. Perform correlation using JMeter's Post-Processors if required. Add HTTP Cookie Manager to your Test Plan to work around cookie-based authentication  
  3. Perform parameterisation using i.e. CSV Data Set Config if required
  4. Run your test with 1-2 users/loops and inspect request and response details in the View Results Tree listener to ensure your test is doing what it is supposed to be doing. 
  5. Once you are happy with your test behaviour - add more virtual users in Thread Group and run your test in non-GUI mode
  6. When test execution is finished analyse results using JMeter Listeners and/or HTML Reporting Dashboard

See the following material for more information:

I would also recommend attending free JMeter Academy - most probably the best way of ramping up in JMeter as of now.  

It depends on what your test is doing. If it's something long enough - it will be 20, if it's something very short - it'll be 1.

JMeter offers several options to control the load. In particular the most commonly used elemends are:

Synchronizing Timer - to pause threads unless certain number will be reached and fire them all at the same time.
Constant Throughput Timer - to specify exact load to generate, i.e. 20 requests per second.
Also JMeter concurrent threads are not "concurrent users" as real-life people do pauses between actions on web pages. If you don't set any pauses in your tests then 20 concurrent threads will stand for something like 200-250 concurrent users.  

You can know more software testing  questions like this from JanBask Training.

Hello Anita,

You can follow the below approach as per qa testing company to resolve your problem.

In Jmeter, we have an element name Thread Group which is referring to the number of concurrent users that you are looking for.
Therefore, you have to create thread groups and then set the number of threads like 5, 10, 15, and so on to perform the same request with the number of concurrent users.

You can refer to the below concept to calculate the load test for concurrent users.

Try this formula:
Users spend on a web page about 10 min, and the site gets accessed between 10 AM EST and 7 PM PST (15 hours). You can calculate concurrent users with the below formula.

(Monthly total users)/(30 days a month * 15 hours a day * 6 {note, 60min/10min per user} = Daily average concurrent user load.

300 users visits per 1 day
Users spend about 10 min on the page
Website is accessed mostly about 8 hours a day

(total daily users)/(1 day * 8 hour a day * 6 {note, 60min/10min per user}
300/(1*8*6) = 6.2 concurrent user (we can assume 8 concurrent users)

So if those 6 users will be login every 10 minutes it will give you about 300 users/visits for a day.


TTWT Magazine





© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service