public class ResultSaver extends AbstractTestElement implements NoThreadClone, Serializable, SampleListener, TestStateListener
Modifier and Type | Field and Description |
---|---|
static String |
ADD_TIMESTAMP |
static String |
ERRORS_ONLY |
static String |
FILENAME |
static String |
IGNORE_TC |
static String |
NUMBER_PAD_LENGTH |
static String |
SKIP_AUTO_NUMBER |
static String |
SKIP_SUFFIX |
static String |
SUCCESS_ONLY |
static 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(String name)
Constructor for use during startup (intended for non-GUI use)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
getAddTimeStamp() |
boolean |
getErrorsOnly() |
String |
getFilename() |
boolean |
getIgnoreTC() |
int |
getNumberPadLen() |
boolean |
getSkipAutoNumber() |
boolean |
getSkipSuffix() |
boolean |
getSuccessOnly() |
String |
getVariableName() |
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 |
setAddTimestamp(boolean selected) |
void |
setErrorsOnly(boolean selected) |
void |
setFilename(String value) |
void |
setIgnoreTC(boolean value) |
void |
setNumberPadLength(String text) |
void |
setSkipAutoNumber(boolean selected) |
void |
setSkipSuffix(boolean selected) |
void |
setSuccessOnly(boolean selected) |
void |
setVariableName(String value) |
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(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(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, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public static final String FILENAME
public static final String VARIABLE_NAME
public static final String ERRORS_ONLY
public static final String SUCCESS_ONLY
public static final String SKIP_AUTO_NUMBER
public static final String SKIP_SUFFIX
public static final String ADD_TIMESTAMP
public static final String NUMBER_PAD_LENGTH
public static final String IGNORE_TC
public ResultSaver()
public ResultSaver(String name)
name
- of summariserpublic void testStarted()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.run()
public void testStarted(String host)
TestStateListener
Called 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 TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(String host)
TestStateListener
Called 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 TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
public void sampleOccurred(SampleEvent e)
sampleOccurred
in interface SampleListener
e
- the SampleEvent
that has occurredSampleListener.sampleOccurred(org.apache.jmeter.samplers.SampleEvent)
public void sampleStarted(SampleEvent e)
sampleStarted
in interface SampleListener
e
- the SampleEvent
that has startedpublic void sampleStopped(SampleEvent e)
sampleStopped
in interface SampleListener
e
- the SampleEvent
that has stoppedpublic String getFilename()
public String getVariableName()
public boolean getErrorsOnly()
public boolean getSkipAutoNumber()
public boolean getSkipSuffix()
public boolean getSuccessOnly()
public boolean getAddTimeStamp()
public int getNumberPadLen()
public boolean getIgnoreTC()
public void setIgnoreTC(boolean value)
public void setFilename(String value)
public int hashCode()
AbstractTestElement
hashCode
in class AbstractTestElement
public boolean equals(Object obj)
AbstractTestElement
equals
in class AbstractTestElement
public void setAddTimestamp(boolean selected)
public void setVariableName(String value)
public void setNumberPadLength(String text)
public void setErrorsOnly(boolean selected)
public void setSuccessOnly(boolean selected)
public void setSkipSuffix(boolean selected)
public void setSkipAutoNumber(boolean selected)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.