📜  TestNG中@Listener注解有什么用? - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:53.632000             🧑  作者: Mango

代码示例1
● configure reports and logging.
● widely used listeners : ITestListener interface.
● It has methods like onTestStart, onTestSucess. onTestFailure, on TestSkipped
● we should implement this interface creating a listener class of our own,
● Next, we should add the listeners annotation (@Listeners) in the class