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 Details

    • EmailableReporter

      public EmailableReporter()
  • Method Details

    • 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 interface IReporter
      Parameters:
      xml - The list of XmlSuite
      suites - The list of ISuite
      outdir - The output directory
    • 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
      Parameters:
      suites - The run suites
    • generateMethodDetailReport

      protected void generateMethodDetailReport(List<ISuite> suites)
      Creates a section showing known results for each method
      Parameters:
      suites - All suites
    • generateExceptionReport

      protected void generateExceptionReport(Throwable exception)
    • generateSuiteSummaryReport

      public void generateSuiteSummaryReport(List<ISuite> suites)
    • startHtml

      protected void startHtml(PrintWriter out)
    • endHtml

      protected void endHtml(PrintWriter out)