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

  1. Test Summary
Test Summary

2. Failure Analysis

Failure Analysis — Table View
Failure Analysis — Bar Chart
Failure Analysis — Pie Chart

3. Skipped Analysis

Skipped Analysis — Table View
Skipped Analysis — Bar Chart
Skipped Analysis — Pie Chart

Extent Report Features

  1. Dashboard View
Dashboard

2. Tests View

Tests — List View
Tests — Single View

3. Category View

Category View

4. Exception View

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:

  1. Add “MaxSoft TestNG Test Results Analyzer” dependency into “pom.xml”.
pom.xml

2. Create “test-results-analyzer.properties” in “src/main/resources”.

test-results-analyzer.properties

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”.

Setting the Driver

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”.

Getting the Driver

6. An example test. class.

Sample test

7. Create the “testng.xml” by adding the “com.maxsoft.testngtestresultsanalyzer.TestAnalyzeReportListener” listener class.

testng.xml

8. Run the “testng.xml”.

Happy Automation !!!

--

--

Osanda Deshan Nimalarathna
MaxSoft — TestNG Test Results Analyzer

Founder of MaxSoft | RPA Solution Architect | Open-source Contributor | Automation Framework Developer | Technical Specialist