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 InterruptibleDummy 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 intSTOPpublic final static intPAUSEpublic final static intSTOP_NOWpublic final static intRESTART_NEXT_LOOPpublic final static intSTART_NEXT_ITERATION_CURRENT_LOOPpublic final static intBREAK_CURRENT_LOOPpublic final static intTHREADpublic final static intTESTpublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description TestAction()
-
Method Summary
Modifier and Type Method Description SampleResultsample(Entry e)voidsetTarget(int target)intgetTarget()voidsetAction(int action)intgetAction()voidsetDuration(String duration)StringgetDurationAsString()booleanapplies(ConfigTestElement configElement)booleaninterrupt()-
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()
-
-
-
-