Package org.testng

Interface IAlterSuiteListener

  • All Superinterfaces:
    ITestNGListener

    public interface IAlterSuiteListener
    extends ITestNGListener
    Implementations of this interface will gain access to the XmlSuite object and thus let users be able to alter a suite or a test based on their own needs. This listener can be added ONLY via the following two ways :
    1. <listeners> tag in a suite file.
    2. via Service loaders

    Note: This listener will NOT be invoked if it is wired in via the @ Listeners annotation.

    • Method Detail

      • alter

        default void alter​(java.util.List<XmlSuite> suites)
        Parameters:
        suites - - The list of XmlSuites that are part of the current execution.