Calculate % of tests passed programmatically

Ask general questions here.
hpatel
Posts: 1
Joined: Mon Jun 06, 2016 2:10 pm

Calculate % of tests passed programmatically

Post by hpatel » Mon Jun 06, 2016 2:18 pm

I am trying to calculate a % of tests passed in a pre-build process. So something like - if 90% of tests passes then trigger a new build with latest changes from Jenkins. Is it possible to do with Ranorex? In other words, is there a way I can interpret Ranorex reports programmatically?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Calculate % of tests passed programmatically

Post by Support Team » Thu Jun 09, 2016 2:58 pm

Hi Hpatel,

Unfortunately, there is no such a feature in Ranorex Studio.

Since Ranorex is based on the .NET Framework and the *.rxlog.data file is a simple XML file, you could use the whole functionality of C# in order to achieve your intention.

I hope this helps.

Kind regards,
Matthias

swmatisa
Posts: 123
Joined: Fri Aug 05, 2011 7:52 am

Re: Calculate % of tests passed programmatically

Post by swmatisa » Fri Jun 10, 2016 6:30 am

Hello,

You can also do it live with the IReportLogger http://www.ranorex.com/forum/ranorex-re ... tml#p11489

Hope this help
SW