Wednesday, February 24, 2016

Jmeter Module Controller Example

| Wednesday, February 24, 2016
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.

Related Posts