Package org.testng.reporters
Class EmailableReporter
- java.lang.Object
-
- org.testng.reporters.EmailableReporter
-
- All Implemented Interfaces:
IReporter
,ITestNGListener
public class EmailableReporter extends java.lang.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 java.io.PrintWriter
createWriter(java.lang.String outdir)
protected void
endHtml(java.io.PrintWriter out)
Finishes HTML streamprotected void
generateExceptionReport(java.lang.Throwable exception, ITestNGMethod method)
protected void
generateMethodDetailReport(java.util.List<ISuite> suites)
Creates a section showing known results for each methodprotected void
generateMethodSummaryReport(java.util.List<ISuite> suites)
Creates a table showing the highlights of each test method with links to the method detailsvoid
generateReport(java.util.List<XmlSuite> xml, java.util.List<ISuite> suites, java.lang.String outdir)
Creates summary of the runvoid
generateSuiteSummaryReport(java.util.List<ISuite> suites)
java.lang.String
getFileName()
void
setFileName(java.lang.String fileName)
protected void
startHtml(java.io.PrintWriter out)
Starts HTML stream
-
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
-
setFileName
public void setFileName(java.lang.String fileName)
-
generateReport
public void generateReport(java.util.List<XmlSuite> xml, java.util.List<ISuite> suites, java.lang.String outdir)
Creates summary of the run- Specified by:
generateReport
in interfaceIReporter
-
createWriter
protected java.io.PrintWriter createWriter(java.lang.String outdir) throws java.io.IOException
- Throws:
java.io.IOException
-
generateMethodSummaryReport
protected void generateMethodSummaryReport(java.util.List<ISuite> suites)
Creates a table showing the highlights of each test method with links to the method details
-
generateMethodDetailReport
protected void generateMethodDetailReport(java.util.List<ISuite> suites)
Creates a section showing known results for each method
-
generateExceptionReport
protected void generateExceptionReport(java.lang.Throwable exception, ITestNGMethod method)
-
generateSuiteSummaryReport
public void generateSuiteSummaryReport(java.util.List<ISuite> suites)
-
startHtml
protected void startHtml(java.io.PrintWriter out)
Starts HTML stream
-
endHtml
protected void endHtml(java.io.PrintWriter out)
Finishes HTML stream
-
-