org.apache.jmeter.control
Class IfController
- Cloneable, Serializable, Controller, TestElement
public class IfController
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 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 }
addIterationListener , addTestElement , currentReturnedNull , fireIterEvents , fireIterationStart , getCurrentElement , getIterCount , getSubControllers , incrementCurrent , incrementIterCount , initialize , isDone , isFirst , next , nextIsAController , nextIsASampler , nextIsNull , reInitialize , removeCurrentElement , resetCurrent , resetIterCount , setCurrentElement , setDone , setFirst |
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
IfController
public IfController()
constructor
IfController
public IfController(String condition)
constructor
getCondition
public String getCondition()
Condition Accessor - this is gonna be like ${count}<10
isDone
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
- isDone in interface Controller
- isDone in interface GenericController
isEvaluateAll
public boolean isEvaluateAll()
isUseExpression
public boolean isUseExpression()
setCondition
public void setCondition(String condition)
Condition Accessor - this is gonna be like ${count}<10
setEvaluateAll
public void setEvaluateAll(boolean b)
setUseExpression
public void setUseExpression(boolean selected)
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.