public class SaveService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESULTCOLLECTOR_HELPER_OBJECT |
static java.lang.String |
SAMPLE_EVENT_OBJECT |
static java.lang.String |
TEST_CLASS_NAME |
Constructor and Description |
---|
SaveService() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
aliasToClass(java.lang.String s) |
static java.lang.String |
CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
Simplify getMessage() output from XStream ConversionException
|
static java.lang.String |
classToAlias(java.lang.String s) |
static java.lang.String |
getFileEncoding(java.lang.String dflt)
Returns the file Encoding specified in saveservice.properties or the default
|
static java.lang.String |
getPropertiesVersion() |
static java.lang.String |
getVERSION() |
static java.lang.Object |
loadElement(java.io.InputStream in) |
static java.util.Properties |
loadProperties() |
static void |
loadTestResults(java.io.InputStream reader,
ResultCollectorHelper resultCollectorHelper)
Read results from JTL file.
|
static HashTree |
loadTree(java.io.File file)
Load a Test tree (JMX file)
|
static void |
saveElement(java.lang.Object el,
java.io.OutputStream out) |
static void |
saveSampleResult(SampleEvent evt,
java.io.Writer writer)
Save a sampleResult to an XML output file using XStream.
|
static void |
saveTree(HashTree tree,
java.io.OutputStream out) |
public static final java.lang.String SAMPLE_EVENT_OBJECT
public static final java.lang.String RESULTCOLLECTOR_HELPER_OBJECT
public static final java.lang.String TEST_CLASS_NAME
public static java.util.Properties loadProperties() throws java.io.IOException
java.io.IOException
public static java.lang.String aliasToClass(java.lang.String s)
public static java.lang.String classToAlias(java.lang.String s)
public static void saveTree(HashTree tree, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static void saveElement(java.lang.Object el, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static java.lang.Object loadElement(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static void saveSampleResult(SampleEvent evt, java.io.Writer writer) throws java.io.IOException
evt
- sampleResult wrapped in a sampleEventwriter
- output stream which must be created using getFileEncoding(String)
java.io.IOException
- when writing data to output failspublic static void loadTestResults(java.io.InputStream reader, ResultCollectorHelper resultCollectorHelper) throws java.io.IOException
reader
- of the fileresultCollectorHelper
- helper class to enable TestResultWrapperConverter to deliver the samplesjava.io.IOException
- if an I/O error occurspublic static HashTree loadTree(java.io.File file) throws java.io.IOException
file
- the JMX filejava.io.IOException
- if there is a problem reading the file or processing itpublic static java.lang.String getFileEncoding(java.lang.String dflt)
dflt
- value to return if file encoding was not providedpublic static java.lang.String CEtoString(com.thoughtworks.xstream.converters.ConversionException ce)
ce
- - ConversionException to analysepublic static java.lang.String getPropertiesVersion()
public static java.lang.String getVERSION()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.