|
Apache JMeter 2.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.save.OldSaveService
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.
Field Summary |
Fields inherited from interface org.apache.jmeter.save.SaveServiceConstants |
ASSERTION_RESULT_TAG_NAME, BINARY, DATA_TYPE, ERROR, FAILURE, FAILURE_MESSAGE, LABEL, PRESERVE, RESPONSE_CODE, RESPONSE_MESSAGE, SAMPLE_RESULT_TAG_NAME, SUCCESSFUL, THREAD_NAME, TIME, TIME_STAMP, XML_SPACE |
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,
SampleSaveConfiguration saveConfig)
This method determines the content of the result data that will be stored. |
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()
Generates the field names for the output file |
static String |
printableFieldNamesToString(SampleSaveConfiguration saveConfig)
Generates the field names for the output 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 |
saveCSVStats(Vector data,
FileWriter writer)
Method will save aggregate statistics as CSV. |
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 |
Method Detail |
public static SampleResult makeResultFromDelimitedString(String delim)
delim
-
public static String printableFieldNamesToString()
public static String printableFieldNamesToString(SampleSaveConfiguration saveConfig)
public static void saveSubTree(HashTree subTree, OutputStream writer) throws IOException
IOException
public static void saveCSVStats(Vector data, FileWriter writer) throws IOException
data
- writer
-
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, SampleSaveConfiguration saveConfig)
result
- the object containing all of the data that has been collected.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.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |