Class CSVResultsWriter
source code
Class to log results to logfile in CSV format.
Writing of the test summary file defaults to the working directory.
This can be be over-ridden in the PySys project file using the nested
<property> tag on the <writer> tag. The CSV column output is
in the form;
id, title, cycle, startTime, duration, outcome
string
|
outputDir = None
Path to output directory to write the test summary files
|
Create an instance of the TextResultsWriter class.
- Parameters:
logfile - The filename template for the logging of test results
|
Implementation of the setup method.
Creates the file handle to the logfile and logs initial details of the
date, platform and test host.
- Parameters:
kwargs - Variable argument list
|
Implementation of the cleanup method.
Flushes and closes the file handle to the logfile.
- Parameters:
kwargs - Variable argument list
|
Implementation of the processResult method.
Writes the test id and outcome to the logfile.
- Parameters:
|