net.thucydides.core.reports.xml
Class XMLTestOutcomeReporter

Package class diagram package XMLTestOutcomeReporter
java.lang.Object
  extended by net.thucydides.core.reports.xml.XMLTestOutcomeReporter
All Implemented Interfaces:
AcceptanceTestReporter

public class XMLTestOutcomeReporter
extends Object
implements AcceptanceTestReporter

Generates acceptance test results in XML form.


Constructor Summary
XMLTestOutcomeReporter()
           
 
Method Summary
 File generateReportFor(TestOutcome testOutcome)
          Generate an XML report for a given test run.
 String getName()
          A name used to identify a given reporter.
 File getOutputDirectory()
           
 com.google.common.base.Optional<TestOutcome> loadReportFrom(File reportFile)
           
 void setOutputDirectory(File outputDirectory)
          Define the output directory in which the reports will be written.
 void setQualifier(String qualifier)
          Optional.
 void setResourceDirectory(String resourceDirectoryPath)
          We don't need any resources for XML reports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTestOutcomeReporter

public XMLTestOutcomeReporter()
Method Detail

setQualifier

public void setQualifier(String qualifier)
Description copied from interface: AcceptanceTestReporter
Optional. Used to distinguish the report generated from other similar reports.

Specified by:
setQualifier in interface AcceptanceTestReporter

setResourceDirectory

public void setResourceDirectory(String resourceDirectoryPath)
We don't need any resources for XML reports.

Specified by:
setResourceDirectory in interface AcceptanceTestReporter

getName

public String getName()
Description copied from interface: AcceptanceTestReporter
A name used to identify a given reporter.

Specified by:
getName in interface AcceptanceTestReporter

generateReportFor

public File generateReportFor(TestOutcome testOutcome)
                       throws IOException
Generate an XML report for a given test run.

Specified by:
generateReportFor in interface AcceptanceTestReporter
Throws:
IOException

loadReportFrom

public com.google.common.base.Optional<TestOutcome> loadReportFrom(File reportFile)
                                                            throws IOException
Throws:
IOException

getOutputDirectory

public File getOutputDirectory()

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
Description copied from interface: AcceptanceTestReporter
Define the output directory in which the reports will be written.

Specified by:
setOutputDirectory in interface AcceptanceTestReporter


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.