net.thucydides.core.reports.html
Class HtmlReporter

Package class diagram package HtmlReporter
java.lang.Object
  extended by net.thucydides.core.reports.html.HtmlReporter
Direct Known Subclasses:
HtmlAcceptanceTestReporter, HtmlAggregateStoryReporter

public abstract class HtmlReporter
extends Object

An HTML report generates reports in a given directory and uses resources (images,...) from another.

Author:
johnsmart

Nested Class Summary
protected  class HtmlReporter.Merger
           
 
Constructor Summary
HtmlReporter()
           
HtmlReporter(EnvironmentVariables environmentVariables)
           
 
Method Summary
protected  void copyResourcesToOutputDirectory()
           
protected  EnvironmentVariables getEnvironmentVariables()
           
 File getOutputDirectory()
          HTML reports will be generated here.
 String getResourceDirectory()
           
protected  HtmlReporter.Merger mergeTemplate(String templateFile)
           
 void setOutputDirectory(File outputDirectory)
           
 void setResourceDirectory(String resourceDirectory)
          Resources such as CSS stylesheets or images.
protected  File writeReportToOutputDirectory(String reportFilename, String htmlContents)
          Write the actual HTML report to a file with the specified name in the output directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlReporter

public HtmlReporter()

HtmlReporter

public HtmlReporter(EnvironmentVariables environmentVariables)
Method Detail

getOutputDirectory

public File getOutputDirectory()
HTML reports will be generated here.


setOutputDirectory

public void setOutputDirectory(File outputDirectory)

setResourceDirectory

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


getResourceDirectory

public String getResourceDirectory()

getEnvironmentVariables

protected EnvironmentVariables getEnvironmentVariables()

copyResourcesToOutputDirectory

protected void copyResourcesToOutputDirectory()
                                       throws IOException
Throws:
IOException

writeReportToOutputDirectory

protected File writeReportToOutputDirectory(String reportFilename,
                                            String htmlContents)
                                     throws IOException
Write the actual HTML report to a file with the specified name in the output directory.

Throws:
IOException

mergeTemplate

protected HtmlReporter.Merger mergeTemplate(String templateFile)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.