Class FailFastListener

  • All Implemented Interfaces:
    org.testng.ITestListener, org.testng.ITestNGListener

    public class FailFastListener
    extends java.lang.Object
    implements org.testng.ITestListener
    Sends an even in FailFastEventsSingleton that failure has appeared.
    Since:
    2.19
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFinish​(org.testng.ITestContext context)  
      void onStart​(org.testng.ITestContext context)  
      void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)  
      void onTestFailure​(org.testng.ITestResult result)  
      void onTestSkipped​(org.testng.ITestResult result)  
      void onTestStart​(org.testng.ITestResult result)  
      void onTestSuccess​(org.testng.ITestResult result)  
      • 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

        onTestFailedWithTimeout
    • Field Detail

      • stoppable

        private final Stoppable stoppable
    • Constructor Detail

      • FailFastListener

        public FailFastListener​(Stoppable stoppable)
    • Method Detail

      • onTestStart

        public void onTestStart​(org.testng.ITestResult result)
        Specified by:
        onTestStart in interface org.testng.ITestListener
      • onTestSuccess

        public void onTestSuccess​(org.testng.ITestResult result)
        Specified by:
        onTestSuccess in interface org.testng.ITestListener
      • onTestFailure

        public void onTestFailure​(org.testng.ITestResult result)
        Specified by:
        onTestFailure in interface org.testng.ITestListener
      • onTestSkipped

        public void onTestSkipped​(org.testng.ITestResult result)
        Specified by:
        onTestSkipped in interface org.testng.ITestListener
      • onTestFailedButWithinSuccessPercentage

        public void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)
        Specified by:
        onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
      • onStart

        public void onStart​(org.testng.ITestContext context)
        Specified by:
        onStart in interface org.testng.ITestListener
      • onFinish

        public void onFinish​(org.testng.ITestContext context)
        Specified by:
        onFinish in interface org.testng.ITestListener