Class IfController

All Implemented Interfaces:
Serializable, Cloneable, Controller, Searchable, TestElement, TestCompilerHelper

public class IfController extends GenericController implements Serializable
This is a Conditional Controller; it will execute the set of statements (samplers/controllers, etc) while the 'condition' is true.

In a programming world - this is equivalent of :

if (condition) {
         statements ....
         }
In JMeter you may have :
 
Thread-Group (set to loop a number of times or indefinitely,
   ... Samplers ... (e.g. Counter )
   ... Other Controllers ....
   ... IfController ( condition set to something like - ${counter} < 10)
      ... statements to perform if condition is true
      ...
   ... Other Controllers /Samplers }
See Also:
  • Constructor Details

    • IfController

      public IfController()
      constructor
    • IfController

      public IfController(String condition)
      constructor
      Parameters:
      condition - The condition for this controller
  • Method Details