Package org.testng

Interface IConfigurationListener

All Superinterfaces:
ITestNGListener
All Known Subinterfaces:
IConfigurationListener2
All Known Implementing Classes:
ExitCodeListener, JUnitXMLReporter, TestListenerAdapter, VerboseReporter

public interface IConfigurationListener extends ITestNGListener
Listener interface for events related to configuration methods.
  • Method Details

    • onConfigurationSuccess

      default void onConfigurationSuccess(ITestResult tr)
      Invoked whenever a configuration method succeeded.
      Parameters:
      tr - The test result
    • onConfigurationSuccess

      default void onConfigurationSuccess(ITestResult tr, ITestNGMethod tm)
      Invoked whenever a configuration method succeeded.
      Parameters:
      tr - The test result
      tm - The test method
    • onConfigurationFailure

      default void onConfigurationFailure(ITestResult tr)
      Invoked whenever a configuration method failed.
      Parameters:
      tr - The test result
    • onConfigurationFailure

      default void onConfigurationFailure(ITestResult tr, ITestNGMethod tm)
      Invoked whenever a configuration method failed.
      Parameters:
      tr - The test result
      tm - The test method
    • onConfigurationSkip

      default void onConfigurationSkip(ITestResult tr)
      Invoked whenever a configuration method was skipped.
      Parameters:
      tr - The test result
    • onConfigurationSkip

      default void onConfigurationSkip(ITestResult tr, ITestNGMethod tm)
      Invoked whenever a configuration method was skipped.
      Parameters:
      tr - The test result
      tm - The test method
    • beforeConfiguration

      default void beforeConfiguration(ITestResult tr)
      Invoked before a configuration method is invoked.
      Parameters:
      tr - The test result
    • beforeConfiguration

      default void beforeConfiguration(ITestResult tr, ITestNGMethod tm)
      Invoked before a configuration method is invoked.
      Parameters:
      tr - The test result
      tm - The test method