Reputation: 54094
I have a test plan with the following structure:
SimpleController
HTTP-Sampler-1
HTTP-Sampler-2
HTTP-Sampler-3
HTTP-Sampler-4
HTTP-Sampler-5
HTTP-Sampler-6
HTTP-Sampler-7
This SimpleController
captures a "flow". Meaning that the samplers-1 through 7 is a "unit" meaning that after the HTTP-Sampler-7
sends its request there will be a specific result in the server back-end.
I am interested in sending 30000 "requests" in total to the server. When I say "request" I mean all samplers under the controller.
But I want to start each request in every X seconds.
HTTP-Sampler-1
every X
seconds.Taking into account that the recommendation is to use ~300 threads what is the configuration I should use to accomplish my test?
Upvotes: 1
Views: 114
Reputation: 21096
If those requests are the only one you want to execute, you can use Constant Throughput Timer.
Constant througput timer wants you to give it target throughput in samples per minute. As you have 7 requests per X seconds, you can set it to 7*60/X
. Also set Calculate Throughput based on to "this thread only"
Your test plan will be the same, only timer will be added to it.
If you also want to send other requests in this thread, I think you should use Beanshell or BSF.
Upvotes: 1