Deepak Dave
Deepak Dave

Reputation: 47

Automation Framework - how to generate simple table form html reports using TestNG with selenium java automation tests

I have been using Selenium WebDriver with TestNG for doing web application functional testing since last 6 months. I have also used Apache Ant, Apache Maven and Apache POI Library for Project build and data driven testing with MS Excel.

TestNG gives me good flexibility in ordering the tests and executing them. With the help of Listeners and reporters I am able to log and record the test events and results also.

But the HTML reports generated with TestNG are not user friendly. I have also generated XSLT reports using ReportNG dependency in ANT and Maven but these reports are also not formatted well enough to be user friendly.

I have recently started working on selenium automation project for an MNC organization and my manager requires me to have a better framework for automation. The current TestNG and XSLT reports are not ok for corporate use.

Please suggest any test automation framework that works with selenium and preferably TestNG and generates simple user friendly HTML reports in Table format mentioning the number of tests passed, failed, skipped etc. with test names, description etc.

Upvotes: 2

Views: 3858

Answers (3)

Karthik
Karthik

Reputation: 477

Would also recommend ExtentReports - extremely simple to use and generates great info with very little data. Although you can use version 2.02 which is superb sample: http://relevantcodes.com/Tools/ExtentReports2/Extent.html

The guy behind it has also shown how to use with listener here: http://relevantcodes.com/testng-listener-using-extentreports/

Upvotes: 2

Shamik
Shamik

Reputation: 1609

Allure Reporting Framework has got testng adapters. You can check it out

Upvotes: 1

Konstantin Pavlov
Konstantin Pavlov

Reputation: 1005

Consider using CI server like Jenkins or Bamboo. It should make a build, run all the tests, aggregate test results and generate the reports from TestNG xml output for every build. Reports will be available boa web interface. Later on, you may like to configure various code analysts tools like FindBugs and automate releasing and deployments via CI server. You'll not need any other test framework, TestNG and Selenium is enough.

Upvotes: 1

Related Questions