public class EmailableReporter2 extends Object implements IReporter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EmailableReporter2.ClassResult
Groups
EmailableReporter2.MethodResults by class. |
protected static class |
EmailableReporter2.MethodResult
Groups test results by method.
|
protected static class |
EmailableReporter2.SuiteResult
Groups
EmailableReporter2.TestResults by suite. |
protected static class |
EmailableReporter2.TestResult
Groups
EmailableReporter2.ClassResults by test, type (configuration or test), and status. |
| Modifier and Type | Field and Description |
|---|---|
protected List<EmailableReporter2.SuiteResult> |
suiteResults |
protected PrintWriter |
writer |
| Constructor and Description |
|---|
EmailableReporter2() |
| Modifier and Type | Method and Description |
|---|---|
protected PrintWriter |
createWriter(String outdir) |
void |
generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory)
Generate a report for the given suites into the specified output directory.
|
String |
getFileName() |
protected String |
getFormattedStartTime(long startTimeInMillisFromEpoch) |
void |
setFileName(String fileName) |
protected void |
writeBody() |
protected void |
writeDocumentEnd() |
protected void |
writeDocumentStart() |
protected void |
writeHead() |
protected void |
writeReporterMessages(List<String> reporterMessages) |
protected void |
writeScenarioDetails()
Writes the details for all test scenarios.
|
protected void |
writeScenarioSummary()
Writes a summary of all the test scenarios.
|
protected void |
writeStackTrace(Throwable throwable) |
protected void |
writeStylesheet() |
protected void |
writeSuiteSummary() |
protected void |
writeTableData(String html)
Writes a TD element with the specified contents.
|
protected void |
writeTableData(String html,
String cssClasses)
Writes a TD element with the specified contents and CSS class names.
|
protected void |
writeTableHeader(String html,
String cssClasses)
Writes a TH element with the specified contents and CSS class names.
|
protected void |
writeTag(String tag,
String html,
String cssClasses)
Writes an arbitrary HTML element with the specified contents and CSS class names.
|
protected PrintWriter writer
protected final List<EmailableReporter2.SuiteResult> suiteResults
public void setFileName(String fileName)
public String getFileName()
public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
IReportergenerateReport in interface IReporterxmlSuites - The list of XmlSuitesuites - The list of ISuiteoutputDirectory - The output directoryprotected PrintWriter createWriter(String outdir) throws IOException
IOExceptionprotected void writeDocumentStart()
protected void writeHead()
protected void writeStylesheet()
protected void writeBody()
protected void writeDocumentEnd()
protected void writeSuiteSummary()
protected void writeScenarioSummary()
protected String getFormattedStartTime(long startTimeInMillisFromEpoch)
protected void writeScenarioDetails()
protected void writeStackTrace(Throwable throwable)
protected void writeTableHeader(String html, String cssClasses)
html - the HTML contentscssClasses - the space-delimited CSS classes or null if there are no classes to applyprotected void writeTableData(String html)
html - the HTML contentsprotected void writeTableData(String html, String cssClasses)
html - the HTML contentscssClasses - the space-delimited CSS classes or null if there are no classes to applyprotected void writeTag(String tag, String html, String cssClasses)
tag - the tag namehtml - the HTML contentscssClasses - the space-delimited CSS classes or null if there are no classes to applyCopyright © 2025. All rights reserved.