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 Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion -
Field Summary
FieldsModifier 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.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractTestElement
addPropertiesValues, 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.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, 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
-
STOP
public static final int STOP- See Also:
-
PAUSE
public static final int PAUSE- See Also:
-
STOP_NOW
public static final int STOP_NOW- See Also:
-
RESTART_NEXT_LOOP
public static final int RESTART_NEXT_LOOPStart next iteration of Thread Loop- See Also:
-
START_NEXT_ITERATION_CURRENT_LOOP
public static final int START_NEXT_ITERATION_CURRENT_LOOPStart next iteration of Current Loop- See Also:
-
BREAK_CURRENT_LOOP
public static final int BREAK_CURRENT_LOOPBreak Current Loop- See Also:
-
THREAD
public static final int THREAD- See Also:
-
TEST
public static final int TEST- See Also:
-
-
Constructor Details
-
TestAction
public TestAction()
-
-
Method Details
-
sample
Obtains statistics about the given Entry, and packages the information into a SampleResult. -
setTarget
public void setTarget(int target) -
getTarget
public int getTarget() -
setAction
public void setAction(int action) -
getAction
public int getAction() -
setDuration
-
getDurationAsString
-
applies
Description copied from class:AbstractSamplerDoes configElement apply to Sampler- Specified by:
appliesin interfaceConfigMergabilityIndicator- Overrides:
appliesin classAbstractSampler- Parameters:
configElement-ConfigTestElement- Returns:
- boolean
- See Also:
-
interrupt
public boolean interrupt()Description copied from interface:InterruptibleInterrupt the current operation if possible.- Specified by:
interruptin interfaceInterruptible- Returns:
trueif there was an operation to interrupt.
-