Package net.thucydides.core.reports.html
Class HtmlReporter
- java.lang.Object
-
- net.thucydides.core.reports.ThucydidesReporter
-
- net.thucydides.core.reports.html.HtmlReporter
-
- Direct Known Subclasses:
HtmlAcceptanceTestReporter,HtmlAggregateStoryReporter
public abstract class HtmlReporter extends ThucydidesReporter
An HTML report generates reports in a given directory and uses resources (images,...) from another.- Author:
- johnsmart
-
-
Field Summary
Fields Modifier and Type Field Description protected ConsoleColorscoloredprotected static StringTIMESTAMP_FORMAT
-
Constructor Summary
Constructors Constructor Description HtmlReporter()HtmlReporter(EnvironmentVariables environmentVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTimestamp(TestOutcome testOutcome, Map<String,Object> context)protected voidcopyResourcesToOutputDirectory()protected voidcopyTestResultsToOutputDirectory()protected EnvironmentVariablesgetEnvironmentVariables()StringgetResourceDirectory()protected MergermergeTemplate(String templateFile)voidsetResourceDirectory(String resourceDirectory)Resources such as CSS stylesheets or images.protected BooleanverboseReporting()-
Methods inherited from class net.thucydides.core.reports.ThucydidesReporter
getOutputDirectory, getSourceDirectory, setOutputDirectory, setSourceDirectory
-
-
-
-
Field Detail
-
colored
protected final ConsoleColors colored
-
TIMESTAMP_FORMAT
protected static final String TIMESTAMP_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HtmlReporter
public HtmlReporter()
-
HtmlReporter
public HtmlReporter(EnvironmentVariables environmentVariables)
-
-
Method Detail
-
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
-
copyTestResultsToOutputDirectory
protected void copyTestResultsToOutputDirectory() throws IOException- Throws:
IOException
-
addTimestamp
protected void addTimestamp(TestOutcome testOutcome, Map<String,Object> context)
-
verboseReporting
protected Boolean verboseReporting()
-
-