Package org.apache.jmeter.sampler
Class TestAction
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.sampler.TestAction
- All Implemented Interfaces:
- Serializable,- Cloneable,- ConfigMergabilityIndicator,- Searchable,- Interruptible,- Sampler,- org.apache.jmeter.testelement.TestElement
Dummy Sampler used to pause or stop a thread or the test;
 intended for use in Conditional Controllers.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intBreak Current Loopstatic final intstatic final intStart next iteration of Thread Loopstatic final intStart next iteration of Current Loopstatic final intstatic final intstatic final intstatic final intFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapplies(ConfigTestElement configElement) Does configElement apply to SamplerintintbooleanInterrupt the current operation if possible.Obtains statistics about the given Entry, and packages the information into a SampleResult.voidsetAction(int action) voidsetDuration(String duration) voidsetTarget(int target) Methods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, 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, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementaddTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
- 
Field Details- 
STOPpublic static final int STOP- See Also:
 
- 
PAUSEpublic static final int PAUSE- See Also:
 
- 
STOP_NOWpublic static final int STOP_NOW- See Also:
 
- 
RESTART_NEXT_LOOPpublic static final int RESTART_NEXT_LOOPStart next iteration of Thread Loop- See Also:
 
- 
START_NEXT_ITERATION_CURRENT_LOOPpublic static final int START_NEXT_ITERATION_CURRENT_LOOPStart next iteration of Current Loop- See Also:
 
- 
BREAK_CURRENT_LOOPpublic static final int BREAK_CURRENT_LOOPBreak Current Loop- See Also:
 
- 
THREADpublic static final int THREAD- See Also:
 
- 
TESTpublic static final int TEST- See Also:
 
 
- 
- 
Constructor Details- 
TestActionpublic TestAction()
 
- 
- 
Method Details- 
sampleObtains statistics about the given Entry, and packages the information into a SampleResult.
- 
setTargetpublic void setTarget(int target) 
- 
getTargetpublic int getTarget()
- 
setActionpublic void setAction(int action) 
- 
getActionpublic int getAction()
- 
setDuration
- 
getDurationAsString
- 
appliesDescription copied from class:AbstractSamplerDoes configElement apply to Sampler- Specified by:
- appliesin interface- ConfigMergabilityIndicator
- Overrides:
- appliesin class- AbstractSampler
- Parameters:
- configElement-- ConfigTestElement
- Returns:
- boolean
- See Also:
 
- 
interruptpublic boolean interrupt()Description copied from interface:InterruptibleInterrupt the current operation if possible.- Specified by:
- interruptin interface- Interruptible
- Returns:
- trueif there was an operation to interrupt.
 
 
-