Class AbstractPage
- java.lang.Object
-
- net.masterthought.cucumber.generators.AbstractPage
-
- Direct Known Subclasses:
ErrorPage,FailuresOverviewPage,FeatureReportPage,FeaturesOverviewPage,StepsOverviewPage,TagReportPage,TagsOverviewPage,TrendsOverviewPage
public abstract class AbstractPage extends Object
Delivers common methods for page generation.- Author:
- Damian Szczepanik (damianszczepanik@github)
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationconfigurationConfiguration used for this report execution.protected org.apache.velocity.VelocityContextcontextprotected ReportResultreportResultResults of the report.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPage(ReportResult reportResult, String templateFileName, Configuration configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidgeneratePage()abstract StringgetWebPage()Returns HTML file name (with extension) for this report.protected abstract voidprepareReport()
-
-
-
Field Detail
-
context
protected final org.apache.velocity.VelocityContext context
-
reportResult
protected final ReportResult reportResult
Results of the report.
-
configuration
protected final Configuration configuration
Configuration used for this report execution.
-
-
Constructor Detail
-
AbstractPage
protected AbstractPage(ReportResult reportResult, String templateFileName, Configuration configuration)
-
-
Method Detail
-
generatePage
public void generatePage()
-
getWebPage
public abstract String getWebPage()
Returns HTML file name (with extension) for this report.- Returns:
- HTML file for the report
-
prepareReport
protected abstract void prepareReport()
-
-