Class TestFailureListener

java.lang.Object
org.testng.TestListenerAdapter
org.opengis.cite.gpkg12.TestFailureListener
All Implemented Interfaces:
org.testng.IConfigurationListener, org.testng.internal.IResultListener, org.testng.internal.IResultListener2, org.testng.ITestListener, org.testng.ITestNGListener

public class TestFailureListener extends org.testng.TestListenerAdapter
A listener that augments a test result with diagnostic information in the event that a test method failed. This information will appear in the XML report when the test run is completed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onTestFailure(org.testng.ITestResult result)
    Invoked each time a test method fails.

    Methods inherited from class org.testng.TestListenerAdapter

    beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, getTimedoutTests, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onFinish, onStart, onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, 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

    Methods inherited from interface org.testng.IConfigurationListener

    beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess
  • Constructor Details

    • TestFailureListener

      public TestFailureListener()
  • Method Details

    • onTestFailure

      public void onTestFailure(org.testng.ITestResult result)
      Invoked each time a test method fails.
      Specified by:
      onTestFailure in interface org.testng.ITestListener
      Overrides:
      onTestFailure in class org.testng.TestListenerAdapter
      Parameters:
      result - A description of a test result (with a fail verdict).