public class SaveService extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SaveService() |
Modifier and Type | Method and Description |
---|---|
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) |
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
public static Properties loadProperties() throws IOException
IOException
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 samplesException
public static HashTree loadTree(InputStream reader) throws Exception
reader
- on the JMX fileException
- 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 providedpublic static String CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
ce
- - ConversionException to analysepublic static String getPropertiesVersion()
public static String getVERSION()
Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.