Package net.thucydides.core.reports.json
Class JSONTestOutcomeReporter
java.lang.Object
net.thucydides.core.reports.json.JSONTestOutcomeReporter
- All Implemented Interfaces:
AcceptanceTestLoader,AcceptanceTestReporter
public class JSONTestOutcomeReporter extends java.lang.Object implements AcceptanceTestReporter, AcceptanceTestLoader
-
Constructor Summary
Constructors Constructor Description JSONTestOutcomeReporter() -
Method Summary
Modifier and Type Method Description java.io.FilegenerateReportFor(TestOutcome testOutcome)Generate reports for a given acceptance test run.java.util.Optional<OutcomeFormat>getFormat()Return the format that this reporter generates, if it is a format that can be activated or deactivated via the output.formats configuration property.java.lang.StringgetName()A name used to identify a given reporter.java.io.FilegetOutputDirectory()java.util.Optional<TestOutcome>loadReportFrom(java.io.File reportFile)java.util.Optional<TestOutcome>loadReportFrom(java.nio.file.Path reportFile)java.util.List<TestOutcome>loadReportsFrom(java.io.File outputDirectory)java.util.List<TestOutcome>loadReportsFrom(java.nio.file.Path outputDirectory)voidsetOutputDirectory(java.io.File outputDirectory)Define the output directory in which the reports will be written.voidsetQualifier(java.lang.String qualifier)Optional.voidsetResourceDirectory(java.lang.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 Details
-
JSONTestOutcomeReporter
public JSONTestOutcomeReporter()
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from interface:AcceptanceTestReporterA name used to identify a given reporter.- Specified by:
getNamein interfaceAcceptanceTestReporter
-
generateReportFor
Description copied from interface:AcceptanceTestReporterGenerate reports for a given acceptance test run.- Specified by:
generateReportForin interfaceAcceptanceTestReporter- Throws:
java.io.IOException
-
getOutputDirectory
public java.io.File getOutputDirectory() -
setOutputDirectory
public void setOutputDirectory(java.io.File outputDirectory)Description copied from interface:AcceptanceTestReporterDefine the output directory in which the reports will be written.- Specified by:
setOutputDirectoryin interfaceAcceptanceTestReporter
-
setQualifier
public void setQualifier(java.lang.String qualifier)Description copied from interface:AcceptanceTestReporterOptional. Used to distinguish the report generated from other similar reports.- Specified by:
setQualifierin interfaceAcceptanceTestReporter
-
setResourceDirectory
public void setResourceDirectory(java.lang.String resourceDirectoryPath)Description copied from interface:AcceptanceTestReporterDefine or override the directory where report resources are stored. This can be on the file system or on the classpath- Specified by:
setResourceDirectoryin interfaceAcceptanceTestReporter
-
loadReportFrom
- Specified by:
loadReportFromin interfaceAcceptanceTestLoader
-
loadReportFrom
- Specified by:
loadReportFromin interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFromin interfaceAcceptanceTestLoader
-
loadReportsFrom
- Specified by:
loadReportsFromin interfaceAcceptanceTestLoader
-
getFormat
Description copied from interface:AcceptanceTestReporterReturn the format that this reporter generates, if it is a format that can be activated or deactivated via the output.formats configuration property.- Specified by:
getFormatin interfaceAcceptanceTestLoader- Specified by:
getFormatin interfaceAcceptanceTestReporter
-