InterviewSolution
| 1. |
What Are The Different Ways To Produce Reports For Testng Results? |
|
Answer» TestNG offers two ways to produce a report: Listeners implement the INTERFACE org.testng.ITestListener and are NOTIFIED in real time of when a test starts, PASSES, fails, etc… Reporters implement the interface org.testng.IReporter and are notified when all the suites have been run by TestNG. The IReporter instance receives a list of OBJECTS that describe the ENTIRE test run. TestNG offers two ways to produce a report: Listeners implement the interface org.testng.ITestListener and are notified in real time of when a test starts, passes, fails, etc… Reporters implement the interface org.testng.IReporter and are notified when all the suites have been run by TestNG. The IReporter instance receives a list of objects that describe the entire test run. |
|