All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.IInvokedMethodListener Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng;

/**
 * A listener that gets invoked before and after a method is invoked by TestNG. This listener will
 * be invoked for configuration and test methods irrespective of whether they passe/fail or
 * get skipped. This listener invocation can be disabled for SKIPPED tests through
 * one of the below mechanisms:
 *
 * 
    *
  • Command line parameter alwaysRunListeners
  • *
  • Build tool
  • *
  • Via {@link TestNG#alwaysRunListeners(boolean)}
  • *
*/ public interface IInvokedMethodListener extends ITestNGListener { default void beforeInvocation(IInvokedMethod method, ITestResult testResult) { // not implemented } default void afterInvocation(IInvokedMethod method, ITestResult testResult) { // not implemented } /** To be implemented if the method needs a handle to contextual information. */ default void beforeInvocation( IInvokedMethod method, ITestResult testResult, ITestContext context) { // not implemented } /** To be implemented if the method needs a handle to contextual information. */ default void afterInvocation( IInvokedMethod method, ITestResult testResult, ITestContext context) { // not implemented } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy