There are many different types of interfaces that allow us to modify TestNG behavior. Listed next are these interfaces:
- ITestListener: A listener used for listening on running tests.
- ISuiteListener: A listener used specifically for test suites.
- IReporter: This is an interface to be implemented if a report has to be generated.
- IMethodInterceptor: This is used to change the collection of methods that TestNG is going to execute.
- IInvokedMethodListener: This gets into action before and after a test method is invoked by TestNG.
- IHookable: If this interface is implemented by a class, then the run() method will be invoked instead of the @test method. The test method will be performed when the callBack() method of ...