public abstract class HtmlReporter extends ThucydidesReporter
| Modifier and Type | Class and Description |
|---|---|
protected class |
HtmlReporter.Merger |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
TIMESTAMP_FORMAT |
| Constructor and Description |
|---|
HtmlReporter() |
HtmlReporter(EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTimestamp(TestOutcome testOutcome,
Map<String,Object> context) |
protected void |
copyResourcesToOutputDirectory() |
protected void |
copyTestResultsToOutputDirectory() |
protected org.joda.time.DateTime |
currentTime() |
protected EnvironmentVariables |
getEnvironmentVariables() |
String |
getResourceDirectory() |
protected HtmlReporter.Merger |
mergeTemplate(String templateFile) |
void |
setResourceDirectory(String resourceDirectory)
Resources such as CSS stylesheets or images.
|
protected String |
timestampFrom(org.joda.time.DateTime startTime) |
protected String |
timestampFrom(TestOutcomes rootOutcomes) |
protected File |
writeReportToOutputDirectory(String reportFilename,
String htmlContents)
Write the actual HTML report to a file with the specified name in the output directory.
|
getOutputDirectory, getSourceDirectory, setOutputDirectory, setSourceDirectoryprotected static final String TIMESTAMP_FORMAT
public HtmlReporter()
public HtmlReporter(EnvironmentVariables environmentVariables)
public void setResourceDirectory(String resourceDirectory)
public String getResourceDirectory()
protected EnvironmentVariables getEnvironmentVariables()
protected void copyResourcesToOutputDirectory()
throws IOException
IOExceptionprotected void copyTestResultsToOutputDirectory()
throws IOException
IOExceptionprotected File writeReportToOutputDirectory(String reportFilename, String htmlContents) throws IOException
IOExceptionprotected String timestampFrom(TestOutcomes rootOutcomes)
protected String timestampFrom(org.joda.time.DateTime startTime)
protected void addTimestamp(TestOutcome testOutcome, Map<String,Object> context)
protected org.joda.time.DateTime currentTime()
protected HtmlReporter.Merger mergeTemplate(String templateFile)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.