org.testng.reporters
Class FailedReporter

java.lang.Object
  extended by org.testng.TestListenerAdapter
      extended by org.testng.reporters.FailedReporter
All Implemented Interfaces:
IConfigurationListener, IConfigurationListener2, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, IReporter, ITestListener, ITestNGListener

public class FailedReporter
extends TestListenerAdapter
implements IReporter

This reporter is responsible for creating testng-failed.xml

Author:
Cedric Beust, Alexandru Popescu

Field Summary
static String TESTNG_FAILED_XML
           
 
Constructor Summary
FailedReporter()
           
FailedReporter(XmlSuite xmlSuite)
           
 
Method Summary
protected  void generateFailureSuite(XmlSuite xmlSuite, ISuite suite, String outputDir)
           
 void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
          Generate a report for the given suites into the specified output directory.
 void onFinish(ITestContext context)
          Deprecated. this class is used now as IReporter
 
Methods inherited from class org.testng.TestListenerAdapter
beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onStart, 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
 

Field Detail

TESTNG_FAILED_XML

public static final String TESTNG_FAILED_XML
See Also:
Constant Field Values
Constructor Detail

FailedReporter

public FailedReporter()

FailedReporter

public FailedReporter(XmlSuite xmlSuite)
Method Detail

generateReport

public void generateReport(List<XmlSuite> xmlSuites,
                           List<ISuite> suites,
                           String outputDirectory)
Description copied from interface: IReporter
Generate a report for the given suites into the specified output directory.

Specified by:
generateReport in interface IReporter

generateFailureSuite

protected void generateFailureSuite(XmlSuite xmlSuite,
                                    ISuite suite,
                                    String outputDir)

onFinish

@Deprecated
public void onFinish(ITestContext context)
Deprecated. this class is used now as IReporter

Do not rely on this method. The class is used as IReporter.

Specified by:
onFinish in interface ITestListener
Overrides:
onFinish in class TestListenerAdapter
See Also:
TestListenerAdapter.onFinish(org.testng.ITestContext)


Copyright © 2015. All Rights Reserved.