org.testng.reporters
Class TestHTMLReporter

java.lang.Object  extended by org.testng.TestListenerAdapter      extended by 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


Constructor Summary
TestHTMLReporter()
           
 
Method Summary
static voidgenerateLog(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 voidgenerateTable(StringBuffer sb, String title, Collection<ITestResult> tests, String cssClass, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHTMLReporter

public TestHTMLReporter()
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 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.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14