Class ResultSaver

All Implemented Interfaces:
Serializable, Cloneable, NoThreadClone, Searchable, SampleListener, org.apache.jmeter.testelement.TestElement, TestStateListener

public class ResultSaver extends AbstractTestElement implements NoThreadClone, Serializable, SampleListener, TestStateListener
Save Result responseData to a set of files This is mainly intended for validation tests
See Also:
  • Field Details

  • 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

      public ResultSaver(String name)
      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 interface TestStateListener
      See Also:
    • testStarted

      public void testStarted(String host)
      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 interface TestStateListener
      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 interface TestStateListener
      See Also:
    • testEnded

      public void testEnded(String host)
      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 interface TestStateListener
      Parameters:
      host - name of host
      See Also:
    • sampleOccurred

      public void sampleOccurred(SampleEvent e)
      Saves the sample result (and any sub results) in files
      Specified by:
      sampleOccurred in interface SampleListener
      Parameters:
      e - the SampleEvent that has occurred
      See Also:
    • sampleStarted

      public void sampleStarted(SampleEvent e)
      A sample has started.
      Specified by:
      sampleStarted in interface SampleListener
      Parameters:
      e - the SampleEvent that has started
    • sampleStopped

      public void sampleStopped(SampleEvent e)
      A sample has stopped.
      Specified by:
      sampleStopped in interface SampleListener
      Parameters:
      e - the SampleEvent that has stopped
    • getFilename

      public String getFilename()
    • getVariableName

      public String 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

      public void setFilename(String value)
    • setAddTimestamp

      public void setAddTimestamp(boolean selected)
    • setVariableName

      public void setVariableName(String value)
    • setNumberPadLength

      public void setNumberPadLength(String text)
    • setErrorsOnly

      public void setErrorsOnly(boolean selected)
    • setSuccessOnly

      public void setSuccessOnly(boolean selected)
    • setSkipSuffix

      public void setSkipSuffix(boolean selected)
    • setSkipAutoNumber

      public void setSkipAutoNumber(boolean selected)