1.3. Example of ISuiteListener

1.3. Example of ISuiteListener

ISuiteListener has two methods, onStart and onFinish. Method onStart is invoked before TestNG starts running the suite and onFinish is invoked after TestNG has run the suite.
The listener is called for each suite, if the parent suite contains child suites then the child suites are first run before running the parent suite. 
Representation:
 
In the below test configuration, we have a parent suite containing child suites.


No comments:

Post a Comment

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