1.5. Example of IConfigurationListener

1.5. Example of IConfigurationListener


IIConfigurationListener is the listener interface for events related to configuration methods.
In the below test class MyConfigListenerExample , we have a @BeforeSuite, @AfterSuite and a @Test method.
We can use @Listeners annotation to specify the listener class. Note that this is another way of providing listeners to TestNG other than the testng.xml way.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.