net.thucydides.core.reports.html
Class HtmlReporter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlReporter
public HtmlReporter()
HtmlReporter
public HtmlReporter(EnvironmentVariables environmentVariables)
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.