org.jtiger.report.xml
Class XmlFixtureResultsHandler

java.lang.Object
  extended by org.jtiger.report.xml.XmlFixtureResultsHandler
All Implemented Interfaces:
FixtureResultsHandler

public final class XmlFixtureResultsHandler
extends Object
implements FixtureResultsHandler

A result handler that produces a XML report of test run results. The report is written to a file which is passed in the parameters to the handleResult method.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
Author:
Tony Morris

Constructor Summary
XmlFixtureResultsHandler()
          Create a default XmlFixtureResultsHandler.
 
Method Summary
 void handleResult(FixtureResults results, ReadOnlyArray<String> params)
          Write a XML report of the given test run results to a file which is passed in the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFixtureResultsHandler

public XmlFixtureResultsHandler()
Create a default XmlFixtureResultsHandler.

Method Detail

handleResult

public void handleResult(FixtureResults results,
                         ReadOnlyArray<String> params)
                  throws FixtureResultsHandlerException
Write a XML report of the given test run results to a file which is passed in the parameters. If the params are empty, the current directory is used to write the report to in a file called 'result.xml'.

Specified by:
handleResult in interface FixtureResultsHandler
Parameters:
results - The test run results to produce the XML report of.
params - The parameters that contain at least one parameter which is the file to write the XML report to otherwise the current directory is used.
Throws:
FixtureResultsHandlerException - If an error occurs while writing the XML report.