Package org.apache.jmeter.control
Class ForeachController
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.control.Controller
,org.apache.jmeter.control.IteratingController
,org.apache.jmeter.engine.event.LoopIterationListener
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.testelement.TestElement
,org.apache.jmeter.threads.TestCompilerHelper
public class ForeachController extends GenericController implements Serializable, IteratingController
ForeachController that iterates over a list of variables named XXXX_NN stored in JMeterVariables where NN is a number starting from 1 to number of occurrences. This list of variable is usually set by PostProcessor (Regexp PostProcessor or org.apache.jmeter.extractor.HtmlExtractor) Iteration can take the full list or only a subset (configured through indexes)
-
-
Field Summary
Fields Modifier and Type Field Description public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description ForeachController()
-
Method Summary
Modifier and Type Method Description void
setStartIndex(String startIndex)
String
getStartIndexAsString()
void
setEndIndex(String endIndex)
String
getEndIndexAsString()
void
setInputVal(String inputValue)
String
getInputValString()
void
setReturnVal(String inputValue)
String
getReturnValString()
void
setUseSeparator(boolean b)
boolean
getUseSeparator()
boolean
isDone()
Sampler
next()
void
triggerEndOfLoop()
void
initialize()
Reset loopCount to Start index void
startNextLoop()
void
breakLoop()
void
iterationStart(LoopIterationEvent iterEvent)
-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, addTestElementOnce, getProps, getSchema, removeIterationListener, setFirst
-
Methods inherited from class org.apache.jmeter.control.IteratingController
updateIterationIndex
-
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setStartIndex
void setStartIndex(String startIndex)
- Parameters:
startIndex
- Start index of loop
-
getStartIndexAsString
String getStartIndexAsString()
-
setEndIndex
void setEndIndex(String endIndex)
- Parameters:
endIndex
- End index of loop
-
getEndIndexAsString
String getEndIndexAsString()
-
setInputVal
void setInputVal(String inputValue)
-
getInputValString
String getInputValString()
-
setReturnVal
void setReturnVal(String inputValue)
-
getReturnValString
String getReturnValString()
-
setUseSeparator
void setUseSeparator(boolean b)
-
getUseSeparator
boolean getUseSeparator()
-
isDone
boolean isDone()
-
next
Sampler next()
-
triggerEndOfLoop
void triggerEndOfLoop()
-
initialize
void initialize()
Reset loopCount to Start index
-
startNextLoop
void startNextLoop()
-
breakLoop
void breakLoop()
-
iterationStart
void iterationStart(LoopIterationEvent iterEvent)
-
-
-
-