Reputation: 161
Here I have 4 Thread Groups present in my Test Plan and I have a requirement, need to run test plan in the time interval of 30 minutes between each of my Thread Group (2nd thread group should start only after 30 minutes, after the completion of 1st thread group and so on).
But cannot estimate the actual duration for all my thread groups. And my Ramp-up period should be 0 for all my thread groups, is there any solution to full fill my requirement ?
Thanks in advance
Upvotes: 3
Views: 4631
Reputation: 11
I use like this :
Add "Flow Control Action" steps in Sampler List to the end of the Thread Groups
Upvotes: 1
Reputation: 58772
Adding to @Dmitri T answer, Make sure in Test Plan the uncheck Run Thread Groups Consecutively
so it won't try to execute in parallel
You can add Critical Section Controller in each Thread Group as the parent of all other components with same name (default is global_lock)
That way no Thread Group will start until previous thread ends.
EDIT
For getting result between threads: Add to each thread group Generate Summary Results to get the result of each thread
Generates a summary of the test run so far to the log file and/or standard output.
Upvotes: 1
Reputation: 168042
Configure it as follows:
Current Thread
Pause
1800000
Number of Simultaneous Users to Group by
to be equal to number of threads in the current Thread GroupThis way Test Action sampler will act as a "rendezvous point" so all threads in the current Thread Group will sleep for 1800000
milliseconds (1800 seconds == 30 minutes), this way you will get a 30 minutes delay between Thread Groups.
Upvotes: 4