org.testng.reporters
Class TestHTMLReporter
java.lang.Object
org.testng.TestListenerAdapter
org.testng.reporters.TestHTMLReporter
- All Implemented Interfaces:
- IConfigurationListener, IConfigurationListener2, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, ITestListener, ITestNGListener
public class TestHTMLReporter
- extends TestListenerAdapter
This class implements an HTML reporter for individual tests.
- Author:
- Cedric Beust, May 2, 2004, Alexandru Popescu
Method Summary |
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(StringBuffer sb,
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 |
TestHTMLReporter
public TestHTMLReporter()
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 interface ITestListener
- Overrides:
onStart
in class TestListenerAdapter
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 interface ITestListener
- Overrides:
onFinish
in class TestListenerAdapter
generateTable
public static void generateTable(StringBuffer sb,
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)
Copyright © 2012. All Rights Reserved.