Package net.thucydides.core.reports.html
Class BaseReportingTask
- java.lang.Object
-
- net.thucydides.core.reports.html.BaseReportingTask
-
- All Implemented Interfaces:
ReportingTask
- Direct Known Subclasses:
AggregateReportingTask,ErrorTypeReportingTask,ResultReportingTask,TagReportingTask,TagTypeReportingTask,TextSummaryReportTask
public abstract class BaseReportingTask extends Object implements ReportingTask
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description BaseReportingTask(FreemarkerContext freemarker, EnvironmentVariables environmentVariables, File outputDirectory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Optional<String>generateCSVReportFor(TestOutcomes testOutcomes, String reportName)protected voidgenerateReportPage(Map<String,Object> context, String template, String outputFile)abstract voidgenerateReports()protected MergermergeTemplate(String templateFile)
-
-
-
Constructor Detail
-
BaseReportingTask
public BaseReportingTask(FreemarkerContext freemarker, EnvironmentVariables environmentVariables, File outputDirectory)
-
-
Method Detail
-
generateReports
public abstract void generateReports() throws IOException- Specified by:
generateReportsin interfaceReportingTask- Throws:
IOException
-
generateReportPage
protected void generateReportPage(Map<String,Object> context, String template, String outputFile) throws IOException
- Throws:
IOException
-
generateCSVReportFor
protected Optional<String> generateCSVReportFor(TestOutcomes testOutcomes, String reportName) throws IOException
- Throws:
IOException
-
-