Class ResultSaver
- All Implemented Interfaces:
- Serializable,- Cloneable,- NoThreadClone,- Searchable,- SampleListener,- org.apache.jmeter.testelement.TestElement,- TestStateListener
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFieldsModifier 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.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor 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 SummaryModifier 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.AbstractTestElementaddPropertiesValues, 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.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, 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- 
ResultSaverpublic 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.
- 
ResultSaverConstructor for use during startup (intended for non-GUI use)- Parameters:
- name- of summariser
 
 
- 
- 
Method Details- 
testStartedpublic 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 interface- TestStateListener
- See Also:
 
- 
testStartedDescription 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 interface- TestStateListener
- Parameters:
- host- name of host
- See Also:
 
- 
testEndedpublic 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 interface- TestStateListener
- See Also:
 
- 
testEndedDescription 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 interface- TestStateListener
- Parameters:
- host- name of host
- See Also:
 
- 
sampleOccurredSaves the sample result (and any sub results) in files- Specified by:
- sampleOccurredin interface- SampleListener
- Parameters:
- e- the- SampleEventthat has occurred
- See Also:
 
- 
sampleStartedA sample has started.- Specified by:
- sampleStartedin interface- SampleListener
- Parameters:
- e- the- SampleEventthat has started
 
- 
sampleStoppedA sample has stopped.- Specified by:
- sampleStoppedin interface- SampleListener
- Parameters:
- e- the- SampleEventthat has stopped
 
- 
getFilename
- 
getVariableName
- 
getErrorsOnlypublic boolean getErrorsOnly()
- 
getSkipAutoNumberpublic boolean getSkipAutoNumber()
- 
getSkipSuffixpublic boolean getSkipSuffix()
- 
getSuccessOnlypublic boolean getSuccessOnly()
- 
getAddTimeStamppublic boolean getAddTimeStamp()
- 
getNumberPadLenpublic int getNumberPadLen()
- 
getIgnoreTCpublic boolean getIgnoreTC()
- 
setIgnoreTCpublic void setIgnoreTC(boolean value) 
- 
setFilename
- 
setAddTimestamppublic void setAddTimestamp(boolean selected) 
- 
setVariableName
- 
setNumberPadLength
- 
setErrorsOnlypublic void setErrorsOnly(boolean selected) 
- 
setSuccessOnlypublic void setSuccessOnly(boolean selected) 
- 
setSkipSuffixpublic void setSkipSuffix(boolean selected) 
- 
setSkipAutoNumberpublic void setSkipAutoNumber(boolean selected) 
 
-