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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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 TypeMethodDescriptionbooleanbooleanbooleanintbooleanbooleanbooleanvoidSaves the sample result (and any sub results) in filesvoidA sample has started.voidA sample has stopped.voidsetAddTimestamp(boolean selected) voidsetErrorsOnly(boolean selected) voidsetFilename(String value) voidsetIgnoreTC(boolean value) voidsetNumberPadLength(String text) voidsetSkipAutoNumber(boolean selected) voidsetSkipSuffix(boolean selected) voidsetSuccessOnly(boolean selected) voidsetVariableName(String value) voidCalled once for all threads after the end of a test.voidCalled once for all threads after the end of a test.voidCalled just before the start of the test from the main engine thread.voidtestStarted(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, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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: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.
- Specified by:
testStartedin interfaceTestStateListener- See Also:
-
testStarted
Description copied from interface: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.
- Specified by:
testStartedin interfaceTestStateListener- Parameters:
host- name of host- See Also:
-
testEnded
public void testEnded()Description copied from interface: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.
- Specified by:
testEndedin interfaceTestStateListener- See Also:
-
testEnded
Description copied from interface: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.
- Specified by:
testEndedin interfaceTestStateListener- Parameters:
host- name of host- See Also:
-
sampleOccurred
Saves the sample result (and any sub results) in files- Specified by:
sampleOccurredin interfaceSampleListener- Parameters:
e- theSampleEventthat has occurred- See Also:
-
sampleStarted
A sample has started.- Specified by:
sampleStartedin interfaceSampleListener- Parameters:
e- theSampleEventthat has started
-
sampleStopped
A sample has stopped.- Specified by:
sampleStoppedin interfaceSampleListener- Parameters:
e- theSampleEventthat 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)
-