sangeetha
sangeetha

Reputation: 51

How to create multiple threads in JMeter

I recently started learning jmeter. Please help me How can i create a multiple thread groups which performs same actions but with different credentials. Issue is - in the current application i am testing ,if 5 users hit the refresh btn at the same time its crashing the system. so my Requirement is - Login with 2 different users and hit refresh button

I created 2 thread groups -for user A and user B but when i run the test plan its executing simultaneously.its checking multiple threads with same credentials of user A ,Which is not my requirement. What is the way to deal with it?

Upvotes: 2

Views: 2355

Answers (1)

Dmitri T
Dmitri T

Reputation: 168147

I would suggest the following:

  1. Use single Thread Group, you don't need separate Thread Groups as they are designed to represent different groups of virtual users.
  2. Make sure you use different credentials for users A and B. Normally people use CSV Data Set Config for keeping users credentials so JMeter threads (virtual users) could read CSV file and pick up login and password combinations from there
  3. To ensure that users A and B (or whatever will be the number) "refresh" the page at exactly the same moment - use Synchronizing Timer

Upvotes: 2

Related Questions