I have a Test plan in which there are multiple Thread Groups.
I want to run all of the Thread Groups sequentially.
Thread Groups are as below:
Thread Group1 Thread Group2 Thread Group3 . . . Thread GroupN
I've read in different blogs and articles on the internet, people claiming that the thread groups will run in the order they are defined but apparently they are not in my case. Thread Group4 runs before Thread Group1. Thread Group4 is generating a report which is wrong because it runs before Thread Group1.
How do I ensure the ordering of my Thread Groups?
Also, I need to implement the following scenarios:
Run a single request multiple time by a single user (Single user should create 1000 accounts from a single HTTP request).
Run a multiple requests multiple times by multiple users simultaneously (Multiple users should create 1000 accounts simultaneously from a single HTTP request).
How to do so?
PS: Please read and understand the query carefully before replying.
You should add multiple "Thread Group" into a "Test Plan". Inside "Test Plan" unselect "Run thread groups consecutively". Inside every "Thread Group" configure "Number of Threads(users)" as "5", "Ramp-Up Period" as "0", "Loop Count" as "1". For 5 Samplers you should need 5 "Thread Group".
Jmeter supports running more than one scenario in parallel as part of the same test plan. Each scenario is managed in its own Thread Group element. So for your case, add a new Thread Group to the test plan, and set the steps for the second scenario there.
Concerning consecutive execution of thread groups in test plan: simple check Run Test Group consecutively
check-box on the Test Plan configuration screen:
Use e.g. Loop Controller for this:
Thread Group Number of Threads = 1 Loop Count = 1 ... Loop Controller Loop Count = N HTTP Request ...
or even schema without Loop Controller but not so flexible:
Thread Group Number of Threads = 1 Loop Count = N ... HTTP Request ...
Use Number of Threads
property of standard Thread Group for this together with Ramp-Up Period
property:
Thread Group Number of Threads = N Ramp-Up Period = 0 Loop Count = 1 ... HTTP Request ...
This will start N simultaneous threads executing same scenario.
Check the Run Thread Groups consecutively (i.e. run groups one at a time) in the Test Plan
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With