Class ResultSaver
- All Implemented Interfaces:
Serializable
,Cloneable
,NoThreadClone
,Searchable
,SampleListener
,org.apache.jmeter.testelement.TestElement
,TestStateListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
ConstructorDescriptionConstructor 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) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
int
boolean
boolean
boolean
void
Saves the sample result (and any sub results) in filesvoid
A sample has started.void
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
Called once for all threads after the end of a test.void
Called once for all threads after the end of a test.void
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.Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, 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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getProps, getSchema, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Field Details
-
FILENAME
- See Also:
-
VARIABLE_NAME
- See Also:
-
ERRORS_ONLY
- See Also:
-
SUCCESS_ONLY
- See Also:
-
SKIP_AUTO_NUMBER
- See Also:
-
SKIP_SUFFIX
- See Also:
-
ADD_TIMESTAMP
- See Also:
-
NUMBER_PAD_LENGTH
- See Also:
-
IGNORE_TC
- See Also:
-
-
Constructor Details
-
ResultSaver
public 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
Constructor for use during startup (intended for non-GUI use)- Parameters:
name
- of summariser
-
-
Method Details
-
testStarted
public void testStarted()Description copied from interface: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.
- Specified by:
testStarted
in interfaceTestStateListener
- See Also:
-
testStarted
Description copied from interface: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.
- Specified by:
testStarted
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
testEnded
public void testEnded()Description copied from interface: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.
- Specified by:
testEnded
in interfaceTestStateListener
- See Also:
-
testEnded
Description copied from interface: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.
- Specified by:
testEnded
in interfaceTestStateListener
- Parameters:
host
- name of host- See Also:
-
sampleOccurred
Saves the sample result (and any sub results) in files- Specified by:
sampleOccurred
in interfaceSampleListener
- Parameters:
e
- theSampleEvent
that has occurred- See Also:
-
sampleStarted
A sample has started.- Specified by:
sampleStarted
in interfaceSampleListener
- Parameters:
e
- theSampleEvent
that has started
-
sampleStopped
A sample has stopped.- Specified by:
sampleStopped
in interfaceSampleListener
- Parameters:
e
- theSampleEvent
that has stopped
-
getFilename
-
getVariableName
-
getErrorsOnly
public boolean getErrorsOnly() -
getSkipAutoNumber
public boolean getSkipAutoNumber() -
getSkipSuffix
public boolean getSkipSuffix() -
getSuccessOnly
public boolean getSuccessOnly() -
getAddTimeStamp
public boolean getAddTimeStamp() -
getNumberPadLen
public int getNumberPadLen() -
getIgnoreTC
public boolean getIgnoreTC() -
setIgnoreTC
public void setIgnoreTC(boolean value) -
setFilename
-
setAddTimestamp
public void setAddTimestamp(boolean selected) -
setVariableName
-
setNumberPadLength
-
setErrorsOnly
public void setErrorsOnly(boolean selected) -
setSuccessOnly
public void setSuccessOnly(boolean selected) -
setSkipSuffix
public void setSkipSuffix(boolean selected) -
setSkipAutoNumber
public void setSkipAutoNumber(boolean selected)
-