Tuesday, February 23, 2016

Jmeter - Using Synchronizing Timer On Asking Level

| Tuesday, February 23, 2016
Earlier nosotros bring already learnt well-nigh about basic things well-nigh synchronizing timer together with how to role it on controller level on software charge testify innovation inward my previous post. Now hither nosotros volition speak over together with acquire how to role synchronizing timer on asking score inward software charge testify innovation together with how it volition works. Let's empathise amongst example.

Using Synchronizing Timer On Request Level
I bring testify innovation amongst two thread groups -> Thread Group - i together with Thread Group - 2. Each bring iv dissimilar requests. In Thread Group - 1, I bring added synchronizing timer nether "My Orders" asking equally shown inward bellow image. Thread Group - two don't bring whatever synchronizing timer.


Both Thread Groups are configured amongst same configuration equally described bellow.
  • Number of Threads = 4
  • Ramp-up Period = 1
  • Loop Count = 1
Synchronizing timer which is nether "My Orders" asking has bellow given configuration.
  • Number of Simultaneous Users to Group past times = 4
  • Timeout inward milliseconds = 0.
As you lot tin see, We bring added synchronizing timer nether "My Orders" asking of software spider web application together with therefore synchronizing timer volition forcefulness to block threads until accomplish iv thread reached on "My Orders" asking of software spider web application. When iv threads volition accomplish on "My Orders" request, all iv threads volition hold upward released immediately.

Thread Group - two is added to compare results.

Run to a higher house testify innovation together with sentiment number inward tabular array for Thread Group - 1. It volition looks similar bellow.


In number you lot tin come across that all the iv requests of "My Orders" are executed on same fourth dimension equally nosotros bring added synchronizing timer nether "My Orders" request. Other requests are executed equally per their ain time.

Also you lot volition non discovery whatever fourth dimension sync inward number of Thread Group - 2.


This way, You tin use Synchronizing Timer on asking score inward your software charge testify innovation to generate charge on specific request.

Related Posts