Class TestHTMLReporter
java.lang.Object
org.testng.reporters.TestHTMLReporter
- All Implemented Interfaces:
ITestListener, ITestNGListener
This class implements an HTML reporter for individual tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateLog(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 voidgenerateTable(PrintWriter pw, String title, Collection<ITestResult> tests, String cssClass, Comparator<ITestResult> comparator) voidonFinish(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.voidonStart(ITestContext context) //Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ITestListener
onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestFailure, onTestSkipped, onTestStart, onTestSuccessMethods inherited from interface ITestNGListener
isEnabled
-
Constructor Details
-
TestHTMLReporter
public TestHTMLReporter()
-
-
Method Details
-
onStart
//- Specified by:
onStartin interfaceITestListener- Parameters:
context- The test context
-
onFinish
Description copied from interface:ITestListenerInvoked 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:
onFinishin interfaceITestListener- Parameters:
context- The test context
-
generateTable
public static void generateTable(PrintWriter pw, String title, Collection<ITestResult> tests, String cssClass, Comparator<ITestResult> comparator) -
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)
-