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 PrintWriter
createWriter(String outdir)
protected void
endHtml(PrintWriter out)
Finishes HTML streamprotected void
generateExceptionReport(Throwable exception, ITestNGMethod method)
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
generateReport(List<XmlSuite> xml, List<ISuite> suites, String outdir)
Creates summary of the runvoid
generateSuiteSummaryReport(List<ISuite> suites)
String
getFileName()
void
setFileName(String fileName)
protected void
startHtml(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:
generateReport
in 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
-
-