'Group multiple HTTp samplers as one transaction, and have constant throughput
In my application, I would like to combine a group of HTTP samplers as one transaction, and have a constant throughput on the group.. ie. when I created a thread group with multiple HTTP samplers and defined a constant throughput timer in the group, I am seeing that it is considering each HTTP sampler separately...
Test Plan
ThreadGroup
----> request 1
-----> request 2
-----> request 3
------> constant Throughoput timer ( 1.0 req per min)
It executes as :
-----> request1
wait 60 secs
------> request 2
wait 60 secs...
----> request 3 ...
what I would like
-----request 1 ----- request 2 ------ request 3
wait 60 secs
----- request 1 ---- request 2 ----- request 3
wait 60 secs
Solution 1:[1]
use flow control action at the end of the requests
for better understanding difference between timers & flow control action, please go through this video https://www.youtube.com/watch?v=miZGLaAq4UQ&t=301s
Solution 2:[2]
Depending on what exactly you're trying to achieve:
You can put the requests under the Transaction Controller and tick Generate parent sampler
box:
Another option is adding Flow Control Action sampler as the 4th sampler and put the "wait for 60 sec" there
And finally you can put a Constant Timer as a child of the 1st Sampler:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Pradeep Reddy |
Solution 2 | Dmitri T |