简体   繁体   中英

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.

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/

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM