Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aleon1220 opened this issue Oct 1, 2024 · 0 comments

Comments

@aleon1220
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant