I am running selenium scripts using jenkins jobs/multijob and its creating multiple html reports for different modules.

How can we combine/merge all html reports to one single report?

Extent report 2 has a feature to combine html report. How can we do the same with extent report 3?

Ref: http://relevantcodes.com/Tools/ExtentReports2/ExtentMerge.html


3 Answers 3


For appending reports please check the link. For Appending to HtmlReporter use


If you want to append to an existing report based on reportName, use:


Refer link for more information.. Hope this helps.


In your extent report class,

ExtentReports extent = new ExtentReports("Specify the file path here where your extent reports should reside",false);

Parameter False- Is used to append the reports of previous run testcase along with newly run testcase.

Parameter True- Deletes the history of reports of previous run testcases and shows only the reports of newly run testcases.


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;

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

@AfterSuite(alwaysRun = true)
    public void afterSuite() {

  • Thank you BRO. am looking for it for 2 days. It works quite fine in this way. actually i dont understand why someone gave -1 Commented Feb 23, 2021 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.