Package org.testng.reporters
Class TestHTMLReporter
- java.lang.Object
-
- org.testng.TestListenerAdapter
-
- org.testng.reporters.TestHTMLReporter
-
- All Implemented Interfaces:
IConfigurationListener,IConfigurationListener2,IResultListener,IResultListener2,ITestListener,ITestNGListener
public class TestHTMLReporter extends TestListenerAdapter
This class implements an HTML reporter for individual tests.
-
-
Constructor Summary
Constructors Constructor Description TestHTMLReporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidgenerateLog(ITestContext testContext, java.lang.String host, java.lang.String outputDirectory, java.util.Collection<ITestResult> failedConfs, java.util.Collection<ITestResult> skippedConfs, java.util.Collection<ITestResult> passedTests, java.util.Collection<ITestResult> failedTests, java.util.Collection<ITestResult> skippedTests, java.util.Collection<ITestResult> percentageTests)static voidgenerateTable(java.io.PrintWriter pw, java.lang.String title, java.util.Collection<ITestResult> tests, java.lang.String cssClass, java.util.Comparator<ITestResult> comparator)voidonFinish(ITestContext context)Invoked after all the tests have run and all their Configuration methods have been called.voidonStart(ITestContext context)Invoked after the test class is instantiated and before any configuration method is called.-
Methods inherited from class org.testng.TestListenerAdapter
beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onTestFailedButWithinSuccessPercentage, onTestFailure, onTestSkipped, onTestStart, onTestSuccess, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString
-
-
-
-
Method Detail
-
onStart
public void onStart(ITestContext context)
Description copied from interface:ITestListenerInvoked after the test class is instantiated and before any configuration method is called.- Specified by:
onStartin interfaceITestListener- Overrides:
onStartin classTestListenerAdapter
-
onFinish
public void onFinish(ITestContext context)
Description copied from interface:ITestListenerInvoked after all the tests have run and all their Configuration methods have been called.- Specified by:
onFinishin interfaceITestListener- Overrides:
onFinishin classTestListenerAdapter
-
generateTable
public static void generateTable(java.io.PrintWriter pw, java.lang.String title, java.util.Collection<ITestResult> tests, java.lang.String cssClass, java.util.Comparator<ITestResult> comparator)
-
generateLog
public static void generateLog(ITestContext testContext, java.lang.String host, java.lang.String outputDirectory, java.util.Collection<ITestResult> failedConfs, java.util.Collection<ITestResult> skippedConfs, java.util.Collection<ITestResult> passedTests, java.util.Collection<ITestResult> failedTests, java.util.Collection<ITestResult> skippedTests, java.util.Collection<ITestResult> percentageTests)
-
-