What are Listeners in TestNG?

Vidyadevi Vidyadevi
Vidyadevi Vidyadevi

Posted On: Apr 06, 2020

 

Listeners are like interfaces in TestNG that are used to modify the behavior of default TestNG. Listeners listen to the event defined in the script and behave accordingly to the event. There are many TestNG listeners available such as IAnnotationTransformer, IAnnotationTransformer2, IConfigurable, IHookable, ITestLinstener and more.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    TestNG Interview Questions

    What is TestNG?

    TestNG is a testing framework written in Java to cover a wide array of test categories like unit testing, functional testing, end-to-end test, integration test, etc. It is inspired from JUnit and NUni...

    TestNG Interview Questions

    List some features of TestNG Framework?

    Some of the important features of TestNG framework are,Support for Annotation. Support for data-driven-testing and parameters. Support for multiple instances in the same test class. Has a good ...

    TestNG Interview Questions

    What is Testng full form?

    The full form of TestNG is Test Next Generation....