JMeter - Using Synchronizing Timer on Controller Level

In before article, We acquire around basic things almost Synchronizing Timer. As you lot know, Synchronizing Timer is useful to unloosen given break of threads at 1 time to generate charge on selected asking or all requests of your software charge exam plan. In this article, We volition acquire how to role synchronizing timer on controller score of your software charge exam excogitation in addition to how it works.

Using Synchronizing Timer On Controller Level
I convey prepared exam excogitation amongst ii Thread groups. Thread Group - 1 has Synchronizing Timer on controller score in addition to Thread Group - ii don't convey whatever Synchronizing Timer equally shown inward bellow image.


Both Thread Groups has same configuration equally described bellow.
  • Number of Threads = 4
  • Ramp-up Period = 1
  • Loop Count = 1
And Synchronizing Timer of Thread Group - 1 has bellow given configuration.
  • Number of Simultaneous Users to Group past times = 4
  • Timeout inward milliseconds = 0.
In Thread Group - 1 of software charge exam plan, We convey laid Synchronizing Timer nether unproblematic controller in addition to hence Synchronizing Timer volition strength every requests of unproblematic controller to await for iv threads. Once iv thread reached on specific request, It volition unloosen all threads at once. That agency iv threads volition execute same asking at same fourth dimension in addition to generate charge on that specific request. Same affair volition apply to all requests which are nether unproblematic controller of Thread Group - 1.

Thread Group - ii is used to compare the results of exam excogitation execution amongst Synchronizing Timer in addition to without Synchronizing Timer equally Thread Group - ii produce non convey whatever Synchronizing Timer.

Also added "View Results inward Table" listener nether both Thread groups.

When run inward a higher house software charge exam plan, "View Results inward Table" listener of Thread Group - 1 volition exhibit effect similar bellow. Observe "Start Time" of all iv requests inward bellow given image.


You tin meet that starting fourth dimension time of each grouping of asking is nearest same inward milliseconds. You volition detect hardly 0.01 millisecond divergence betwixt iv thread's starting fourth dimension time of specific request. That means, All iv thread has executed all iv requests concurrently.

Now if you lot volition meet Start fourth dimension of Thread Group - 2, It is unlike for each grouping of asking equally shown inward bellow image.


Start fourth dimension is unlike for grouping of requests in addition to likewise execution sequence is different.

This way, You tin use Synchronizing Timer on controller score inward your software charge exam excogitation to generate charge on all requests of exam using concurrent users.


More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post