Class SkipTestListener

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

    public class SkipTestListener
    extends Object
    implements org.testng.IInvokedMethodListener
    A TestNG listener checking test methods for the presence of @SkipTest annotation

    If annotation is present on test method and current HTTP connector matches the HTTP connector specified by @SkipTest, the listener will skip the test by throwing TestNG SkipException.

    Author:
    Bruno Semperlotti
    • Constructor Detail

      • SkipTestListener

        public SkipTestListener()
    • Method Detail

      • beforeInvocation

        public void beforeInvocation​(org.testng.IInvokedMethod iim,
                                     org.testng.ITestResult itr)
        Specified by:
        beforeInvocation in interface org.testng.IInvokedMethodListener
      • afterInvocation

        public void afterInvocation​(org.testng.IInvokedMethod iim,
                                    org.testng.ITestResult itr)
        Specified by:
        afterInvocation in interface org.testng.IInvokedMethodListener