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 classArranges methods by classname and method name -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final Loggerprivate intprivate PrintWriterprivate intprivate Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PrintWritercreateWriter(String outdir) protected voidendHtml(PrintWriter out) protected voidgenerateExceptionReport(Throwable exception) private voidprotected voidgenerateMethodDetailReport(List<ISuite> suites) Creates a section showing known results for each methodprotected voidgenerateMethodSummaryReport(List<ISuite> suites) Creates a table showing the highlights of each test method with links to the method detailsvoidCreates summary of the runvoidgenerateSuiteSummaryReport(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 StringqualifiedName(ITestNGMethod method) private voidresultDetail(IResultMap tests) private voidresultSummary(ISuite suite, IResultMap tests, String testname, String style, String details) voidsetFileName(String fileName) protected voidstartHtml(PrintWriter out) private voidStarts and defines columns result summary tableprivate voidstartSummaryRow(String label) private voidsummaryCell(int v, int maxexpected) private voidsummaryCell(String[] val) private voidsummaryCell(String v, boolean isGood) private voidtableColumnStart(String label) private voidtableStart(String cssclass, String id) private voidprivate 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:
generateReportin interfaceIReporter- Parameters:
xml- The list ofXmlSuitesuites- The list ofISuiteoutdir- 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
-