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
  • Field Details

    • L

      private static final Logger L
    • m_out

      private PrintWriter m_out
    • m_row

      private int m_row
    • m_testIndex

      private Integer m_testIndex
    • m_methodIndex

      private int m_methodIndex
    • fileName

      private String fileName
  • 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
    • resultSummary

      private void resultSummary(ISuite suite, IResultMap tests, String testname, String style, String details)
    • startResultSummaryTable

      private void startResultSummaryTable()
      Starts and defines columns result summary table
    • qualifiedName

      private String qualifiedName(ITestNGMethod method)
    • resultDetail

      private void resultDetail(IResultMap tests)
    • generateForResult

      private void generateForResult(ITestResult ans)
    • generateExceptionReport

      protected void generateExceptionReport(Throwable exception)
    • getMethodSet

      private Collection<ITestNGMethod> getMethodSet(IResultMap tests, ISuite suite)
      Since the methods will be sorted chronologically, we want to return the ITestNGMethod from the invoked methods.
    • generateSuiteSummaryReport

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

      private void summaryCell(String[] val)
    • summaryCell

      private void summaryCell(String v, boolean isGood)
    • startSummaryRow

      private void startSummaryRow(String label)
    • summaryCell

      private void summaryCell(int v, int maxexpected)
    • tableStart

      private void tableStart(String cssclass, String id)
    • tableColumnStart

      private void tableColumnStart(String label)
    • titleRow

      private void titleRow(String label, int cq)
    • titleRow

      private void titleRow(String label, int cq, String id)
    • startHtml

      protected void startHtml(PrintWriter out)
    • endHtml

      protected void endHtml(PrintWriter out)