How to create TestNG dashboard reports

382 views
Skip to first unread message

Greg

unread,
May 13, 2015, 11:08:39 PM5/13/15
to testng...@googlegroups.com
Hi, I'm new to open-source (been a windows guy forever), I've been automating manual tests in TestNG the past three months, using TestNG, maven, and Jenkins.  I have a need to create additional "dashboard" reports, summarizing historical data.  I have the TestNG plugin for Jenkins, which shows run history, but I need more than that.  For example:
  1. Pass/Fail results for last n runs (already provided via TestNG plugin)
  2. Name and count of assert types raised (from Assert method) per month (so we can see what kind of failures we are getting more often)
  3. Pass/Fail results for a given test case for last n runs (so we can see which tests fail more often)
Having said that:
  • Is there any plugin that provides me the above?
  • If not, what are my options to get the above?
    • I see here that we could parse the tesng-results.xml file, and store to a remote db.  
    • If I don't have a db, is there another option?  
I am curious where the plugin is getting the hisotrical information from.  Is the code exposed somewhere?  would i have to copy parts of the code to extract the needed data?

吴亭

unread,
May 14, 2015, 4:01:39 AM5/14/15
to testng...@googlegroups.com
I have no idea if there is already have a plugin to support this. But anyway, due to Jenkins support Rest API, so you can easily get test data from jenkins API.

Then create a simple html page and dispaly it.

Br,
Tim

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Krishnan Mahadevan

unread,
May 14, 2015, 11:17:54 AM5/14/15
to testng...@googlegroups.com
Greg,

You could try doing this :

1. Create a custom listener (which implements the IReporter interface) and have the listener post test results at the end of execution into a Database.
2. Create a simple webpage that basically queries information from the database and shows you the information in it.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
Reply all
Reply to author
Forward
0 new messages