Skip to content

Consolidate multiple ExtentReports test case reports into a single HTML report #442

@aleon1220

Description

@aleon1220

I am new with this framework. Please correct me if i am not reaching the right channel.

Using ExtentReports-Java for custom test reporting in a project. current project structure includes:

  • Java package named after the Jira ID
  • Package(s) containing TestRail IDs for each test case
  • Java classes named after the TestRail test case IDs

The test-output folder currently contains:

  • icons folder
  • img folder
  • Individual TestReport.html file. 1 file per test case.

is ideal that we want to consolidate each test case report into a single HTML report using the ExtentReports framework.

Questions and Possible Solutions

  1. Is it possible to merge multiple ExtentReports into a single report?
    Possible ideas/solutions to Be Confirmed by the community

    • Use ExtentReports' mergeAll() method to combine reports
    • Implement a custom report merger using ExtentReports' APIs
    • Create a parent report and add child reports for each test case
  2. How can we maintain the structure and hierarchy of our test cases in a consolidated report?
    Possible ideas/solutions to Be Confirmed by the community

    • Use ExtentReports' test node hierarchy to represent the Jira ID, TestRail ID, and test case structure
    • Implement custom categorization using ExtentReports' tagging system
    • Create a custom report template that preserves the desired structure
  3. What's the best way to handle test artifacts (screenshots, logs) in a consolidated report?
    Possible ideas/solutions to Be Confirmed by the community

    • Use ExtentReports' attachment features to include artifacts in the consolidated report
    • Implement a custom artifact management system that links to the consolidated report
    • Create a separate artifacts page with links from the main consolidated report
  4. How can we ensure that the consolidated report is performant and easily navigable?
    Possible ideas/solutions to Be Confirmed by the community

    • Implement pagination or lazy loading for large numbers of test cases
    • Use ExtentReports' filtering and search capabilities
    • Create a custom navigation system using JavaScript and ExtentReports' APIs

I would highly appreciate any guidance or alternatives to achieve this consolidation using the ExtentReports framework.

Thank you for your help community!
ps. I am super keen to contribute to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions