MaxSoft — TestNG Test Results Analyzer
A Java plugin for TestNG to analyze the failed and skipped tests easily in test automation.
Introduction
The main reason for developing this plugin is to provide an easy way to analyze the failed and skipped tests in test automation.
MaxSoft TestNG Test Results Analyzer comes with a built-in failed and skipped tests grouping mechanism. It will generate an Excel file with the failed and skipped tests against the reason. On the same Excel file, the second and third tabs contain the failure and skipped tests grouped under the reason. So it would be easy to identify the tests which failed or skipped due to the same reason.
Further, this library has built-in Extent reporter as well. So, no need to worry about the HTML report generation for test executions.
Features
Test Analysis Report Features
- Test Summary
2. Failure Analysis
3. Skipped Analysis
Extent Report Features
- Dashboard View
2. Tests View
3. Category View
4. Exception View
Advantages
- Automatically generates the Test Analysis Report after the test execution.
- Automatically generates the Extent Report with screenshots after the test execution.
- Reporter details can be configured through a property file.
- No need to implement classes for Extent reporter or Test Analysis reporter.
- Simple and easy to use.
Technologies/Frameworks Used
- Java
- TestNG
- Apache POI
- Extent Report
- Selenium
- Apache Maven
Supported Platforms
- Windows
- Linux
- Mac OS
Supported Language
- Java
Supported Test Runner
- TestNG
How to use
Pre-Requisites:
1. Java
2. Maven
Steps:
- Add “MaxSoft TestNG Test Results Analyzer” dependency into “pom.xml”.
2. Create “test-results-analyzer.properties” in “src/main/resources”.
3. In the test automation code, find the place you are launching the WebDriver.
4. Pass your WebDriver object to the “setDriver()” method which can be imported from “import static com.maxsoft.testngtestresultsanalyzer.DriverHolder.setDriver”.
5. Update the places where your are using WebDriver object, into “getDriver()” method which can be imported from “import static com.maxsoft.testngtestresultsanalyzer.DriverHolder.getDriver”.
6. An example test. class.
7. Create the “testng.xml” by adding the “com.maxsoft.testngtestresultsanalyzer.TestAnalyzeReportListener” listener class.
8. Run the “testng.xml”.
Happy Automation !!!