net.thucydides.core.reports.json
Class JSONTestOutcomeReporter

Package class diagram package JSONTestOutcomeReporter
java.lang.Object
  extended by net.thucydides.core.reports.json.JSONTestOutcomeReporter
All Implemented Interfaces:
AcceptanceTestLoader, AcceptanceTestReporter

public class JSONTestOutcomeReporter
extends Object
implements AcceptanceTestReporter, AcceptanceTestLoader


Constructor Summary
JSONTestOutcomeReporter()
           
 
Method Summary
 File generateReportFor(TestOutcome testOutcome, TestOutcomes allTestOutcomes)
          Generate reports for a given acceptance test run.
 String getName()
          A name used to identify a given reporter.
 File getOutputDirectory()
           
 com.google.common.base.Optional<TestOutcome> loadReportFrom(File reportFile)
           
 List<TestOutcome> loadReportsFrom(File outputDirectory)
           
 void setOutputDirectory(File outputDirectory)
          Define the output directory in which the reports will be written.
 void setQualifier(String qualifier)
          Optional.
 void setResourceDirectory(String resourceDirectoryPath)
          Define or override the directory where report resources are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONTestOutcomeReporter

public JSONTestOutcomeReporter()
Method Detail

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,
                              TestOutcomes allTestOutcomes)
                       throws IOException
Description copied from interface: AcceptanceTestReporter
Generate reports for a given acceptance test run.

Specified by:
generateReportFor in interface AcceptanceTestReporter
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

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)
Description copied from interface: AcceptanceTestReporter
Define or override the directory where report resources are stored. This can be on the file system or on the classpath

Specified by:
setResourceDirectory in interface AcceptanceTestReporter

loadReportFrom

public com.google.common.base.Optional<TestOutcome> loadReportFrom(File reportFile)
                                                            throws IOException
Specified by:
loadReportFrom in interface AcceptanceTestLoader
Throws:
IOException

loadReportsFrom

public List<TestOutcome> loadReportsFrom(File outputDirectory)
                                  throws IOException
Specified by:
loadReportsFrom in interface AcceptanceTestLoader
Throws:
IOException


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