Class 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 Details

    • HtmlReporter

      public HtmlReporter()
  • Method Details

    • getReportContent

      public String getReportContent(org.citrusframework.report.TestResults testResults)
      Specified by:
      getReportContent in class AbstractOutputFileReporter
    • onTestStart

      public void onTestStart(org.citrusframework.TestCase test)
      Specified by:
      onTestStart in interface org.citrusframework.report.TestListener
    • onTestExecutionEnd

      public void onTestExecutionEnd(org.citrusframework.TestCase test)
      Specified by:
      onTestExecutionEnd in interface org.citrusframework.report.TestListener
    • onTestSuccess

      public void onTestSuccess(org.citrusframework.TestCase test)
      Specified by:
      onTestSuccess in interface org.citrusframework.report.TestListener
    • onTestFailure

      public void onTestFailure(org.citrusframework.TestCase test, Throwable cause)
      Specified by:
      onTestFailure in interface org.citrusframework.report.TestListener
    • onTestSkipped

      public void onTestSkipped(org.citrusframework.TestCase test)
      Specified by:
      onTestSkipped in interface org.citrusframework.report.TestListener
    • setLogo

      public void setLogo(String logo)
      Sets the logo.
      Parameters:
      logo - the logo to set
    • getReportDirectory

      public String getReportDirectory()
      Description copied from class: AbstractTestReporter
      Gets the reportDirectory.
      Overrides:
      getReportDirectory in class AbstractTestReporter
      Returns:
    • setReportFileName

      public void setReportFileName(String reportFileName)
      Sets the reportFileName property.
    • getReportFileName

      public String getReportFileName()
      Gets the reportFileName.
      Specified by:
      getReportFileName in class AbstractOutputFileReporter
    • setDateFormat

      public void setDateFormat(DateFormat dateFormat)
      Sets the dateFormat property.
    • setReportTemplate

      public void setReportTemplate(String reportTemplate)
      Sets the reportTemplate property.
    • setTestDetailTemplate

      public void setTestDetailTemplate(String testDetailTemplate)
      Sets the testDetailTemplate property.
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets the enabled property.
    • isEnabled

      protected boolean isEnabled()
      Specified by:
      isEnabled in class AbstractOutputFileReporter