JMeter Module Controller Example

Module Controller inward apache jmeter is i of the of import in addition to oft used logic controller inward whatsoever software spider web applications charge examination plan. Earlier nosotros learnt usage of unlike jmeter logic controllers alongside example which are listed on Jmeter Tutorial but module controller is unlike from all of them. Module controller allows you lot to redirect examination execution to a given fragment of the examination or you lot tin tell selected module. Let's direct maintain unproblematic example to sympathise usage of module controller improve for your software spider web application's charge testing.

Supposing i direct maintain charge examination excogitation for software spider web application to perform charge examination 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 run all 3 scenarios at the same fourth dimension inward jmeter charge examination in addition to thus i tin add together all requests of specific scenario nether unproblematic controller equally shown inward bellow given image.


Now if you lot volition run inward a higher house examination plan, It volition execute requests of all 3 unproblematic controllers i past times i equally shown inward in a higher house image.

Now supposing i wants to perform charge testing on entirely login module scenario(Simple Controller) in addition to thus i demand to operate module controller. Module controller volition let me to run entirely selected unproblematic controller's requests. Let's alter inward a higher house software application's charge examination excogitation to implement it practically.
  1. Add unproblematic controller in addition to position inward a higher house 3 unproblematic controllers nether it equally a fry controller.
  2. Disable raise unproblematic controller.
  3. Add module controller parallel to raise unproblematic controller equally shown inward bellow image.
Inside module controller, You tin run into all 3 unproblematic controllers equally shown inward bellow ikon in addition to you lot tin direct whatsoever i from them.



Now equally per requirement, I wants to run charge examination on login scenarios only. So direct Simple Controller ii from Module controller equally shown inward in a higher house ikon in addition to run charge examination excogitation of software spider web application. It volition execute entirely requests of unproblematic controller ii equally shown inward bellow image.

Test Plan To Run Load Test On Single Module

Now supposing you lot wants to run charge examination on whatsoever ii modules(Create concern human relationship in addition to invitee user checkout) from 3 in addition to thus you lot charge examination excogitation volition looks similar bellow.

Test Plan To Run Load Test On Selected Modules


It volition execute requests of Create concern human relationship in addition to invitee user checkout entirely equally shown inward bellow image.



This agency you lot tin operate module controller inward your software spider web application's jmeter charge examination excogitation to execute examination on selected modules entirely from multiple modules.

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