Package org.citrusframework.report
Class HtmlReporter
java.lang.Object
org.citrusframework.report.AbstractTestReporter
org.citrusframework.report.AbstractOutputFileReporter
org.citrusframework.report.HtmlReporter
- All Implemented Interfaces:
TestListener,TestReporter
Basic logging reporter generating a HTML report with detailed test results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReportContent(TestResults testResults) Gets the reportDirectory.Gets the reportFileName.protected booleanvoidonTestFailure(TestCase test, Throwable cause) voidonTestFinish(TestCase test) voidonTestSkipped(TestCase test) voidonTestStart(TestCase test) voidonTestSuccess(TestCase test) voidsetDateFormat(DateFormat dateFormat) Sets the dateFormat property.voidsetEnabled(boolean enabled) Sets the enabled property.voidSets the logo.voidsetReportFileName(String reportFileName) Sets the reportFileName property.voidsetReportTemplate(String reportTemplate) Sets the reportTemplate property.voidsetTestDetailTemplate(String testDetailTemplate) Sets the testDetailTemplate property.Methods inherited from class org.citrusframework.report.AbstractOutputFileReporter
generateMethods inherited from class org.citrusframework.report.AbstractTestReporter
generateReport, isIgnoreErrors, setIgnoreErrors, setReportDirectory
-
Constructor Details
-
HtmlReporter
public HtmlReporter()
-
-
Method Details
-
getReportContent
- Specified by:
getReportContentin classAbstractOutputFileReporter
-
onTestStart
- Specified by:
onTestStartin interfaceTestListener
-
onTestFinish
- Specified by:
onTestFinishin interfaceTestListener
-
onTestSuccess
- Specified by:
onTestSuccessin interfaceTestListener
-
onTestFailure
- Specified by:
onTestFailurein interfaceTestListener
-
onTestSkipped
- Specified by:
onTestSkippedin interfaceTestListener
-
setLogo
Sets the logo.- Parameters:
logo- the logo to set
-
getReportDirectory
Description copied from class:AbstractTestReporterGets the reportDirectory.- Overrides:
getReportDirectoryin classAbstractTestReporter- Returns:
-
setReportFileName
Sets the reportFileName property.- Parameters:
reportFileName-
-
getReportFileName
Gets the reportFileName.- Specified by:
getReportFileNamein classAbstractOutputFileReporter- Returns:
-
setDateFormat
Sets the dateFormat property.- Parameters:
dateFormat-
-
setReportTemplate
Sets the reportTemplate property.- Parameters:
reportTemplate-
-
setTestDetailTemplate
Sets the testDetailTemplate property.- Parameters:
testDetailTemplate-
-
setEnabled
public void setEnabled(boolean enabled) Sets the enabled property.- Parameters:
enabled-
-
isEnabled
protected boolean isEnabled()- Specified by:
isEnabledin classAbstractOutputFileReporter
-