3

I have a test plan with 100 users and I would want to loop through them once for sake of debugging, hence one user once and second user and so on. I know I can use Once only controller to limit one user being run only once. What other setting should I use so that users don't overlap each other.

Note:

I don't want to rely on ramp up period to distance users.

2
  • If I am getting you correctly, you want to run one user at a time and followed by another user i.e. running your script for 100 users one-by-one. No concurrency of users, Right?
    – Dhiman
    Aug 13, 2015 at 14:19
  • yup, this is what I want to do
    – Tarun
    Aug 13, 2015 at 14:20

1 Answer 1

6

Option 1: You can keep the user count as 1 and Loop count as 100 in your thread group. This way your script will be executed 100 times, without concurrency of users and one user at a time. you can use CSV file if you want to change the user login credentials and other data at each loop starting i.e. different data for different user.

Option 2: Another solution is (a kind of workaround and it will too provide what you need), add 100 thread groups to your test plan in JMeter. Keep the User and Loop count as 1 in each thread group i.e. copy-paste the same and select the option "Run Test Group consecutively" in your test plan. You will get the desired result.

enter image description here

You can add Tree Listener to see if you are getting sequential requests or not.

2
  • and I did not have to once only controller :)
    – Tarun
    Aug 13, 2015 at 15:00
  • Yes, right you don't need to :)
    – Dhiman
    Aug 13, 2015 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.