Package com.consol.citrus.report
Class HtmlReporter
- java.lang.Object
-
- com.consol.citrus.report.AbstractTestReporter
-
- com.consol.citrus.report.AbstractOutputFileReporter
-
- com.consol.citrus.report.HtmlReporter
-
- All Implemented Interfaces:
com.consol.citrus.report.TestListener
,com.consol.citrus.report.TestReporter
public class HtmlReporter extends AbstractOutputFileReporter implements com.consol.citrus.report.TestListener
Basic logging reporter generating a HTML report with detailed test results.- Author:
- Philipp Komninos, Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description HtmlReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getReportContent(com.consol.citrus.report.TestResults testResults)
String
getReportDirectory()
Gets the reportDirectory.String
getReportFileName()
Gets the reportFileName.protected boolean
isEnabled()
void
onTestFailure(com.consol.citrus.TestCase test, Throwable cause)
void
onTestFinish(com.consol.citrus.TestCase test)
void
onTestSkipped(com.consol.citrus.TestCase test)
void
onTestStart(com.consol.citrus.TestCase test)
void
onTestSuccess(com.consol.citrus.TestCase test)
void
setDateFormat(DateFormat dateFormat)
Sets the dateFormat property.void
setEnabled(boolean enabled)
Sets the enabled property.void
setLogo(String logo)
Sets the logo.void
setOutputDirectory(String outputDirectory)
Deprecated.in favor of usingAbstractTestReporter.setReportDirectory(java.lang.String)
.void
setReportFileName(String reportFileName)
Sets the reportFileName property.void
setReportTemplate(String reportTemplate)
Sets the reportTemplate property.void
setTestDetailTemplate(String testDetailTemplate)
Sets the testDetailTemplate property.-
Methods inherited from class com.consol.citrus.report.AbstractOutputFileReporter
generate
-
Methods inherited from class com.consol.citrus.report.AbstractTestReporter
generateReport, isIgnoreErrors, setIgnoreErrors, setReportDirectory
-
-
-
-
Method Detail
-
getReportContent
public String getReportContent(com.consol.citrus.report.TestResults testResults)
- Specified by:
getReportContent
in classAbstractOutputFileReporter
-
onTestStart
public void onTestStart(com.consol.citrus.TestCase test)
- Specified by:
onTestStart
in interfacecom.consol.citrus.report.TestListener
-
onTestFinish
public void onTestFinish(com.consol.citrus.TestCase test)
- Specified by:
onTestFinish
in interfacecom.consol.citrus.report.TestListener
-
onTestSuccess
public void onTestSuccess(com.consol.citrus.TestCase test)
- Specified by:
onTestSuccess
in interfacecom.consol.citrus.report.TestListener
-
onTestFailure
public void onTestFailure(com.consol.citrus.TestCase test, Throwable cause)
- Specified by:
onTestFailure
in interfacecom.consol.citrus.report.TestListener
-
onTestSkipped
public void onTestSkipped(com.consol.citrus.TestCase test)
- Specified by:
onTestSkipped
in interfacecom.consol.citrus.report.TestListener
-
setLogo
public void setLogo(String logo)
Sets the logo.- Parameters:
logo
- the logo to set
-
setOutputDirectory
@Deprecated public void setOutputDirectory(String outputDirectory)
Deprecated.in favor of usingAbstractTestReporter.setReportDirectory(java.lang.String)
.Sets the outputDirectory property.- Parameters:
outputDirectory
-
-
getReportDirectory
public String getReportDirectory()
Description copied from class:AbstractTestReporter
Gets the reportDirectory.- Overrides:
getReportDirectory
in classAbstractTestReporter
- Returns:
-
setReportFileName
public void setReportFileName(String reportFileName)
Sets the reportFileName property.- Parameters:
reportFileName
-
-
getReportFileName
public String getReportFileName()
Gets the reportFileName.- Specified by:
getReportFileName
in classAbstractOutputFileReporter
- Returns:
-
setDateFormat
public void setDateFormat(DateFormat dateFormat)
Sets the dateFormat property.- Parameters:
dateFormat
-
-
setReportTemplate
public void setReportTemplate(String reportTemplate)
Sets the reportTemplate property.- Parameters:
reportTemplate
-
-
setTestDetailTemplate
public void setTestDetailTemplate(String testDetailTemplate)
Sets the testDetailTemplate property.- Parameters:
testDetailTemplate
-
-
setEnabled
public void setEnabled(boolean enabled)
Sets the enabled property.- Parameters:
enabled
-
-
isEnabled
protected boolean isEnabled()
- Specified by:
isEnabled
in classAbstractOutputFileReporter
-
-