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 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)
void
onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called.void
onStart(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:ITestListener
Invoked after the test class is instantiated and before any configuration method is called.- Specified by:
onStart
in interfaceITestListener
- Overrides:
onStart
in classTestListenerAdapter
-
onFinish
public void onFinish(ITestContext context)
Description copied from interface:ITestListener
Invoked after all the tests have run and all their Configuration methods have been called.- Specified by:
onFinish
in interfaceITestListener
- Overrides:
onFinish
in classTestListenerAdapter
-
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)
-
-