public class ResultSaver extends AbstractTestElement implements NoThreadClone, java.io.Serializable, SampleListener, TestStateListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADD_TIMESTAMP |
static java.lang.String |
ERRORS_ONLY |
static java.lang.String |
FILENAME |
static java.lang.String |
NUMBER_PAD_LENGTH |
static java.lang.String |
SKIP_AUTO_NUMBER |
static java.lang.String |
SKIP_SUFFIX |
static java.lang.String |
SUCCESS_ONLY |
static java.lang.String |
VARIABLE_NAME |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
ResultSaver()
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.
|
ResultSaver(java.lang.String name)
Constructor for use during startup (intended for non-GUI use)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
sampleOccurred(SampleEvent e)
Saves the sample result (and any sub results) in files
|
void |
sampleStarted(SampleEvent e)
A sample has started.
|
void |
sampleStopped(SampleEvent e)
A sample has stopped.
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(java.lang.String host)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(java.lang.String host)
Called just before the start of the test from the main engine thread.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, 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, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitremovedpublic static final java.lang.String FILENAME
public static final java.lang.String VARIABLE_NAME
public static final java.lang.String ERRORS_ONLY
public static final java.lang.String SUCCESS_ONLY
public static final java.lang.String SKIP_AUTO_NUMBER
public static final java.lang.String SKIP_SUFFIX
public static final java.lang.String ADD_TIMESTAMP
public static final java.lang.String NUMBER_PAD_LENGTH
public ResultSaver()
public ResultSaver(java.lang.String name)
name - of summariserpublic void testStarted()
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerStandardJMeterEngine.run()public void testStarted(java.lang.String host)
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerhost - name of hostStandardJMeterEngine.run()public void testEnded()
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerStandardJMeterEngine.stopTest()public void testEnded(java.lang.String host)
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerhost - name of hostStandardJMeterEngine.stopTest()public void sampleOccurred(SampleEvent e)
sampleOccurred in interface SampleListenere - the SampleEvent that has occurredSampleListener.sampleOccurred(org.apache.jmeter.samplers.SampleEvent)public void sampleStarted(SampleEvent e)
sampleStarted in interface SampleListenere - the SampleEvent that has startedpublic void sampleStopped(SampleEvent e)
sampleStopped in interface SampleListenere - the SampleEvent that has stoppedpublic int hashCode()
AbstractTestElementhashCode in class AbstractTestElementpublic boolean equals(java.lang.Object obj)
AbstractTestElementequals in class AbstractTestElementCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.