Issue
I am developing a QA automation framework using a Page Object Model in C#. I want to get a report about passed and failed test cases. I think Extent Reports is most suitable for this and I tried to run it, but extent report classes are not working. How can I integrate Extent Reports into my POM?
Solution
You need to add a dependency in your POM.XML
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.5</version>
</dependency>
Use the code below to setup reporting:
ExtentHtmlReporter report=new ExtentHtmlReporter(path);
extentReport=new ExtentReports();
extentReport.attachReporter(report);
Answered By - Nancy Bhardwaj
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.