1.9. Example of IReporter

1.9. Example of IReporter


IReporter is the listener you need to implement if you want to generate a report after all the suites are run.
In test class, ReporterListenerExample, I have grouped three method testcase1, testcase2 and testcase4 in “sanity”. Method testcase3 is not in any group.
Suppose I want to generate a report that contains test results of the tests belonging to “sanity” group, I need to implementIReporter and implement generateReport method.

No comments:

Post a Comment

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