Package org.citrusframework.report
Class HtmlReporter
java.lang.Object
org.citrusframework.report.AbstractTestReporter
org.citrusframework.report.AbstractOutputFileReporter
org.citrusframework.report.HtmlReporter
- All Implemented Interfaces:
org.citrusframework.report.TestListener,org.citrusframework.report.TestReporter
public class HtmlReporter
extends AbstractOutputFileReporter
implements org.citrusframework.report.TestListener
Basic logging reporter generating a HTML report with detailed test results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReportContent(org.citrusframework.report.TestResults testResults) Gets the reportDirectory.Gets the reportFileName.protected booleanvoidonTestExecutionEnd(org.citrusframework.TestCase test) voidonTestFailure(org.citrusframework.TestCase test, Throwable cause) voidonTestSkipped(org.citrusframework.TestCase test) voidonTestStart(org.citrusframework.TestCase test) voidonTestSuccess(org.citrusframework.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, setReportDirectoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.report.TestListener
onAfterTestEnd, onAfterTestStart, onBeforeTestEnd, onBeforeTestStart, onFinalActionsEnd, onFinalActionsStart, onTestEnd, onTestExecutionStart, onTestFinish
-
Constructor Details
-
HtmlReporter
public HtmlReporter()
-
-
Method Details
-
getReportContent
- Specified by:
getReportContentin classAbstractOutputFileReporter
-
onTestStart
public void onTestStart(org.citrusframework.TestCase test) - Specified by:
onTestStartin interfaceorg.citrusframework.report.TestListener
-
onTestExecutionEnd
public void onTestExecutionEnd(org.citrusframework.TestCase test) - Specified by:
onTestExecutionEndin interfaceorg.citrusframework.report.TestListener
-
onTestSuccess
public void onTestSuccess(org.citrusframework.TestCase test) - Specified by:
onTestSuccessin interfaceorg.citrusframework.report.TestListener
-
onTestFailure
- Specified by:
onTestFailurein interfaceorg.citrusframework.report.TestListener
-
onTestSkipped
public void onTestSkipped(org.citrusframework.TestCase test) - Specified by:
onTestSkippedin interfaceorg.citrusframework.report.TestListener
-
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. -
getReportFileName
Gets the reportFileName.- Specified by:
getReportFileNamein classAbstractOutputFileReporter
-
setDateFormat
Sets the dateFormat property. -
setReportTemplate
Sets the reportTemplate property. -
setTestDetailTemplate
Sets the testDetailTemplate property. -
setEnabled
public void setEnabled(boolean enabled) Sets the enabled property. -
isEnabled
protected boolean isEnabled()- Specified by:
isEnabledin classAbstractOutputFileReporter
-