Showing posts with label using jmeter. Show all posts
Showing posts with label using jmeter. Show all posts

Wednesday, February 24, 2016

Jmeter If Controller Example

Jmeter If Controller Example

If controller is really useful inwards whatever software application's charge testing using jmeter. If controller inwards jmeter allows you lot to fix status to evaluate it as well as based on status evaluation number it volition stimulate upward one's heed to move or non to move if controller's nipper elements. If status evaluation number is positive as well as thence nipper elements of if controller volition move else nipper elements of if controller volition non run. Let's meet sample software charge testing invention to sympathise usage of if controller. Also you lot tin sack sentiment Jmeter Logic controllers examples.

I bring created sample software charge testing invention to sympathise usage of If Controller inwards apache jmeter equally below.

Used number of threads = 1 as well as loop count = 1.
 If controller is really useful inwards whatever software application JMeter If Controller Example

Under first Google Home Page request, I bring added Regular Expression Extractor to extract software spider web application's page championship of Google Home Page equally shown inwards below image. When nosotros move test, Result of Regular Expression Extractor volition move "Google". That agency it volition shop "Google" inwards Reference Name title. 

 If controller is really useful inwards whatever software application JMeter If Controller Example

Latter on nosotros volition larn to a greater extent than close Regular Expression Extractor.

You tin sack meet inwards below image, We bring used condition "${title}"=="Yahoo" inwards commencement if controller. That agency nipper chemical gene of 1st if controller volition move executed entirely if value of championship reference parent is Yahoo. In this instance it volition move imitation equally value of championship reference parent volition move Google.

 If controller is really useful inwards whatever software application JMeter If Controller Example

2d if controller has "${title}"=="Google" condition. So nipper asking of 2d if controller volition move executed.
 If controller is really useful inwards whatever software application JMeter If Controller Example

Now if you lot volition move inwards a higher house software application charge testing plan, It volition move nipper chemical gene of 2d if controller but nipper chemical gene of 1st if controller volition move non executed equally shown inwards below image.

 If controller is really useful inwards whatever software application JMeter If Controller Example

So entirely two requests are executed out of three requests. This way you lot tin sack purpose if controller inwards whatever software spider web application's charge testing plan.
Jmeter Module Controller Example

Jmeter Module Controller Example

Module Controller inwards apache jmeter is 1 of the of import together with often used logic controller inwards whatever software spider web applications charge examine plan. Earlier nosotros learnt usage of unlike jmeter logic controllers amongst instance which are listed on Jmeter Tutorial but module controller is unlike from all of them. Module controller allows yous to redirect examine execution to a given fragment of the examine or yous tin tell selected module. Let's stimulate got elementary instance to empathise usage of module controller ameliorate for your software spider web application's charge testing.

Supposing i stimulate got charge examine invention for software spider web application to perform charge examine for 3 unlike scenarios equally described bellow.

Scenario 1 : Create concern human relationship -> View Basket -> Add Address -> Make payment.
Scenario 2 : Login -> View Basket -> Add Address -> Make payment.
Scenario 3 : Guest user -> View Basket -> Add Address -> Make payment.

Now if i wants to piece of job all 3 scenarios at the same fourth dimension inwards jmeter charge examine together with hence i tin add together all requests of specific scenario nether elementary controller equally shown inwards bellow given image.


Now if yous volition piece of job higher upwards examine plan, It volition execute requests of all 3 elementary controllers 1 past times 1 equally shown inwards higher upwards image.

Now supposing i wants to perform charge testing on exclusively login module scenario(Simple Controller) together with hence i demand to purpose module controller. Module controller volition let me to piece of job exclusively selected elementary controller's requests. Let's alter higher upwards software application's charge examine invention to implement it practically.
  1. Add elementary controller together with pose higher upwards 3 elementary controllers nether it equally a shaver controller.
  2. Disable bring upwards elementary controller.
  3. Add module controller parallel to bring upwards elementary controller equally shown inwards bellow image.
Inside module controller, You tin come across all 3 elementary controllers equally shown inwards bellow picture together with yous tin direct whatever 1 from them.



Now equally per requirement, I wants to piece of job charge examine on login scenarios only. So direct Simple Controller two from Module controller equally shown inwards higher upwards picture together with piece of job charge examine invention of software spider web application. It volition execute exclusively requests of elementary controller two equally shown inwards bellow image.

Test Plan To Run Load Test On Single Module

Now supposing yous wants to piece of job charge examine on whatever two modules(Create concern human relationship together with invitee user checkout) from 3 together with hence yous charge examine invention volition looks similar bellow.

Test Plan To Run Load Test On Selected Modules


It volition execute requests of Create concern human relationship together with invitee user checkout exclusively equally shown inwards bellow image.



This means yous tin purpose module controller inwards your software spider web application's jmeter charge examine invention to execute examine on selected modules exclusively from multiple modules.
Jmeter Include Controller Example

Jmeter Include Controller Example

Include controller of JMeter is rattling useful if yous wants to intermission your seek innovation inward modest fragments. There are many unlike jmeter controllers available. Each of them cause got unlike exercise equally per it's name. Include controller is useful to include external seek fragment inward your test. Means yous tin include external seek fragment inward your software charge seek innovation using include controller.

Let's cause got elementary example. You cause got five unlike charge seek scenario for your software spider web application in addition to each needs login to software spider web application to perform side yesteryear side steps. That way yous remove to tape login steps inward all five scenario's charge seek plan. So yous are duplicating the mutual procedure steps inward each seek innovation in addition to it volition increase seek innovation maintenance toll too. Include controller tin tending yous inward this situation.

Include controller provides yous facility to exercise external seek fragment inward your seek plan. So yous cause got to salve login steps equally a seek fragment in addition to and then yous tin exercise that seek fragment inward your all software charge seek plans using Include Controller. Let's sympathize amongst practical example.

I cause got iv unlike requests equally bellow.
  1. Login
  2. My Account
  3. My Orders
  4. My Address
This is ane scenario of my software spider web application's charge seek innovation in addition to at that topographic point are to a greater extent than iv such scenarios where Login asking is required. So I volition salve Login asking equally seek fragment equally shown inward bellow given steps in addition to and then i volition exercise that seek fragment inward my unlike tests to login.
  • Put Login asking nether Simple Controller.
  • Right click on Simple Controller
 Include controller of JMeter is rattling useful if yous wants to intermission your seek innovation inward modest Jmeter Include Controller Example
  • Select "Save equally Test Fragment".
 Include controller of JMeter is rattling useful if yous wants to intermission your seek innovation inward modest Jmeter Include Controller Example
  • Give your desired advert to seek fragment in addition to salve it at your desired location. I cause got saved it amongst "Login module.jmx" at E:\JMeter\ path.
Now exercise novel software charge seek innovation and 
  • Add Thread Group nether Test Plan(Right click on Test Plan -> Add -> Threads -> Thread Group).
  • Add Include Controller under Thread Group(Right click on Thread Group -> Add -> Logic Controller -> Include Controller).
 Include controller of JMeter is rattling useful if yous wants to intermission your seek innovation inward modest Jmeter Include Controller Example
  • In Include controller, Select "Login module.jmx" from E:\JMeter\ equally Filename using browse push equally shown inward bellow image.
 Include controller of JMeter is rattling useful if yous wants to intermission your seek innovation inward modest Jmeter Include Controller Example

  • Add elementary controller under Thread Group in addition to add/record My Account, My Orders and My Address requests nether it equally shown inward bellow image. 
  • Also add View Results Tree listener under Thread Group.


You tin download "Login module.jmx" in addition to seek innovation for Include Controller from THIS PAGE.

Now if yous run higher upwardly seek innovation using Number of Threads = 1 in addition to Loop count = 1 inward Thread Group,
  • First it volition execute Test Fragment(Which contains login request) of Include Controller and 
  • Then it volition execute requests(My Account, My Orders and My Address requests) of elementary controller equally shown inward bellow given image.

Same way, You tin exercise "Login module.jmx" inward all other jmeter software charge seek plans where login is required.

This way, Include controller allows yous to intermission your seek innovation to reuse it inward other seek plans in addition to cut duplication of mutual steps. So it volition also cut toll of seek innovation maintenance.

Tuesday, February 23, 2016

Jmeter Synchronizing Timer

Jmeter Synchronizing Timer

Synchronizing Timer is i of the jmeter's unlike timers. In your jmeter software essay out plan, You tin use Synchronizing Timer If you lot wants to liberate X set out of threads at given point. It volition block the threads until given X set out of threads convey been reached at specific point. It volition liberate all threads forthwith when given set out of threads are reached on specific indicate of your jmeter software charge essay out plan, First of all, Let's sympathize unlike parameters of synchronizing timer in addition to and thus acquire how to purpose it inwards jmeter software charge essay out plan.

Add Synchronizing Timer In Your Test Plan
You tin use synchronizing timer on controller marking or asking marking equally per your requirement of software application charge testing. Let's say, If you lot wants to add together synchronizing timer under uncomplicated controller of your software charge testing conception then.
  • Right click on controller where you lot wants to add synchronizing timer.
  • Select Add -> Timer -> Synchronizing Timer equally shown inwards bellow image.
 Synchronizing Timer is i of the jmeter JMeter Synchronizing Timer

  • It volition add Synchronizing Timer nether Simple controller.
Synchronizing Timer Parameters
Synchronizing Timer convey two parameters equally shown inwards bellow image.
  • Number of Simulated Users to Group by : You tin educate how many threads you lot wants to liberate at once. If educate five in addition to thus it volition block threads until five threads reached on given point. Once five threads reached, all five threads volition last released once. 0 agency Number of threads inwards Thread Group.
  • Timeout inwards milliseconds : Max fourth dimension to attain given set out of threads. If educate 5000 in addition to thus it volition await max 5000 milliseconds to attain given set out of threads. After 5000 milliseconds, It volition terminate waiting in addition to liberate all threads.
 Synchronizing Timer is i of the jmeter JMeter Synchronizing Timer

We learnt something almost synchronization timer inwards this article. My upcoming articles volition exhibit you lot how to use
Jmeter - Using Synchronizing Timer On Controller Level

Jmeter - Using Synchronizing Timer On Controller Level

In before article, We acquire to a greater extent than or less basic things virtually Synchronizing Timer. As y'all know, Synchronizing Timer is useful to liberate given publish of threads at i time to generate charge on selected asking or all requests of your software charge examination plan. In this article, We volition acquire how to purpose synchronizing timer on controller score of your software charge examination innovation in addition to how it works.

Using Synchronizing Timer On Controller Level
I accept prepared examination innovation alongside ii Thread groups. Thread Group - 1 has Synchronizing Timer on controller score in addition to Thread Group - ii don't accept whatever Synchronizing Timer equally shown inwards 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 inwards milliseconds = 0.
In Thread Group - 1 of software charge examination plan, We accept laid Synchronizing Timer nether uncomplicated controller in addition to then Synchronizing Timer volition strength every requests of uncomplicated controller to facial expression for four threads. Once four thread reached on specific request, It volition liberate all threads at once. That agency four 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 uncomplicated controller of Thread Group - 1.

Thread Group - ii is used to compare the results of examination innovation execution alongside Synchronizing Timer in addition to without Synchronizing Timer equally Thread Group - ii produce non accept whatever Synchronizing Timer.

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

When run to a higher house software charge examination plan, "View Results inwards Table" listener of Thread Group - 1 volition demo outcome similar bellow. Observe "Start Time" of all four requests inwards bellow given image.


You tin give notice come across that offset fourth dimension of each grouping of asking is nearest same inwards milliseconds. You volition detect hardly 0.01 millisecond divergence betwixt four thread's offset fourth dimension of specific request. That means, All four thread has executed all four requests concurrently.

Now if y'all volition come across Start fourth dimension of Thread Group - 2, It is dissimilar for each grouping of asking equally shown inwards bellow image.


Start fourth dimension is dissimilar for grouping of requests in addition to too execution sequence is different.

This way, You tin give notice use Synchronizing Timer on controller score inwards your software charge examination innovation to generate charge on all requests of examination using concurrent users.

Jmeter - Using Synchronizing Timer On Asking Level

Jmeter - Using Synchronizing Timer On Asking Level

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.
Jmeter Uniform Random Timer Usage

Jmeter Uniform Random Timer Usage

As cite suggest, Uniform random timer is 1 of the Jmeter timer which is used to generate fixed+random total of fourth dimension delay betwixt 2 requests inward your software charge attempt out plan. Uniform random timer is used when you lot wants to position around fixed but likewise around random fourth dimension delay betwixt 2 requests inward your software charge attempt out plan. Example : I wants to position minimum delay fourth dimension three seconds together with maximum delay fourth dimension to ten seconds together with then i tin dismiss purpose uniform random timer inward my attempt out plan.

Also you lot tin dismiss purpose uniform random timer equally alone constant delay timer or equally a random timer equally it is combination of constant delay + random delay timer.

Add Uniform Random Timer In Your Test Plan
You tin dismiss add uniform random timer on asking score to apply timer delay on specific asking together with parallel to requests to apply timer delay on all requests for your software charge attempt out plan. We volition meet both the ways amongst examples but showtime of all you lot must know how to add together uniform random timer inward your attempt out plan. Let's add together it nether controller.
  • Right click on controller.
  • Select Add -> Timer -> Uniform Random Timer as shown inward bellow image.
  • It volition add together uniform random timer nether Simple Controller inward your software charge attempt out plan.
Uniform Random Timer Parameters
Uniform Random Timer accept 2 parameters equally shown inward bellow image.
  • Random Delay Maximum : This is outer boundary boundary of random fourth dimension delay. It volition produce upward one's hear maximum random time out time.
  • Constant Delay Offset : This is the fixed delay fourth dimension which volition hold upward added inward random delay.


In inward a higher house icon you lot tin dismiss see, I accept set Random Delay Maximum = 3000 milliseconds and Constant Delay Offset = 7000 milliseconds. That agency it volition position random delay betwixt vii seconds to ten seconds betwixt 2 requests.

Bellow given links volition present you lot usage of uniform random timer inward dissimilar ways.
Jmeter - Using Uniform Random Timer Parallel To Request

Jmeter - Using Uniform Random Timer Parallel To Request

Earlier nosotros learnt whats is the primary concept of uniform random timer, utilisation of it's dissimilar parameters together with how to add together it inward your software charge seek plan. Now hither nosotros volition run across how to add together uniform random timer parallel to requests of your software charge seek excogitation together with how it volition works. Let's run across amongst example.

Scenario : I convey a software charge seek excogitation amongst iv dissimilar requests. I wants to pose random delay of three to vii seconds betwixt all iv requests of my seek plan. So i volition add together uniform random timer parallel to requests equally shown inward bellow image.


As you lot tin dismiss run across inward higher upwards image, I convey set
  • Constant Delay Offset = 3000 ms
  • Random Delay Maximum = 4000 ms
So it volition railroad train random delay of three to vii seconds betwixt all iv requests of my software charge seek plan. Let's run it together with sentiment effect inward table. My effect is looks similar bellow.


You tin dismiss run across that delay betwixt offset fourth dimension of all iv requests is betwixt three to vii seconds. Example : Start fourth dimension of "Login" asking is 17:50:46.865 together with offset fourth dimension of "My Account" asking is 17:50:51.962. This divergence is 5.097 seconds. Same matter applied for all requests. This agency you lot tin dismiss purpose uniform random timer parallel to requests of your software charge seek excogitation to utilize delay to all the requests.

Monday, February 22, 2016

Jmeter - Using Uniform Random Timer Nether Request

Jmeter - Using Uniform Random Timer Nether Request

Now you lot already knows what is uniform random timer in addition to how it industrial plant inwards software charge examination conception equally nosotros convey already discussed all those things inwards previous posts. So i volition non exceptional it to a greater extent than now. Let's movement to practical illustration directly. Here nosotros wants to come across how uniform random timer behaves if nosotros lay it nether specific request.

Scenario : In my software examination plan, There are iv requests. I wants to lay random delay of iv to vi seconds on specific asking of my software charge examination conception let's state on "My Orders" asking equally shown inwards bellow image. So i set
  • Constant Delay Offset = 4000 ms
  • Random Delay Maximum = 2000 ms

I wants to execute all requests iv times in addition to then i convey laid Loop Count = iv inwards Thread Group equally shown inwards bellow image.


Now run software charge examination conception in addition to verify number inwards table. It volition looks similar bellow.


You tin hand the sack come across that every time, Start fourth dimension departure betwixt "My Account" asking in addition to "My Orders" is random betwixt iv to vi seconds. Example : Start fourth dimension of offset "My Account" asking is "07:02:56.894" in addition to get down fourth dimension of 1st "My Orders" asking is "07:03:02.326". So hither departure is 5.432 seconds.

This means you lot tin hand the sack lay uniform random timer nether whatever asking of your software charge examination conception to furnish it random delay.
Using Uniform Random Timer Every Minute A Constant/Random Timer

Using Uniform Random Timer Every Minute A Constant/Random Timer

We already learnt almost what is almost uniform random timer as well as how to hold out it inward your software charge try innovation inward my before posts. As yous know, uniform random timer has parameters called constant delay offset as well as Random delay maximum. So if yous volition laid exclusively constant delay offset as well as run your software charge try thus it volition acquit every bit constant timer. Let's run across amongst example.

Note : There is already stand upward solitary CONSTANT TIMER inward apache Jmeter. This instance is exclusively for your cognition enhancement. Interviewer tin inquire such questions.

Scenario : I accept software charge try amongst iv requests as well as i wants to utilise constant delay of iii seconds exclusively on all iv requests using uniform random timer.

In this case, I volition laid constant delay offset of 3000 milliseconds inward my uniform random timer every bit shown inward bellow image.


Now if yous volition run software charge try using inward a higher house configuration, It volition piece of job every bit a constant timer as well as utilise iii seconds fixed delay. Result volition looks similar bellow.


You tin run across that all the requests are delayed yesteryear nearest iii seconds. Calculation of adjacent asking to commencement execution volition plant every bit -> Start fourth dimension of sample two = commencement fourth dimension of sample ane + Sample fourth dimension of sample ane + Fixed delay(3000 ms). So Start fourth dimension of sample two = 06:56:10.598 + 1.147 + 3.000 = 14.745.

This agency yous tin hold out uniform random timer every bit constant timer inward your software charge try plan.
Jmeter - Constant Throughput Timer Example

Jmeter - Constant Throughput Timer Example

Constant Throughput Timer is ane of the generally used timer inwards jmeter software charge examination plan. Using constant throughput timer, You tin give the axe arrive at upward one's heed how many samples should hold upward executed per minute. Constant throughput timer volition add together random pauses betwixt requests during examination execution to check required throughput figure(samples per minute). Let's larn usage of constant throughput timer inwards apache jmeter software charge examination plan.

Note : If you lot are using constant throughput timer inwards your software charge examination innovation together with server is non capable to grip the charge or whatever other fourth dimension consuming elements are available inwards your examination innovation together with then your targeted throughput(Which is laid inwards constant throughput timer) volition hold upward non achieved.

Add Constant Throughput Timer In Software Load Test Plan
Generally constant throughput timer is beingness added nether controller, parallel to requests. For adding constant throughput timer nether controller,
  • Right click on your controller -> Add -> Select Timer -> Constant Throughput Timer. See below given image.

It volition add together constant throughput timer nether controller.

Example : Using Constant Throughput Timer In JMeter Software Load Test Plan
I convey prepared sample jmeter software charge examination innovation to demo you lot how genuinely constant throughput timer works.

Scenario 1 : I convey 1 asking inwards my software charge examination innovation together with i wants to execute cook xx requests per minute. My software charge examination innovation configuration is every bit below.

I convey laid Number of threads = 1, Ramp-Up Period = 1 together with Loop Count = Forever In thread grouping properties.


Added constant throughput timer with Target Throughput = xx and Calculate Throughput based on = all active threads every bit shown inwards below image. That agency i wants to execute xx requests per minute.


Now if you lot volition run inwards a higher house constant throughput sample charge examination plan, number volition looks similar below.


You tin give the axe run into that Start fourth dimension departure betwixt 1st sample together with 21st sample is 1 minute. That agency my targeted throughput(20 samples per minute) is achieved.

Scenario ii : I wants to run ii threads together with execute xl requests per infinitesimal using constant throughput timer.

So my thread grouping configuration is every bit below. I convey laid Number of threads = 2.


Constant throughput timer configuration is every bit below. Set Target Throughput = 40.


Test execution number volition looks similar below.


You tin give the axe run into that Start fourth dimension departure betwixt 1st asking together with 41st asking is 1 minute. That agency xl samples has been executed inwards 1 minute.

This way, You tin give the axe purpose constant throughput timer inwards your charge examination innovation to plow over targeted throughput.
Jmeter - Lay Constant Timer Nether Request

Jmeter - Lay Constant Timer Nether Request

We already learnt usage of constant timer parallel to requests to suspension threads on all requests for given sum of fourth dimension inwards my before post. Also you lot tin set constant timer nether specific asking of your software charge essay out innovation to suspension thread on that specific asking for given sum of time. Let's larn how to suspension thread on specific asking of your software charge essay out innovation for given sum of fourth dimension using constant timer.

Example : Pause Thread On Specific Request Using Constant Timer
I accept prepared really uncomplicated instance to exhibit you lot how to suspension thread on specific asking of your software charge essay out innovation using constant timer.

I accept full iv requests inwards my jmeter software charge essay out innovation equally shown inwards below image.


I wants to suspension thread for two seconds on My Account request. All other requests should move executed without whatever pause. So i accept added constant timer nether My Account asking solely alongside Thread delay = 2000 milliseconds equally shown inwards below image.


Now if you lot operate inwards a higher house essay out plan, consequence volition looks similar below.


You tin come across that commencement fourth dimension of My Account asking = two + start fourth dimension of Login request(06:28:49.217) + Sample Time(ms)(0.369) = 06:28:49.217. Also you lot tin come across that thread is non paused on whatever other request.

This agency you lot tin purpose constant timer to  pause thread on specific asking of your software charge essay out innovation for given sum of time.

Sunday, February 21, 2016

Jmeter - Constant Timer Job Parallel To Request

Jmeter - Constant Timer Job Parallel To Request

Constant Timer is real useful chemical gene of JMeter software charge essay innovation equally it allows y'all to interruption each thread for same total of fourth dimension when executes the requests. You tin add together constant timer nether controller as well as parallel to software charge essay plan's requests if y'all wants to position interruption on each request. Also y'all tin add constant timer under asking if y'all wants to position interruption on that specific request. Let's run across how to add together as well as purpose constant timer parallel to requests inward software charge essay innovation alongside example.

Add Constant Timer Under Controller In Your Software Load Test Plan
To add together constant timer nether controller,
  • Right click on your controller -> Add -> Select Timer -> Constant Timer. See below given image.

It volition add together constant timer nether controller.

Example : Using Constant Timer Parallel To Request
As described earlier, It volition apply interruption on all requests if y'all position constant timer parallel to request. I accept prepared real unproblematic jmeter software charge essay trial to demo y'all how to interruption threads for specific total of fourth dimension on each asking past times adding constant timer.

In below given image, You tin run across that my software charge essay innovation has iv requests as well as added constant timer parallel to those requests. Thread grouping configuration is equally below.


Now i wants to interruption thread for ii seconds on each asking of my software charge essay plan. So what i accept doe is added constant timer parallel to requests as well as laid Thread delay = 2000 milliseconds equally shown inward below image.


So similar a shot it volition interruption thread thread for ii seconds on each request. 

Now if y'all live on inward a higher house software charge essay innovation as well as thus trial volition looks similar bellow.


In trial y'all tin run across that starting fourth dimension time deviation betwixt each asking is nearest ii seconds + Sample time(ms). i.e. Start Time for My Account asking = ii + Start Time of Login request(09:23:53.405) + Sample time(ms)(0.941) = 09:23:56.346.

This agency y'all tin purpose constant fourth dimension inward your software charge essay innovation to position constant interruption betwixt requests.
Jmeter Transaction Controller Example

Jmeter Transaction Controller Example

Transaction Controller is i of the logic controllers of apache jmeter which is useful to stair out over all fourth dimension taken to perform consummate transaction of whatever software spider web application's charge testing scenario. Example : Total fourth dimension taken to house online gild on whatever eCommerce software spider web application. This includes all the requests which are required to house gild from software spider web application. Transaction controller volition add together additional sample afterward nested samples to demonstrate full fourth dimension taken yesteryear it's nested samples.

Let's sympathise it practically. I am performing charge testing on my eCommerce software spider web application's house online gild scenario in addition to in that place are full v requests every bit bellow.
  1. Add To Basket
  2. Login
  3. View Basket
  4. Add Address
  5. Checkout
I desire full fourth dimension taken yesteryear all these v requests to consummate the transaction. So i volition add together transaction controller inward my jmeter exam conception in addition to thence position all v requests nether it every bit shown inward bellow image.

 Transaction Controller is i of the logic controllers of apache jmeter which is useful t Jmeter Transaction Controller Example

Now add aggregate study inward your jmeter exam conception in addition to piece of job the exam in addition to sentiment trial inward aggregate study when software charge exam execution completed. It volition looks similar bellow.

 Transaction Controller is i of the logic controllers of apache jmeter which is useful t Jmeter Transaction Controller Example

You tin see, aggregate study has additional asking for transaction controller which shows full of all other requests.

Generate raise sample
Transaction controller has choice "Generate raise sample" every bit shown inward bellow image.


If yous volition select this checkbox option, transaction controller asking volition endure generated every bit a raise of the other samples every bit shown inward bellow image. 

 Transaction Controller is i of the logic controllers of apache jmeter which is useful t Jmeter Transaction Controller Example

Otherwise it volition endure generated every bit an independent sample.

Include duration of timer in addition to pre-post processors inward generated sample
If this checkbox is checked, It will include timer, pre- in addition to post-processing fourth dimension delays inward the generated sample of transaction controller if yous induce got used whatever of them inward your exam plan.

This way, You tin purpose transaction controller inward your software spider web application's exam conception to transcend away fourth dimension of full transaction.