Class DefaultListener

  • All Implemented Interfaces:
    org.testng.IAlterSuiteListener, org.testng.IClassListener, org.testng.IConfigurationListener, org.testng.ITestListener, org.testng.ITestNGListener
    Direct Known Subclasses:
    ConfiguringListener, DiscoveryListener, ExecutionListener, LoggingListener

    abstract class DefaultListener
    extends java.lang.Object
    implements org.testng.IClassListener, org.testng.ITestListener, org.testng.IConfigurationListener, org.testng.IAlterSuiteListener
    • Constructor Detail

      • DefaultListener

        DefaultListener()
    • Method Detail

      • alter

        public void alter​(java.util.List<org.testng.xml.XmlSuite> suites)
        Specified by:
        alter in interface org.testng.IAlterSuiteListener
      • onBeforeClass

        public void onBeforeClass​(org.testng.ITestClass testClass)
        Specified by:
        onBeforeClass in interface org.testng.IClassListener
      • onAfterClass

        public void onAfterClass​(org.testng.ITestClass testClass)
        Specified by:
        onAfterClass in interface org.testng.IClassListener
      • 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
      • onTestFailedWithTimeout

        public void onTestFailedWithTimeout​(org.testng.ITestResult result)
        Specified by:
        onTestFailedWithTimeout 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
      • onConfigurationSuccess

        public void onConfigurationSuccess​(org.testng.ITestResult tr)
        Specified by:
        onConfigurationSuccess in interface org.testng.IConfigurationListener
      • onConfigurationSuccess

        public void onConfigurationSuccess​(org.testng.ITestResult tr,
                                           org.testng.ITestNGMethod tm)
        Specified by:
        onConfigurationSuccess in interface org.testng.IConfigurationListener
      • onConfigurationFailure

        public void onConfigurationFailure​(org.testng.ITestResult tr)
        Specified by:
        onConfigurationFailure in interface org.testng.IConfigurationListener
      • onConfigurationFailure

        public void onConfigurationFailure​(org.testng.ITestResult tr,
                                           org.testng.ITestNGMethod tm)
        Specified by:
        onConfigurationFailure in interface org.testng.IConfigurationListener
      • onConfigurationSkip

        public void onConfigurationSkip​(org.testng.ITestResult tr)
        Specified by:
        onConfigurationSkip in interface org.testng.IConfigurationListener
      • onConfigurationSkip

        public void onConfigurationSkip​(org.testng.ITestResult tr,
                                        org.testng.ITestNGMethod tm)
        Specified by:
        onConfigurationSkip in interface org.testng.IConfigurationListener
      • beforeConfiguration

        public void beforeConfiguration​(org.testng.ITestResult tr)
        Specified by:
        beforeConfiguration in interface org.testng.IConfigurationListener
      • beforeConfiguration

        public void beforeConfiguration​(org.testng.ITestResult tr,
                                        org.testng.ITestNGMethod tm)
        Specified by:
        beforeConfiguration in interface org.testng.IConfigurationListener