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 ready status to evaluate it as well as based on status evaluation outcome it volition produce upward one's heed to function or non to function if controller's shaver elements. If status evaluation outcome is positive as well as hence shaver elements of if controller volition function else shaver elements of if controller volition non run. Let's come across sample software charge testing invention to empathize usage of if controller. Also you lot tin persuasion Jmeter Logic controllers examples.

I bring created sample software charge testing invention to empathize usage of If Controller inwards apache jmeter every bit below.

Used release of threads = 1 as well as loop count = 1.
JMeter If Controller

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 every bit shown inwards below image. When nosotros function test, Result of Regular Expression Extractor volition live on "Google". That agency it volition shop "Google" inwards Reference Name title. 

JMeter If Controller example

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

You tin come across inwards below image, We bring used condition "${title}"=="Yahoo" inwards outset if controller. That agency shaver chemical ingredient of 1st if controller volition live on executed entirely if value of championship reference refer is Yahoo. In this illustration it volition live on simulated every bit value of championship reference refer volition live on Google.

JMeter If Controller amongst example

s if controller has "${title}"=="Google" condition. So shaver asking of s if controller volition live on executed.
 illustration of JMeter If Controller

Now if you lot volition function to a higher house software application charge testing plan, It volition function shaver chemical ingredient of s if controller but shaver chemical ingredient of 1st if controller volition live on non executed every bit shown inwards below image.

example of If Controller inwards jmeter

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

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