Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.control » [javadoc | source]
org.apache.jmeter.control
public class: IfController [javadoc | source]
java.lang.Object
   org.apache.jmeter.testelement.AbstractTestElement
      org.apache.jmeter.control.GenericController
         org.apache.jmeter.control.IfController

All Implemented Interfaces:
    Serializable, Controller, TestElement

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 equivalant 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 }
Fields inherited from org.apache.jmeter.control.GenericController:
subControllersAndSamplers,  current
Constructor:
 public IfController() 
 public IfController(String condition) 
    constructor
Method from org.apache.jmeter.control.IfController Summary:
getCondition,   isDone,   isEvaluateAll,   isUseExpression,   next,   setCondition,   setEvaluateAll,   setUseExpression
Methods from org.apache.jmeter.control.GenericController:
addIterationListener,   addTestElement,   currentReturnedNull,   fireIterEvents,   fireIterationStart,   getCurrentElement,   getIterCount,   getSubControllers,   incrementCurrent,   incrementIterCount,   initialize,   isDone,   isFirst,   next,   nextIsAController,   nextIsASampler,   nextIsNull,   reInitialize,   removeCurrentElement,   resetCurrent,   resetIterCount,   setCurrentElement,   setDone,   setFirst
Methods from org.apache.jmeter.testelement.AbstractTestElement:
addProperty,   addTestElement,   canRemove,   clear,   clearTemporary,   clone,   emptyTemporary,   equals,   getName,   getProperty,   getPropertyAsBoolean,   getPropertyAsBoolean,   getPropertyAsDouble,   getPropertyAsFloat,   getPropertyAsInt,   getPropertyAsLong,   getPropertyAsString,   getThreadContext,   getThreadName,   isEnabled,   isRunningVersion,   isTemporary,   logProperties,   mergeIn,   nextIsNull,   propertyIterator,   recoverRunningVersion,   removeProperty,   setName,   setProperty,   setProperty,   setRunningVersion,   setTemporary,   setThreadContext,   setThreadName,   threadFinished,   threadStarted,   traverse,   traverseCollection,   traverseMap,   traverseProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.control.IfController Detail:
 public String getCondition() 
    Condition Accessor - this is gonna be like ${count}<10
 public boolean isDone() 
    This is overriding the parent method. IsDone indicates whether the termination condition is reached. I.e. if the condition evaluates to False - then isDone() returns TRUE
 public boolean isEvaluateAll() 
 public boolean isUseExpression() 
 public Sampler next() 
 public  void setCondition(String condition) 
    Condition Accessor - this is gonna be like ${count}<10
 public  void setEvaluateAll(boolean b) 
 public  void setUseExpression(boolean selected)