Serializable, Cloneable, Controller, Searchable, TestElement, TestCompilerHelperpublic class IfController extends GenericController implements Serializable
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 }
current, subControllersAndSamplersCOMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor | Description |
|---|---|
IfController() |
constructor
|
IfController(String condition) |
constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getCondition() |
Condition Accessor - this is gonna be like
${count} < 10 |
boolean |
isDone() |
This is overriding the parent method.
|
boolean |
isEvaluateAll() |
|
boolean |
isUseExpression() |
|
Sampler |
next() |
Determines the next sampler to be processed.
|
void |
setCondition(String condition) |
Condition Accessor - this is gonna be like
${count} < 10 |
void |
setEvaluateAll(boolean b) |
|
void |
setUseExpression(boolean selected) |
|
void |
triggerEndOfLoop() |
Trigger end of loop condition on controller (used by Start Next Loop feature)
|
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyaddIterationListener, addTestElement, addTestElementOnce, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, initializeSubControllers, isFirst, nextIsAController, nextIsASampler, nextIsNull, readResolve, reInitialize, reInitializeSubController, removeCurrentElement, removeIterationListener, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirstfinalize, getClass, notify, notifyAll, toString, wait, wait, waitcanRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic IfController()
public IfController(String condition)
condition - The condition for this controllerpublic void setCondition(String condition)
${count} < 10condition - The condition for this controllerpublic String getCondition()
${count} < 10public boolean isDone()
isDone in interface ControllerisDone in class GenericControllerController.isDone()public Sampler next()
GenericControllerDetermines the next sampler to be processed.
If GenericController.isDone() is true, returns null.
Gets the list element using current pointer.
If this is null, calls GenericController.nextIsNull().
If the list element is a Sampler, calls GenericController.nextIsASampler(Sampler),
otherwise calls GenericController.nextIsAController(Controller)
If any of the called methods throws NextIsNullException, returns null,
otherwise the value obtained above is returned.
next in interface Controllernext in class GenericControllernullController.next()public void triggerEndOfLoop()
triggerEndOfLoop in interface ControllertriggerEndOfLoop in class GenericControllerpublic boolean isEvaluateAll()
public void setEvaluateAll(boolean b)
public boolean isUseExpression()
public void setUseExpression(boolean selected)
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.