Package org.apache.jmeter.reporters
Class ResultAction
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.samplers.SampleListener
,org.apache.jmeter.testelement.TestElement
public class ResultAction extends OnErrorTestElement implements Serializable, SampleListener
ResultAction - take action based on the status of the last Result
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
ON_ERROR_CONTINUE
public final static int
ON_ERROR_STOPTHREAD
public final static int
ON_ERROR_STOPTEST
public final static int
ON_ERROR_STOPTEST_NOW
public final static int
ON_ERROR_START_NEXT_THREAD_LOOP
public final static int
ON_ERROR_START_NEXT_ITERATION_OF_CURRENT_LOOP
public final static int
ON_ERROR_BREAK_CURRENT_LOOP
public final static String
ON_ERROR_ACTION
private transient boolean
runningVersion
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 ResultAction()
Constructor is initially called once for each occurrence in the test plan For GUI, several more instances are created Then clear is called at start of test Called several times during test startup The name will not necessarily have been set at this point.
-
Method Summary
Modifier and Type Method Description void
sampleOccurred(SampleEvent e)
Examine the sample(s) and take appropriate action void
sampleStarted(SampleEvent e)
A sample has started. void
sampleStopped(SampleEvent e)
A sample has stopped. -
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Methods inherited from class org.apache.jmeter.testelement.OnErrorTestElement
getErrorAction, isBreakCurrentLoop, isContinue, isStartNextIterationOfCurrentLoop, isStartNextThreadLoop, isStopTest, isStopTestNow, isStopThread, setErrorAction
-
Methods inherited from class 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, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getProps, getSchema, getString, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, removed, set, setComment, setEnabled, setName, setProperty, setTemporary, traverse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ResultAction
ResultAction()
Constructor is initially called once for each occurrence in the test plan For GUI, several more instances are created Then clear is called at start of test Called several times during test startup The name will not necessarily have been set at this point.
-
-
Method Detail
-
sampleOccurred
void sampleOccurred(SampleEvent e)
Examine the sample(s) and take appropriate action
-
sampleStarted
void sampleStarted(SampleEvent e)
A sample has started.
-
sampleStopped
void sampleStopped(SampleEvent e)
A sample has stopped.
-
-
-
-