|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.save.SaveService
public class SaveService
Handles setting up XStream serialisation. The class reads alias definitions from saveservice.properties.
Field Summary | |
---|---|
static boolean |
IS_TESTPLAN_FORMAT_22
New XStream format - more compressed class names |
static String |
RESULTCOLLECTOR_HELPER_OBJECT
|
static String |
SAMPLE_EVENT_OBJECT
|
static String |
TEST_CLASS_NAME
|
static String |
TESTLOG_FORMAT
|
static String |
TESTPLAN_FORMAT
|
Constructor Summary | |
---|---|
SaveService()
|
Method Summary | |
---|---|
static String |
aliasToClass(String s)
|
static String |
CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
Simplify getMessage() output from XStream ConversionException |
static String |
classToAlias(String s)
|
static String |
getFileEncoding(String dflt)
Returns the file Encoding specified in saveservice.properties or the default |
static String |
getPropertiesVersion()
|
static String |
getVERSION()
|
static Object |
loadElement(InputStream in)
|
static Properties |
loadProperties()
|
static void |
loadTestResults(InputStream reader,
ResultCollectorHelper resultCollectorHelper)
Read results from JTL file. |
static HashTree |
loadTree(InputStream reader)
Load a Test tree (JMX file) |
static void |
saveElement(Object el,
OutputStream out)
|
static void |
saveSampleResult(SampleEvent evt,
Writer writer)
Save a sampleResult to an XML output file using XStream. |
static void |
saveTestElement(TestElement elem,
Writer writer)
|
static void |
saveTree(HashTree tree,
OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SAMPLE_EVENT_OBJECT
public static final String RESULTCOLLECTOR_HELPER_OBJECT
public static final String TEST_CLASS_NAME
public static final String TESTPLAN_FORMAT
public static final String TESTLOG_FORMAT
public static final boolean IS_TESTPLAN_FORMAT_22
Constructor Detail |
---|
public SaveService()
Method Detail |
---|
public static Properties loadProperties() throws IOException
IOException
public static String aliasToClass(String s)
public static String classToAlias(String s)
public static void saveTree(HashTree tree, OutputStream out) throws IOException
IOException
public static void saveElement(Object el, OutputStream out) throws IOException
IOException
public static Object loadElement(InputStream in) throws IOException
IOException
public static void saveSampleResult(SampleEvent evt, Writer writer) throws IOException
evt
- sampleResult wrapped in a sampleEventwriter
- output stream which must be created using getFileEncoding(String)
IOException
public static void saveTestElement(TestElement elem, Writer writer) throws IOException
elem
- test elementwriter
- output stream which must be created using getFileEncoding(String)
IOException
public static void loadTestResults(InputStream reader, ResultCollectorHelper resultCollectorHelper) throws Exception
reader
- of the fileresultCollectorHelper
- helper class to enable TestResultWrapperConverter to deliver the samples
Exception
public static HashTree loadTree(InputStream reader) throws Exception
reader
- on the JMX file
Exception
- if there is a problem reading the file or processing itpublic static String getFileEncoding(String dflt)
dflt
- value to return if file encoding was not provided
public static String CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
ce
- - ConversionException to analyse
public static String getPropertiesVersion()
public static String getVERSION()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |