public class SaveService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESULTCOLLECTOR_HELPER_OBJECT |
static String |
SAMPLE_EVENT_OBJECT |
static String |
TEST_CLASS_NAME |
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(File file)
Load a Test tree (JMX file)
|
static HashTree |
loadTree(InputStream inputStream)
Deprecated.
|
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 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
- when writing data to output failspublic static void saveTestElement(TestElement elem, Writer writer) throws IOException
elem
- test elementwriter
- output stream which must be created using getFileEncoding(String)
IOException
- when writing data to output failspublic static void loadTestResults(InputStream reader, ResultCollectorHelper resultCollectorHelper) throws IOException
reader
- of the fileresultCollectorHelper
- helper class to enable TestResultWrapperConverter to deliver the samplesIOException
- if an I/O error occurs@Deprecated public static HashTree loadTree(InputStream inputStream) throws IOException
inputStream
- the JMX file as an InputStream
IOException
- if there is a problem reading the file or processing itpublic static HashTree loadTree(File file) throws IOException
file
- the JMX fileIOException
- 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-2016 Apache Software Foundation. All Rights Reserved.