Class HtmlReporter

java.lang.Object
net.thucydides.model.reports.ThucydidesReporter
net.thucydides.core.reports.html.HtmlReporter
Direct Known Subclasses:
HtmlAcceptanceTestReporter, HtmlAggregateStoryReporter

public abstract class HtmlReporter extends net.thucydides.model.reports.ThucydidesReporter
An HTML report generates reports in a given directory and uses resources (images,...) from another.
Author:
johnsmart
  • Field Details

    • environmentVariables

      protected final net.thucydides.model.util.EnvironmentVariables environmentVariables
    • colored

      protected final net.thucydides.model.logging.ConsoleColors colored
    • TIMESTAMP_FORMAT

      protected static final String TIMESTAMP_FORMAT
      See Also:
    • READABLE_TIMESTAMP_FORMAT

      protected static final String READABLE_TIMESTAMP_FORMAT
      See Also:
  • Constructor Details

    • HtmlReporter

      public HtmlReporter()
    • HtmlReporter

      public HtmlReporter(net.thucydides.model.util.EnvironmentVariables environmentVariables)
  • Method Details

    • setResourceDirectory

      public void setResourceDirectory(String resourceDirectory)
      Resources such as CSS stylesheets or images.
    • getResourceDirectory

      public String getResourceDirectory()
    • getEnvironmentVariables

      protected net.thucydides.model.util.EnvironmentVariables getEnvironmentVariables()
    • copyResourcesToOutputDirectory

      protected void copyResourcesToOutputDirectory() throws IOException
      Throws:
      IOException
    • copyTestResultsToOutputDirectory

      protected void copyTestResultsToOutputDirectory() throws IOException
      Throws:
      IOException
    • addTimestamp

      protected void addTimestamp(net.thucydides.model.domain.TestOutcome testOutcome, Map<String,Object> context)
    • mergeTemplate

      protected Merger mergeTemplate(String templateFile)
    • verboseReporting

      protected Boolean verboseReporting()