Package org.testng.reporters
Class TestHTMLReporter
java.lang.Object
org.testng.reporters.TestHTMLReporter
- All Implemented Interfaces:
ITestListener
,ITestNGListener
This class implements an HTML reporter for individual tests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<ITestResult>
private static final String
private ITestContext
private static final Comparator<ITestResult>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
arrayToString
(String[] array) static void
generateLog
(ITestContext testContext, String host, String outputDirectory, Collection<ITestResult> failedConfs, Collection<ITestResult> skippedConfs, Collection<ITestResult> passedTests, Collection<ITestResult> failedTests, Collection<ITestResult> skippedTests, Collection<ITestResult> percentageTests) static void
generateTable
(PrintWriter pw, String title, Collection<ITestResult> tests, String cssClass, Comparator<ITestResult> comparator) private static String
getOutputFile
(ITestContext context) void
onFinish
(ITestContext context) Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.void
onStart
(ITestContext context) Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.private static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.ITestListener
onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestFailure, onTestSkipped, onTestStart, onTestSuccess
-
Field Details
-
NAME_COMPARATOR
-
CONFIGURATION_COMPARATOR
-
m_testContext
-
HEAD
- See Also:
-
-
Constructor Details
-
TestHTMLReporter
public TestHTMLReporter()
-
-
Method Details
-
onStart
Description copied from interface:ITestListener
Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.- Specified by:
onStart
in interfaceITestListener
- Parameters:
context
- The test context
-
onFinish
Description copied from interface:ITestListener
Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.- Specified by:
onFinish
in interfaceITestListener
- Parameters:
context
- The test context
-
getOutputFile
-
generateTable
public static void generateTable(PrintWriter pw, String title, Collection<ITestResult> tests, String cssClass, Comparator<ITestResult> comparator) -
arrayToString
-
generateLog
public static void generateLog(ITestContext testContext, String host, String outputDirectory, Collection<ITestResult> failedConfs, Collection<ITestResult> skippedConfs, Collection<ITestResult> passedTests, Collection<ITestResult> failedTests, Collection<ITestResult> skippedTests, Collection<ITestResult> percentageTests) -
ppp
-