Class ScenarioReportCreator
java.lang.Object
de.qytera.qtaf.htmlreport.creator.ReportCreator
de.qytera.qtaf.htmlreport.creator.ScenarioReportCreator
- All Implemented Interfaces:
IReportCreator
HTML report creator for scenarios.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringRoot template.protected TestScenarioLogCollectionScenario Log Collection.Fields inherited from class de.qytera.qtaf.htmlreport.creator.ReportCreator
filename -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateReport(TestSuiteLogCollection logCollection, TestScenarioLogCollection scenarioLogCollection) Create scenario report.getRenderedTemplate(TestSuiteLogCollection logCollection, TestScenarioLogCollection scenarioLogCollection) Create a rendered template based on the provided collections.getReportPath(TestSuiteLogCollection logCollection) Build report path.protected StringGet root template path.getTemplateContext(TestSuiteLogCollection logCollection) Get template context.Methods inherited from class de.qytera.qtaf.htmlreport.creator.ReportCreator
createReport, getPebbleTemplate, getRenderedTemplate, persistRenderedTemplate, renderTemplate
-
Field Details
-
rootTemplate
Root template. -
scenarioLogCollection
Scenario Log Collection.
-
-
Constructor Details
-
ScenarioReportCreator
public ScenarioReportCreator()
-
-
Method Details
-
createReport
public boolean createReport(TestSuiteLogCollection logCollection, TestScenarioLogCollection scenarioLogCollection) Create scenario report.- Parameters:
logCollection- Log collectionscenarioLogCollection- Scenario Log Collection- Returns:
- true on success
-
getRenderedTemplate
public Writer getRenderedTemplate(TestSuiteLogCollection logCollection, TestScenarioLogCollection scenarioLogCollection) Create a rendered template based on the provided collections.- Parameters:
logCollection- the log collectionscenarioLogCollection- the scenario log collection- Returns:
- a writer instance
-
getTemplateContext
Description copied from class:ReportCreatorGet template context.- Overrides:
getTemplateContextin classReportCreator- Parameters:
logCollection- Logs- Returns:
- Template context
-
getReportPath
Description copied from class:ReportCreatorBuild report path.- Overrides:
getReportPathin classReportCreator- Parameters:
logCollection- the log collection- Returns:
- report path
-
getRootTemplate
Description copied from class:ReportCreatorGet root template path.- Overrides:
getRootTemplatein classReportCreator- Returns:
- root template path
-