|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.save.CSVSaveService
This class provides a means for saving/reading test results as CSV files.
Method Summary | |
static SampleSaveConfiguration |
getSampleSaveConfiguration(String headerLine,
String filename)
Parse a CSV header line |
static SampleEvent |
makeResultFromDelimitedString(String inputLine,
SampleSaveConfiguration saveConfig,
long lineNumber)
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(SampleEvent event)
Convert a result into a string, where the fields of the result are separated by the default delimiter. |
static String |
resultToDelimitedString(SampleEvent event,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SampleEvent makeResultFromDelimitedString(String inputLine, SampleSaveConfiguration saveConfig, long lineNumber)
inputLine
- - line from CSV filesaveConfig
- - configurationlineNumber
- - line number for error reporting
JMeterError
public static String printableFieldNamesToString()
public static String printableFieldNamesToString(SampleSaveConfiguration saveConfig)
public static SampleSaveConfiguration getSampleSaveConfiguration(String headerLine, String filename)
headerLine
- from CSV filefilename
- name of file (for log message only)
public static void saveCSVStats(Vector data, FileWriter writer) throws IOException
data
- writer
-
IOException
public static String resultToDelimitedString(SampleEvent event)
event
- the sample event to be converted
public static String resultToDelimitedString(SampleEvent event, String delimiter)
event
- the sample event to be converteddelimiter
- the separation string
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |