Rapise 8.2 - Adding Support for Selenium WebDriver ExtentReports

7-Aug-2024 by Adam Sandman Product News

We are excited to announce the upcoming v8.2 release of Rapise, our codeless AI-powered test automation platform, later this month. This new version promises to be a giant leap forward in test automation with new artificial intelligence functionality as well as other usability and functional improvements. In addition to these enhancements, the new version includes support for ExtentReports.

What is Extent Reports?

ExtentReports is a popular reporting library used primarily in the context of automated testing, particularly with Selenium WebDriver for test automation in Java and .NET environments. It provides a flexible and customizable way to generate detailed, visually appealing test reports.

Key Features of ExtentReports:

  1. HTML Reports: ExtentReports can generate rich, interactive HTML reports that include detailed logs, screenshots, and various levels of test information (e.g., pass, fail, skip).

  2. Customizable: You can customize the reports to match your requirements, including adding logos, modifying the color scheme, and structuring the report format.

  3. Logging Levels: It supports different logging levels (e.g., info, warning, error) which can be used to give more context to the steps in the test.

  4. Screenshots: You can embed screenshots in the reports, which is particularly useful for visual validation or understanding why a test failed.

  5. Integration with TestNG/JUnit: ExtentReports integrates well with popular testing frameworks like TestNG and JUnit, allowing seamless generation of reports after tests are executed.

  6. Parallel Execution Support: It handles reports for tests running in parallel, making it suitable for large-scale automated test suites.

When is ExtentReports Used?

  1. Automated Testing: ExtentReports is commonly used in automated testing environments to produce detailed reports that help in understanding test results, debugging failures, and presenting test outcomes to stakeholders.

  2. Selenium/WebDriver Testing: It is frequently paired with Selenium/WebDriver to report on the execution of UI-based tests across different browsers and platforms.

  3. Continuous Integration: ExtentReports is often integrated into CI/CD pipelines, where automated test results are crucial for making informed decisions about the release readiness of software.

  4. Enhanced Test Reporting: When teams require more than basic console or log output, ExtentReports provides a more professional and comprehensive reporting solution.

How is ExtentReports used with Selenium WebDriver?

After running a Selenium WebDriver test suite, ExtentReports can generate an HTML report that shows which tests passed, failed, or were skipped, along with detailed logs and screenshots of each test case. This report can then be reviewed by the QA team or shared with other stakeholders to quickly assess the quality of the application being tested.

How Can I Use ExtentReports in Rapise 8.2?

We have introduced a simple wrapper library, which is incorporated into the ExtentReports page object of FWUsefulPageObjects. To enable ExtentReports in your Rapise framework, simply import the page object as described in the documentation.

Once you include the ExtentReports page object in your framework, Rapise will generate an ExtentReports.html file in addition to the standard Rapise reports. The HTML report is automatically opened inside Rapise at the end of the test execution:

ExtentReports running in Rapise

When running multiple tests, Rapise will replace the old report and compile all test executions into a new report. However, if you run test cases individually, Rapise will append the new report data to the existing report.

ExtentReports running in Rapise