Package org.testng.reporters
Class EmailableReporter
java.lang.Object
org.testng.reporters.EmailableReporter
- All Implemented Interfaces:
IReporter
,ITestNGListener
Reported designed to render self-contained HTML top down view of a testing suite.
- Since:
- 5.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Arranges methods by classname and method name -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private static final Logger
private int
private PrintWriter
private int
private Integer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWriter
createWriter
(String outdir) protected void
endHtml
(PrintWriter out) protected void
generateExceptionReport
(Throwable exception) private void
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
Creates summary of the runvoid
generateSuiteSummaryReport
(List<ISuite> suites) 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.private String
qualifiedName
(ITestNGMethod method) private void
resultDetail
(IResultMap tests) private void
resultSummary
(ISuite suite, IResultMap tests, String testname, String style, String details) void
setFileName
(String fileName) protected void
startHtml
(PrintWriter out) private void
Starts and defines columns result summary tableprivate void
startSummaryRow
(String label) private void
summaryCell
(int v, int maxexpected) private void
summaryCell
(String[] val) private void
summaryCell
(String v, boolean isGood) private void
tableColumnStart
(String label) private void
tableStart
(String cssclass, String id) private void
private void
-
Field Details
-
L
-
m_out
-
m_row
private int m_row -
m_testIndex
-
m_methodIndex
private int m_methodIndex -
fileName
-
-
Constructor Details
-
EmailableReporter
public EmailableReporter()
-
-
Method Details
-
getFileName
-
setFileName
-
generateReport
Creates summary of the run- Specified by:
generateReport
in interfaceIReporter
- Parameters:
xml
- The list ofXmlSuite
suites
- The list ofISuite
outdir
- The output directory
-
createWriter
- Throws:
IOException
-
generateMethodSummaryReport
Creates a table showing the highlights of each test method with links to the method details- Parameters:
suites
- The run suites
-
generateMethodDetailReport
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
-
resultDetail
-
generateForResult
-
generateExceptionReport
-
getMethodSet
Since the methods will be sorted chronologically, we want to return the ITestNGMethod from the invoked methods. -
generateSuiteSummaryReport
-
summaryCell
-
summaryCell
-
startSummaryRow
-
summaryCell
private void summaryCell(int v, int maxexpected) -
tableStart
-
tableColumnStart
-
titleRow
-
titleRow
-
startHtml
-
endHtml
-