Tuesday, September 8, 2020

Jmeter Controllers - Run Time Controller

This is third controller in Jmeter Controllers series. If you don't read the previous posts in this series, I would suggest you to read it here.

3. Run Time Controller

Samplers placed under this controller will be executed for the specified duration. It doesn't care about the loop count of thread group.

It will be helpful to run a particular group of requests longer than other requests to see how the system behaves for this particular group of requests.

Let us see the practical example. I have 3 HTTP samplers named (LIST USERS, CREATE and SINGLE USER) and I placed CREATE sampler under Run time Controller and specified 5 seconds as Runtime. Refer below.

And the thread group setting as follows. 


I am going to iterate the test plan with 1 thread and 1 iteration. Let us see the outcome.

As shown in the above snapshot, CREATE sampler is executed until 5 seconds completed. Remember this 5 seconds is not included LIST USERS and SINGLE USER samplers.

Overall 9 CREATE samplers are executed with in 5 seconds.

That's all about Run Time Controller. Simple. isn't it? 😀

No comments:

Post a Comment

Linux Series - SED Utility/Package - 4. Deleting Lines

Let’s explore sed’s explicit delete command, which you specify by using the option 'd'. Again, we are using the sample file named &#...