org.testng.reporters
Class EmailableReporter

java.lang.Object
  extended by 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
Version:
$Revision: 719 $
Author:
Paul Mendelson

Constructor Summary
EmailableReporter()
           
 
Method Summary
protected  PrintWriter createWriter(String outdir)
           
protected  void endHtml(PrintWriter out)
          Finishes HTML stream
protected  void generateExceptionReport(Throwable exception, ITestNGMethod method)
           
protected  void generateMethodDetailReport(List<ISuite> suites)
          Creates a section showing known results for each method
protected  void generateMethodSummaryReport(List<ISuite> suites)
          Creates a table showing the highlights of each test method with links to the method details
 void generateReport(List<XmlSuite> xml, List<ISuite> suites, String outdir)
          Creates summary of the run
 void generateSuiteSummaryReport(List<ISuite> suites)
           
protected  void startHtml(PrintWriter out)
          Starts HTML stream
protected  void writeStyle(String[] formats, String[] targets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailableReporter

public EmailableReporter()
Method Detail

generateReport

public void generateReport(List<XmlSuite> xml,
                           List<ISuite> suites,
                           String outdir)
Creates summary of the run

Specified by:
generateReport in interface IReporter

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)

generateSuiteSummaryReport

public void generateSuiteSummaryReport(List<ISuite> suites)

writeStyle

protected void writeStyle(String[] formats,
                          String[] targets)

startHtml

protected void startHtml(PrintWriter out)
Starts HTML stream


endHtml

protected void endHtml(PrintWriter out)
Finishes HTML stream



Copyright © 2012. All Rights Reserved.