org.apache.jmeter.reporters

Class ResultSaver

Implemented Interfaces:
Cloneable, Serializable, SampleListener, Serializable, TestElement

public class ResultSaver
extends AbstractTestElement
implements Serializable, SampleListener

Save Result responseData to a set of files This is mainly intended for validation tests

Field Summary

static String
ERRORS_ONLY
static String
FILENAME
static String
SKIP_AUTO_NUMBER
static String
SKIP_SUFFIX
static String
SUCCESS_ONLY
static String
VARIABLE_NAME

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

ResultSaver()
ResultSaver(String name)

Method Summary

void
clear()
Clear the TestElement of all data.
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.

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Field Details

ERRORS_ONLY

public static final String ERRORS_ONLY

FILENAME

public static final String FILENAME

SKIP_AUTO_NUMBER

public static final String SKIP_AUTO_NUMBER

SKIP_SUFFIX

public static final String SKIP_SUFFIX

SUCCESS_ONLY

public static final String SUCCESS_ONLY

VARIABLE_NAME

public static final String VARIABLE_NAME

Constructor Details

ResultSaver

public ResultSaver()

ResultSaver

public ResultSaver(String name)

Method Details

clear

public void clear()
Clear the TestElement of all data.
Specified by:
clear in interface TestElement
Overrides:
clear in interface AbstractTestElement

sampleOccurred

public void sampleOccurred(SampleEvent e)
Saves the sample result (and any sub results) in files
Specified by:
sampleOccurred in interface SampleListener

sampleStarted

public void sampleStarted(SampleEvent e)
A sample has started.
Specified by:
sampleStarted in interface SampleListener

sampleStopped

public void sampleStopped(SampleEvent e)
A sample has stopped.
Specified by:
sampleStopped in interface SampleListener

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.