Package org.testng.reporters
Class EmailableReporter
- java.lang.Object
-
- org.testng.reporters.EmailableReporter
-
- All Implemented Interfaces:
IReporter,ITestNGListener
public class EmailableReporter extends Object implements IReporter
Reported designed to render self-contained HTML top down view of a testing suite.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description EmailableReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PrintWritercreateWriter(String outdir)protected voidendHtml(PrintWriter out)Finishes HTML streamprotected voidgenerateExceptionReport(Throwable exception, ITestNGMethod method)protected voidgenerateMethodDetailReport(List<ISuite> suites)Creates a section showing known results for each methodprotected voidgenerateMethodSummaryReport(List<ISuite> suites)Creates a table showing the highlights of each test method with links to the method detailsvoidgenerateReport(List<XmlSuite> xml, List<ISuite> suites, String outdir)Creates summary of the runvoidgenerateSuiteSummaryReport(List<ISuite> suites)StringgetFileName()voidsetFileName(String fileName)protected voidstartHtml(PrintWriter out)Starts HTML stream
-
-
-
Method Detail
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
generateReport
public void generateReport(List<XmlSuite> xml, List<ISuite> suites, String outdir)
Creates summary of the run- Specified by:
generateReportin interfaceIReporter
-
createWriter
protected PrintWriter createWriter(String outdir) throws IOException
- Throws:
IOException
-
generateMethodSummaryReport
protected void generateMethodSummaryReport(List<ISuite> suites)
Creates a table showing the highlights of each test method with links to the method details
-
generateMethodDetailReport
protected void generateMethodDetailReport(List<ISuite> suites)
Creates a section showing known results for each method
-
generateExceptionReport
protected void generateExceptionReport(Throwable exception, ITestNGMethod method)
-
startHtml
protected void startHtml(PrintWriter out)
Starts HTML stream
-
endHtml
protected void endHtml(PrintWriter out)
Finishes HTML stream
-
-