How many listeners are there in TestNG?
There are two TestNG listeners in the parent class.
- The onTestSuccess() function, which is called when the test case is successful.
- The onTestFailure() function, which is called when the test case fails.
How many listeners are there in TestNG?
There are two TestNG listeners in the parent class.