org.testng.reporters
Class EmailableReporter

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

Constructor Summary
EmailableReporter()
           
 
Method Summary
protected  java.io.PrintWriter createWriter(java.lang.String outdir)
           
protected  void endHtml(java.io.PrintWriter out)
          Finishes HTML stream
protected  void generateExceptionReport(java.lang.Throwable exception, ITestNGMethod method)
           
protected  void generateMethodDetailReport(java.util.List<ISuite> suites)
          Creates a section showing known results for each method
protected  void generateMethodSummaryReport(java.util.List<ISuite> suites)
          Creates a table showing the highlights of each test method with links to the method details
 void generateReport(java.util.List<XmlSuite> xml, java.util.List<ISuite> suites, java.lang.String outdir)
          Creates summary of the run
 void generateSuiteSummaryReport(java.util.List<ISuite> suites)
           
protected  void startHtml(java.io.PrintWriter out)
          Starts HTML stream
protected  void writeStyle(java.lang.String[] formats, java.lang.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(java.util.List<XmlSuite> xml,
                           java.util.List<ISuite> suites,
                           java.lang.String outdir)
Creates summary of the run

Specified by:
generateReport in interface IReporter

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)

writeStyle

protected void writeStyle(java.lang.String[] formats,
                          java.lang.String[] targets)

startHtml

protected void startHtml(java.io.PrintWriter out)
Starts HTML stream


endHtml

protected void endHtml(java.io.PrintWriter out)
Finishes HTML stream



Copyright © 2011. All Rights Reserved.