Package org.testng.reporters
Class TestHTMLReporter
- java.lang.Object
-
- org.testng.reporters.TestHTMLReporter
-
- All Implemented Interfaces:
ITestListener
,ITestNGListener
public class TestHTMLReporter extends java.lang.Object implements ITestListener
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, 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.io.PrintWriter pw, 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 test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.void
onStart(ITestContext context)
Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testng.ITestListener
onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestFailure, onTestSkipped, onTestStart, onTestSuccess
-
-
-
-
Method Detail
-
onStart
public void onStart(ITestContext context)
Description copied from interface:ITestListener
Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.- Specified by:
onStart
in interfaceITestListener
- Parameters:
context
- The test context
-
onFinish
public void onFinish(ITestContext context)
Description copied from interface:ITestListener
Invoked 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:
onFinish
in interfaceITestListener
- Parameters:
context
- The test context
-
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)
-
-