|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.reporters.EmailableReporter2
public class EmailableReporter2
Reporter that generates a single-page HTML report of the test results.
Based on an earlier implementation by Paul Mendelson.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
protected List<EmailableReporter2.SuiteResult> |
suiteResults
|
protected PrintWriter |
writer
|
| Constructor Summary | |
|---|---|
EmailableReporter2()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PrintWriter writer
protected List<EmailableReporter2.SuiteResult> suiteResults
| Constructor Detail |
|---|
public EmailableReporter2()
| Method Detail |
|---|
public void generateReport(List<XmlSuite> xmlSuites,
List<ISuite> suites,
String outputDirectory)
IReporter
generateReport in interface IReporter
protected 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 void writeScenarioDetails()
protected void writeReporterMessages(List<String> reporterMessages)
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 contents
protected void writeTableData(String html,
String cssClasses)
html - the HTML contentscssClasses - the space-delimited CSS classes or null if there are no
classes to apply
protected 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 apply
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||