org.testng.reporters
Class TestHTMLReporter
java.lang.Object
org.testng.TestListenerAdapter
org.testng.reporters.TestHTMLReporter
- All Implemented Interfaces:
- org.testng.internal.IConfigurationListener, org.testng.internal.IResultListener, 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,
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 void |
generateTable(java.lang.StringBuffer sb,
java.lang.String title,
java.util.Collection<ITestResult> tests,
java.lang.String cssClass,
java.util.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 |
getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onTestFailedButWithinSuccessPercentage, onTestFailure, onTestSkipped, onTestStart, onTestSuccess, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.StringBuffer sb,
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)
Copyright © 2011. All Rights Reserved.