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.
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.
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.
s if controller has "${title}"=="Google" condition. So shaver asking of s if controller volition live on executed.
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.
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.