0
votes

How can I distribute user load across test scenarios in JMeter? For instance, if I am testing an email system for 400 concurrent users, I would like to apportion the total peak user load as follows:

  1. 100 concurrent users checking emails
  2. 100 concurrent users replying to emails
  3. 100 concurrent users composing new emails
  4. 50 concurrent users sending emails with attachments
  5. 25 concurrent users making changes to their settings
  6. 25 concurrent users doing folder operations

I tried to create one thread group per scenario. But, when I add a scenario to one of the thread groups, other thread groups vanish. It looks like I can't have multiple thread groups and add one scenario per thread group.

2
thread groups vanish? your settings should work so can add more details on your current test planuser7294900

2 Answers

1
votes

There are different approaches for implementing the scenario:

  1. Using different Thread Groups for different groups of users
  2. Using single Thread Group and distribute the load using one of the following:

See Running JMeter Samplers with Defined Percentage Probability article for more information on each of the tecnhiques.

1
votes

I would suggest you to go with Throughput Controller - this site has the clear explanation you have been looking for - http://www.testautomationguru.com/jmeter-user-load-distribution-using-throughput-controller/.

enter image description here