Apache JMeter
2.1.1

org.apache.jmeter.samplers
Class SampleSaveConfiguration

java.lang.Object
  extended byorg.apache.jmeter.samplers.SampleSaveConfiguration
All Implemented Interfaces:
Cloneable, Serializable

public class SampleSaveConfiguration
extends Object
implements Cloneable, Serializable

Author:
mstover
See Also:
Serialized Form

Field Summary
static String ALL
          A properties file indicator for all of a series
static String ASSERTION_RESULT_TAG_NAME
           
static String ASSERTION_RESULTS_FAILURE_MESSAGE_PROP
          The name of the property indicating which assertion results should be saved.
static String ASSERTION_RESULTS_PROP
          The name of the property indicating which assertion results should be saved.
static String BINARY
           
static String CSV
          Indicates that the results file should be in CSV format
static String DATA_TYPE
           
static String DATABASE
          Indicates that the results should be stored in a database
static String DEFAULT_DELIMITER_PROP
          The name of the property indicating which delimiter should be used when saving in a delimited values format.
static String ERROR
           
static String FAILURE
           
static String FAILURE_MESSAGE
           
static String FALSE
          A properties file indicator for false
static String FIRST
          A properties file indicator for the first of a series
static String LABEL
           
static String MILLISECONDS
          A properties file indicator for milliseconds
static String NONE
          A properties file indicator for none
static String OUTPUT_FORMAT_PROP
          The name of the property indicating which format should be used when saving the results, e.g., xml or csv.
static String PRESERVE
           
static String PRINT_FIELD_NAMES_PROP
          The name of the property indicating whether field names should be printed to a delimited file.
static String RESPONSE_CODE
           
static String RESPONSE_MESSAGE
           
static String SAMPLE_RESULT_TAG_NAME
           
static int SAVE_ALL_ASSERTIONS
           
static String SAVE_DATA_TYPE_PROP
          The name of the property indicating whether the data type should be saved.
static int SAVE_FIRST_ASSERTION
           
static String SAVE_LABEL_PROP
          The name of the property indicating whether the label should be saved.
static int SAVE_NO_ASSERTIONS
           
static String SAVE_RESPONSE_CODE_PROP
          The name of the property indicating whether the response code should be saved.
static String SAVE_RESPONSE_DATA_ON_ERROR_PROP
           
static String SAVE_RESPONSE_DATA_PROP
          The name of the property indicating whether the response data should be saved.
static String SAVE_RESPONSE_MESSAGE_PROP
          The name of the property indicating whether the response message should be saved.
static String SAVE_SUCCESSFUL_PROP
          The name of the property indicating whether the success indicator should be saved.
static String SAVE_THREAD_NAME_PROP
          The name of the property indicating whether the thread name should be saved.
static String SAVE_TIME_PROP
          The name of the property indicating whether the time should be saved.
static String SUCCESSFUL
           
static String THREAD_NAME
           
static String TIME
           
static String TIME_STAMP
           
static String TIME_STAMP_FORMAT_PROP
          The name of the property indicating whether the time stamp should be saved.
static String TRUE
          A properties file indicator for true
static String XML
          Indicates that the results file should be in XML format
static String XML_SPACE
           
 
Constructor Summary
SampleSaveConfiguration()
           
 
Method Summary
 int assertionsResultsToSave()
           
 Object clone()
           
 SimpleDateFormat formatter()
           
 String getDelimiter()
           
 boolean printMilliseconds()
           
 boolean saveAssertionResultsFailureMessage()
           
 boolean saveAssertions()
           
 boolean saveAsXml()
           
 boolean saveCode()
           
 boolean saveDataType()
           
 boolean saveEncoding()
           
 boolean saveFieldNames()
           
 boolean saveLabel()
           
 boolean saveLatency()
           
 boolean saveMessage()
           
 boolean saveRequestHeaders()
           
 boolean saveResponseData()
           
 boolean saveResponseData(SampleResult res)
          Should samplerData be saved for the current result?
 boolean saveResponseHeaders()
           
 boolean saveSamplerData()
           
 boolean saveSamplerData(SampleResult res)
           
 boolean saveSubresults()
           
 boolean saveSuccess()
           
 boolean saveThreadName()
           
 boolean saveTime()
           
 boolean saveTimestamp()
           
 void setAssertionResultsFailureMessage(boolean b)
           
 void setAssertions(boolean assertions)
           
 void setAsXml(boolean xml)
           
 void setCode(boolean code)
           
 void setDataType(boolean dataType)
           
 void setEncoding(boolean encoding)
           
 void setFieldNames(boolean printFieldNames)
           
 void setLabel(boolean label)
           
 void setLatency(boolean latency)
           
 void setMessage(boolean message)
           
 void setRequestHeaders(boolean r)
           
 void setResponseData(boolean responseData)
           
 void setResponseHeaders(boolean r)
           
 void setSamplerData(boolean samplerData)
           
 void setSubresults(boolean subresults)
           
 void setSuccess(boolean success)
           
 void setThreadName(boolean threadName)
           
 void setTime(boolean time)
           
 void setTimestamp(boolean timestamp)
           
static SampleSaveConfiguration staticConfig()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML

public static final String XML
Indicates that the results file should be in XML format. *

See Also:
Constant Field Values

CSV

public static final String CSV
Indicates that the results file should be in CSV format. *

See Also:
Constant Field Values

DATABASE

public static final String DATABASE
Indicates that the results should be stored in a database. *

See Also:
Constant Field Values

TRUE

public static final String TRUE
A properties file indicator for true. *

See Also:
Constant Field Values

FALSE

public static final String FALSE
A properties file indicator for false. *

See Also:
Constant Field Values

MILLISECONDS

public static final String MILLISECONDS
A properties file indicator for milliseconds. *

See Also:
Constant Field Values

NONE

public static final String NONE
A properties file indicator for none. *

See Also:
Constant Field Values

FIRST

public static final String FIRST
A properties file indicator for the first of a series. *

See Also:
Constant Field Values

ALL

public static final String ALL
A properties file indicator for all of a series. *

See Also:
Constant Field Values

ASSERTION_RESULTS_FAILURE_MESSAGE_PROP

public static final String ASSERTION_RESULTS_FAILURE_MESSAGE_PROP
The name of the property indicating which assertion results should be saved.

See Also:
Constant Field Values

ASSERTION_RESULTS_PROP

public static final String ASSERTION_RESULTS_PROP
The name of the property indicating which assertion results should be saved.

See Also:
Constant Field Values

DEFAULT_DELIMITER_PROP

public static final String DEFAULT_DELIMITER_PROP
The name of the property indicating which delimiter should be used when saving in a delimited values format.

See Also:
Constant Field Values

OUTPUT_FORMAT_PROP

public static final String OUTPUT_FORMAT_PROP
The name of the property indicating which format should be used when saving the results, e.g., xml or csv.

See Also:
Constant Field Values

PRINT_FIELD_NAMES_PROP

public static final String PRINT_FIELD_NAMES_PROP
The name of the property indicating whether field names should be printed to a delimited file.

See Also:
Constant Field Values

SAVE_DATA_TYPE_PROP

public static final String SAVE_DATA_TYPE_PROP
The name of the property indicating whether the data type should be saved.

See Also:
Constant Field Values

SAVE_LABEL_PROP

public static final String SAVE_LABEL_PROP
The name of the property indicating whether the label should be saved.

See Also:
Constant Field Values

SAVE_RESPONSE_CODE_PROP

public static final String SAVE_RESPONSE_CODE_PROP
The name of the property indicating whether the response code should be saved.

See Also:
Constant Field Values

SAVE_RESPONSE_DATA_PROP

public static final String SAVE_RESPONSE_DATA_PROP
The name of the property indicating whether the response data should be saved.

See Also:
Constant Field Values

SAVE_RESPONSE_DATA_ON_ERROR_PROP

public static final String SAVE_RESPONSE_DATA_ON_ERROR_PROP
See Also:
Constant Field Values

SAVE_RESPONSE_MESSAGE_PROP

public static final String SAVE_RESPONSE_MESSAGE_PROP
The name of the property indicating whether the response message should be saved.

See Also:
Constant Field Values

SAVE_SUCCESSFUL_PROP

public static final String SAVE_SUCCESSFUL_PROP
The name of the property indicating whether the success indicator should be saved.

See Also:
Constant Field Values

SAVE_THREAD_NAME_PROP

public static final String SAVE_THREAD_NAME_PROP
The name of the property indicating whether the thread name should be saved.

See Also:
Constant Field Values

SAVE_TIME_PROP

public static final String SAVE_TIME_PROP
The name of the property indicating whether the time should be saved.

See Also:
Constant Field Values

TIME_STAMP_FORMAT_PROP

public static final String TIME_STAMP_FORMAT_PROP
The name of the property indicating whether the time stamp should be saved.

See Also:
Constant Field Values

PRESERVE

public static final String PRESERVE
See Also:
Constant Field Values

XML_SPACE

public static final String XML_SPACE
See Also:
Constant Field Values

ASSERTION_RESULT_TAG_NAME

public static final String ASSERTION_RESULT_TAG_NAME
See Also:
Constant Field Values

BINARY

public static final String BINARY
See Also:
Constant Field Values

DATA_TYPE

public static final String DATA_TYPE
See Also:
Constant Field Values

ERROR

public static final String ERROR
See Also:
Constant Field Values

FAILURE

public static final String FAILURE
See Also:
Constant Field Values

FAILURE_MESSAGE

public static final String FAILURE_MESSAGE
See Also:
Constant Field Values

LABEL

public static final String LABEL
See Also:
Constant Field Values

RESPONSE_CODE

public static final String RESPONSE_CODE
See Also:
Constant Field Values

RESPONSE_MESSAGE

public static final String RESPONSE_MESSAGE
See Also:
Constant Field Values

SAMPLE_RESULT_TAG_NAME

public static final String SAMPLE_RESULT_TAG_NAME
See Also:
Constant Field Values

SUCCESSFUL

public static final String SUCCESSFUL
See Also:
Constant Field Values

THREAD_NAME

public static final String THREAD_NAME
See Also:
Constant Field Values

TIME

public static final String TIME
See Also:
Constant Field Values

TIME_STAMP

public static final String TIME_STAMP
See Also:
Constant Field Values

SAVE_NO_ASSERTIONS

public static final int SAVE_NO_ASSERTIONS
See Also:
Constant Field Values

SAVE_FIRST_ASSERTION

public static final int SAVE_FIRST_ASSERTION
See Also:
Constant Field Values

SAVE_ALL_ASSERTIONS

public static final int SAVE_ALL_ASSERTIONS
See Also:
Constant Field Values
Constructor Detail

SampleSaveConfiguration

public SampleSaveConfiguration()
Method Detail

staticConfig

public static SampleSaveConfiguration staticConfig()

clone

public Object clone()

saveResponseHeaders

public boolean saveResponseHeaders()

setResponseHeaders

public void setResponseHeaders(boolean r)

saveRequestHeaders

public boolean saveRequestHeaders()

setRequestHeaders

public void setRequestHeaders(boolean r)

saveAssertions

public boolean saveAssertions()
Returns:
Returns the assertions.

setAssertions

public void setAssertions(boolean assertions)
Parameters:
assertions - The assertions to set.

saveCode

public boolean saveCode()
Returns:
Returns the code.

setCode

public void setCode(boolean code)
Parameters:
code - The code to set.

saveDataType

public boolean saveDataType()
Returns:
Returns the dataType.

setDataType

public void setDataType(boolean dataType)
Parameters:
dataType - The dataType to set.

saveEncoding

public boolean saveEncoding()
Returns:
Returns the encoding.

setEncoding

public void setEncoding(boolean encoding)
Parameters:
encoding - The encoding to set.

saveLabel

public boolean saveLabel()
Returns:
Returns the label.

setLabel

public void setLabel(boolean label)
Parameters:
label - The label to set.

saveLatency

public boolean saveLatency()
Returns:
Returns the latency.

setLatency

public void setLatency(boolean latency)
Parameters:
latency - The latency to set.

saveMessage

public boolean saveMessage()
Returns:
Returns the message.

setMessage

public void setMessage(boolean message)
Parameters:
message - The message to set.

saveResponseData

public boolean saveResponseData(SampleResult res)
Should samplerData be saved for the current result?

Returns:
Returns whether to save the samplerData.

saveResponseData

public boolean saveResponseData()

setResponseData

public void setResponseData(boolean responseData)
Parameters:
responseData - The responseData to set.

saveSamplerData

public boolean saveSamplerData(SampleResult res)
Returns:
Returns whether to save the samplerData.

saveSamplerData

public boolean saveSamplerData()

setSamplerData

public void setSamplerData(boolean samplerData)
Parameters:
samplerData - The samplerData to set.

saveSubresults

public boolean saveSubresults()
Returns:
Returns the subresults.

setSubresults

public void setSubresults(boolean subresults)
Parameters:
subresults - The subresults to set.

saveSuccess

public boolean saveSuccess()
Returns:
Returns the success.

setSuccess

public void setSuccess(boolean success)
Parameters:
success - The success to set.

saveThreadName

public boolean saveThreadName()
Returns:
Returns the threadName.

setThreadName

public void setThreadName(boolean threadName)
Parameters:
threadName - The threadName to set.

saveTime

public boolean saveTime()
Returns:
Returns the time.

setTime

public void setTime(boolean time)
Parameters:
time - The time to set.

saveTimestamp

public boolean saveTimestamp()
Returns:
Returns the timestamp.

setTimestamp

public void setTimestamp(boolean timestamp)
Parameters:
timestamp - The timestamp to set.

saveAsXml

public boolean saveAsXml()
Returns:
Returns the xml.

setAsXml

public void setAsXml(boolean xml)
Parameters:
xml - The xml to set.

saveFieldNames

public boolean saveFieldNames()
Returns:
Returns the printFieldNames.

setFieldNames

public void setFieldNames(boolean printFieldNames)
Parameters:
printFieldNames - - should field names be printed?

printMilliseconds

public boolean printMilliseconds()

formatter

public SimpleDateFormat formatter()

saveAssertionResultsFailureMessage

public boolean saveAssertionResultsFailureMessage()

setAssertionResultsFailureMessage

public void setAssertionResultsFailureMessage(boolean b)

assertionsResultsToSave

public int assertionsResultsToSave()

getDelimiter

public String getDelimiter()

Apache JMeter
2.1.1

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