📜  为 TestNG 结果生成报告有哪些不同的方法? - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:12.290000             🧑  作者: Mango

代码示例1
● TestNG offers two ways to produce a report
o Listeners implement the interface org.testng.testListener 
and are notified in real time of when a test starts,
passes, fails, etc…
o Reporters implement the interface org.testng.reporter and 
are notified when all the suites have been run by 
TestNG.
● The IReporter instance receives a list of objects that describe
the entire testrun