Merging multiple Extent reports to single report

Viewed 5680

I have a maven multi module project, I am able to generate the Extent HTML report for each individual module.How to merge and attach the individual reports into single report.

Version : Extent Reports : 2.41.2

3 Answers

You can check Klov. demo here In a nice looking dashboard you have all tests as builds and general info's about them. What I like the most is that once a TC's is executed will be automatically updated in the dashboard - so you can check the results in real time no need to wait for full report. It is simple to be implemented, you can check here.

Some issues are present also :(

  • Screenshots are not displayed correctly
  • Category and description are not displayed

I had the similar requirement. I achieved it. (Extent Report V3 and above)

BaseTest is being extended by all the test class.

Class BaseTest{

        public static ExtentReports extent =new ExtentReports();//initiating here is very important
        public static ExtentHtmlReporter htmlReporter;

@BeforeSuite
    public void beforeSuiteSetup() {
        String filepath = System.getProperty("user.dir");
        htmlReporter = new ExtentHtmlReporter(filepath+"/Report.html");     
        extent.attachReporter(htmlReporter);
    }

@AfterSuite(alwaysRun = true)
    public void afterSuite() {
        extent.flush();
    }

}
Related