|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.save.SaveService
This class provides a means for saving test results. Test results are typically saved in an XML file, but other storage mechanisms may also be used, for instance, CSV files or databases.
Nested Class Summary | |
static class |
SaveService.Test
|
Field Summary | |
protected static int |
assertionsResultsToSave
|
protected static String |
defaultDelimiter
The string used to separate fields when stored to disk, for example, the comma for CSV files. |
protected static SimpleDateFormat |
formatter
A formatter for the time stamp. |
protected static int |
outputFormat
A flag to indicate which output format to use for results. |
protected static boolean |
printFieldNames
A flag to indicate whether to print the field names for delimited result files. |
protected static boolean |
printMilliseconds
A flag to indicate whether the time stamp should be printed in milliseconds. |
protected static int |
SAVE_ALL_ASSERTIONS
|
protected static int |
SAVE_FIRST_ASSERTION
|
protected static int |
SAVE_NO_ASSERTIONS
|
protected static boolean |
saveAssertionResultsFailureMessage
A flag to indicate whether the assertion result's failure message should be saved to the test results. |
protected static boolean |
saveDataType
A flag to indicate whether the data type should be saved to the test results. |
protected static boolean |
saveLabel
A flag to indicate whether the label should be saved to the test results. |
protected static boolean |
saveResponseCode
A flag to indicate whether the response code should be saved to the test results. |
protected static boolean |
saveResponseData
A flag to indicate whether the response data should be saved to the test results. |
protected static boolean |
saveResponseMessage
A flag to indicate whether the response message should be saved to the test results. |
protected static boolean |
saveSuccessful
A flag to indicate whether the success indicator should be saved to the test results. |
protected static boolean |
saveThreadName
A flag to indicate whether the thread name should be saved to the test results. |
protected static boolean |
saveTime
A flag to indicate whether the time should be saved to the test results. |
protected static String |
timeStampFormat
A flag to indicate the format of the time stamp within the test results. |
protected static String |
whichAssertionResults
A flag to indicate which assertion results should be saved to the test results. |
Method Summary | |
static TestElement |
createTestElement(org.apache.avalon.framework.configuration.Configuration config)
|
static AssertionResult |
getAssertionResult(org.apache.avalon.framework.configuration.Configuration config)
|
static byte[] |
getBinaryData(org.apache.avalon.framework.configuration.Configuration config)
|
static org.apache.avalon.framework.configuration.Configuration |
getConfigForTestElement(String named,
TestElement item)
|
static org.apache.avalon.framework.configuration.Configuration |
getConfiguration(AssertionResult assResult)
|
static org.apache.avalon.framework.configuration.Configuration |
getConfiguration(byte[] bin)
|
static org.apache.avalon.framework.configuration.Configuration |
getConfiguration(SampleResult result,
boolean funcTest)
This method determines the content of the result data that will be stored. |
static int |
getOutputFormat()
Return the format for the saved results, e.g., csv or xml. |
static boolean |
getPrintFieldNames()
Return whether the field names should be printed to a delimited results file. |
static SampleResult |
getSampleResult(org.apache.avalon.framework.configuration.Configuration config)
|
static HashTree |
loadSubTree(InputStream in)
|
static SampleResult |
makeResultFromDelimitedString(String delim)
Make a SampleResult given a delimited string. |
static String |
printableFieldNamesToString()
Return whether the field names should be printed to the output file. |
protected static void |
readProperties()
Read in the properties having to do with saving from a properties file. |
static String |
resultToDelimitedString(SampleResult sample)
Convert a result into a string, where the fields of the result are separated by the default delimiter. |
static String |
resultToDelimitedString(SampleResult sample,
String delimiter)
Convert a result into a string, where the fields of the result are separated by a specified String. |
static void |
saveSubTree(HashTree subTree,
OutputStream writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int SAVE_NO_ASSERTIONS
protected static final int SAVE_FIRST_ASSERTION
protected static final int SAVE_ALL_ASSERTIONS
protected static SimpleDateFormat formatter
protected static int outputFormat
protected static boolean printFieldNames
protected static boolean saveDataType
protected static boolean saveAssertionResultsFailureMessage
protected static boolean saveLabel
protected static boolean saveResponseCode
protected static boolean saveResponseData
protected static boolean saveResponseMessage
protected static boolean saveSuccessful
protected static boolean saveThreadName
protected static boolean saveTime
protected static String timeStampFormat
protected static boolean printMilliseconds
protected static String whichAssertionResults
protected static int assertionsResultsToSave
protected static String defaultDelimiter
Method Detail |
protected static void readProperties()
public static int getOutputFormat()
public static boolean getPrintFieldNames()
public static SampleResult makeResultFromDelimitedString(String delim)
delim
-
public static String printableFieldNamesToString()
public static void saveSubTree(HashTree subTree, OutputStream writer) throws IOException
IOException
public static SampleResult getSampleResult(org.apache.avalon.framework.configuration.Configuration config)
public static org.apache.avalon.framework.configuration.Configuration getConfiguration(byte[] bin)
public static byte[] getBinaryData(org.apache.avalon.framework.configuration.Configuration config)
public static AssertionResult getAssertionResult(org.apache.avalon.framework.configuration.Configuration config)
public static org.apache.avalon.framework.configuration.Configuration getConfiguration(AssertionResult assResult)
public static org.apache.avalon.framework.configuration.Configuration getConfiguration(SampleResult result, boolean funcTest)
result
- the object containing all of the data that has been
collected.funcTest
- an indicator of whether the user wants all data
recorded.public static String resultToDelimitedString(SampleResult sample)
sample
- the test result to be converted
public static String resultToDelimitedString(SampleResult sample, String delimiter)
sample
- the test result to be converteddelimiter
- the separation string
public static org.apache.avalon.framework.configuration.Configuration getConfigForTestElement(String named, TestElement item)
public static HashTree loadSubTree(InputStream in) throws IOException
IOException
public static TestElement createTestElement(org.apache.avalon.framework.configuration.Configuration config) throws org.apache.avalon.framework.configuration.ConfigurationException, ClassNotFoundException, IllegalAccessException, InstantiationException
org.apache.avalon.framework.configuration.ConfigurationException
ClassNotFoundException
IllegalAccessException
InstantiationException
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |