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
Modifier and TypeFieldDescriptionstatic final int
Break Current Loopstatic final int
static final int
Start next iteration of Thread Loopstatic final int
Start next iteration of Current Loopstatic final int
static final int
static final int
static final int
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applies
(ConfigTestElement configElement) Does configElement apply to Samplerint
int
boolean
Interrupt the current operation if possible.Obtains statistics about the given Entry, and packages the information into a SampleResult.void
setAction
(int action) void
setDuration
(String duration) void
setTarget
(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, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:AbstractSampler
Does configElement apply to Sampler- Specified by:
applies
in interfaceConfigMergabilityIndicator
- Overrides:
applies
in classAbstractSampler
- Parameters:
configElement
-ConfigTestElement
- Returns:
- boolean
- See Also:
-
interrupt
public boolean interrupt()Description copied from interface:Interruptible
Interrupt the current operation if possible.- Specified by:
interrupt
in interfaceInterruptible
- Returns:
true
if there was an operation to interrupt.
-