Wednesday, February 24, 2016

Jmeter If Controller Example

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

Related Posts