Class EmailableReporter2
java.lang.Object
org.testng.reporters.EmailableReporter2
- All Implemented Interfaces:
IReporter, ITestNGListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGroupsEmailableReporter2.MethodResults by class.protected static classGroups test results by method.protected static classGroupsEmailableReporter2.TestResults by suite.protected static classGroupsEmailableReporter2.ClassResults by test, type (configuration or test), and status. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<EmailableReporter2.SuiteResult> protected PrintWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWritercreateWriter(String outdir) voidGenerate a report for the given suites into the specified output directory.protected StringgetFormattedStartTime(long startTimeInMillisFromEpoch) voidsetFileName(String fileName) protected voidprotected voidprotected voidprotected voidprotected voidwriteReporterMessages(List<String> reporterMessages) protected voidWrites the details for all test scenarios.protected voidWrites a summary of all the test scenarios.protected voidwriteStackTrace(Throwable throwable) protected voidprotected voidprotected voidwriteTableData(String html) Writes a TD element with the specified contents.protected voidwriteTableData(String html, String cssClasses) Writes a TD element with the specified contents and CSS class names.protected voidwriteTableHeader(String html, String cssClasses) Writes a TH element with the specified contents and CSS class names.protected voidWrites an arbitrary HTML element with the specified contents and CSS class names.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ITestNGListener
isEnabled
-
Field Details
-
writer
-
suiteResults
-
-
Constructor Details
-
EmailableReporter2
public EmailableReporter2()
-
-
Method Details
-
setFileName
-
getFileName
-
generateReport
Description copied from interface:IReporterGenerate a report for the given suites into the specified output directory.- Specified by:
generateReportin interfaceIReporter- Parameters:
xmlSuites- The list ofXmlSuitesuites- The list ofISuiteoutputDirectory- The output directory
-
createWriter
- Throws:
IOException
-
writeDocumentStart
protected void writeDocumentStart() -
writeHead
protected void writeHead() -
writeStylesheet
protected void writeStylesheet() -
writeBody
protected void writeBody() -
writeDocumentEnd
protected void writeDocumentEnd() -
writeSuiteSummary
protected void writeSuiteSummary() -
writeScenarioSummary
protected void writeScenarioSummary()Writes a summary of all the test scenarios. -
getFormattedStartTime
-
writeScenarioDetails
protected void writeScenarioDetails()Writes the details for all test scenarios. -
writeReporterMessages
-
writeStackTrace
-
writeTableHeader
-
writeTableData
Writes a TD element with the specified contents.- Parameters:
html- the HTML contents
-
writeTableData
-
writeTag
-