Package org.testng.reporters
Class EmailableReporter
java.lang.Object
org.testng.reporters.EmailableReporter
- All Implemented Interfaces:
IReporter
,ITestNGListener
Reported designed to render self-contained HTML top down view of a testing suite.
- Since:
- 5.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWriter
createWriter
(String outdir) protected void
endHtml
(PrintWriter out) protected void
generateExceptionReport
(Throwable exception) protected void
generateMethodDetailReport
(List<ISuite> suites) Creates a section showing known results for each methodprotected void
generateMethodSummaryReport
(List<ISuite> suites) Creates a table showing the highlights of each test method with links to the method detailsvoid
Creates summary of the runvoid
generateSuiteSummaryReport
(List<ISuite> suites) void
setFileName
(String fileName) protected void
startHtml
(PrintWriter out)
-
Constructor Details
-
EmailableReporter
public EmailableReporter()
-
-
Method Details
-
getFileName
-
setFileName
-
generateReport
Creates summary of the run- Specified by:
generateReport
in interfaceIReporter
- Parameters:
xml
- The list ofXmlSuite
suites
- The list ofISuite
outdir
- The output directory
-
createWriter
- Throws:
IOException
-
generateMethodSummaryReport
Creates a table showing the highlights of each test method with links to the method details- Parameters:
suites
- The run suites
-
generateMethodDetailReport
Creates a section showing known results for each method- Parameters:
suites
- All suites
-
generateExceptionReport
-
generateSuiteSummaryReport
-
startHtml
-
endHtml
-