Package org.apache.jmeter.sampler
Class TestAction
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.engine.util.ConfigMergabilityIndicator
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.samplers.Interruptible
,org.apache.jmeter.samplers.Sampler
,org.apache.jmeter.testelement.TestElement
public class TestAction extends AbstractSampler implements Interruptible
Dummy Sampler used to pause or stop a thread or the test; intended for use in Conditional Controllers.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
STOP
public final static int
PAUSE
public final static int
STOP_NOW
public final static int
RESTART_NEXT_LOOP
public final static int
START_NEXT_ITERATION_CURRENT_LOOP
public final static int
BREAK_CURRENT_LOOP
public final static int
THREAD
public final static int
TEST
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 TestAction()
-
Method Summary
Modifier and Type Method Description SampleResult
sample(Entry e)
void
setTarget(int target)
int
getTarget()
void
setAction(int action)
int
getAction()
void
setDuration(String duration)
String
getDurationAsString()
boolean
applies(ConfigTestElement configElement)
boolean
interrupt()
-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, 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.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
-
sample
SampleResult sample(Entry e)
-
setTarget
void setTarget(int target)
-
getTarget
int getTarget()
-
setAction
void setAction(int action)
-
getAction
int getAction()
-
setDuration
void setDuration(String duration)
-
getDurationAsString
String getDurationAsString()
-
applies
boolean applies(ConfigTestElement configElement)
-
interrupt
boolean interrupt()
-
-
-
-