Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.control » [javadoc | source]
public class: SwitchController [javadoc | source]

All Implemented Interfaces:
    Serializable, Controller, TestElement

Implements a controller which selects at most one of its children based on the condition value, which may be a number or a string.

For numeric input, the controller processes the appropriate child, where the numbering starts from 0. If the number is out of range, then the first (0th) child is selected. If the condition is the empty string, then it is assumed to be 0.

For non-empty non-numeric input, the child is selected by name. This may be the name of the controller or a sampler. If the string does not match any of the names, then the controller with the name "default" (any case) is processed. If there is no default entry, then unlike the numeric case, no child is selected.

Field Summary
static final  String SWITCH_VALUE     
Fields inherited from org.apache.jmeter.control.GenericController:
subControllersAndSamplers,  current
 public SwitchController() 
Method from org.apache.jmeter.control.SwitchController Summary:
getSelection,   incrementCurrent,   next,   setSelection
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.SwitchController Detail:
 public String getSelection() 
 protected  void incrementCurrent() 
 public Sampler next() 
 public  void setSelection(String inputValue)