Need XML Report along with Ranorex Report

Ranorex Studio, Spy, Recorder, and Driver.
devendra khatri
Posts: 3
Joined: Thu Jul 11, 2013 5:11 am

Need XML Report along with Ranorex Report

Post by devendra khatri » Thu Jul 11, 2013 5:21 am

Hi,

I am using following code in my suite to generate my customized report.

Ranorex.Core.Reporting.TestReport.Setup(ReportLevel.Debug, "MyReport", true); Ranorex.Core.Reporting.TestReport.BeginTestSuite("My AUT Automation Test Suite Report");

By doing this, i am only getting the ranorex report,
but i need an XML report too which ranorex creates when it automatically generates an automation report i.e. when report customization is not used.

Thanks
Devendra

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

Re: Need XML Report along with Ranorex Report

Post by Support Team » Fri Jul 12, 2013 1:09 pm

Hello,

I am afraid that I don't know exactly what you want to do. Do you want to have both report files?
If yes why do you need both files?
Thank you!

Regards,
Bernhard

devendra khatri
Posts: 3
Joined: Thu Jul 11, 2013 5:11 am

Re: Need XML Report along with Ranorex Report

Post by devendra khatri » Mon Jul 15, 2013 6:54 pm

The thing is, we need to publish results each time we execute our regression suite, for that purpose i think instead of uploading ranorex report, XML report will be a better option, so that the report can be viewed on a machine where ranorex is not installed.

Regards
Devendra

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Need XML Report along with Ranorex Report

Post by krstcs » Mon Jul 15, 2013 7:43 pm

The reports are in HTML format, so if you change the extensions to *.HTML and *.HTML.DATA instead of *.RXLOG and *.RXLOG.DATA, respectively, you can view them in any browser.

Also, if you right-click on the TestSuite in the rxtst file and select Properties, you can change the name parameters used by Ranorex to create the reports. Just change the ".rxlog" to ".html" and re-compile and you will be able to view the reports in a browser without manual renames.

You have to have ALL report files in the same directory as the HTML files or it will not work.
Shortcuts usually aren't...

devendra khatri
Posts: 3
Joined: Thu Jul 11, 2013 5:11 am

Re: Need XML Report along with Ranorex Report

Post by devendra khatri » Tue Jul 16, 2013 4:57 am

Thanks Krstcs for your reply.

I checked with your solution, but the thing is *.HTML and *.HTML.DATA reports are not as good as ranorex report.
While was checking I manually changed *.RXLOG extension to *.XML.

It worked to show report in a good format but the problem with this is when I am trying to expand the test case heirarchy, I am not able to.

I am also attaching the report with *.XML and *.RXLOG extension. Please look into it once, you will get to know my perspective.

Thanks again,
Devendra
You do not have the required permissions to view the files attached to this post.

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

Re: Need XML Report along with Ranorex Report

Post by Support Team » Wed Jul 17, 2013 2:44 pm

Hello,

Thanks for your reports.
It looks like that your report file is corrupt since I couldn't open the *.rxlog file.

I have repaired your log in order to view it.
Please try to open it with Internet Explorer.

Regards,
Markus (T)
You do not have the required permissions to view the files attached to this post.

yoad
Posts: 39
Joined: Sun May 26, 2013 9:08 am

Re: Need XML Report along with Ranorex Report

Post by yoad » Thu Aug 01, 2013 2:23 pm

Hello Markus,
I tried to open report.rxlog and I got error message

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Access is denied. Error processing resource 'file:///C:/Users/Yoad/Downloads/RanorexReport3.xsl'.


I tried also to open report.xml and I don't see nothing why?

regards,
Yoad

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

Re: Need XML Report along with Ranorex Report

Post by Support Team » Mon Aug 05, 2013 3:10 pm

Hello Yoad,

Please make sure that the RanorexReport3.xsl file is located in the same folder as the report.rxlog file. Additionally please make sure that Internet Explorer is allowed to access information that are not under its control.
There are some other posts in the forum treating a similar issue. Please find them using the following links:
http://www.ranorex.com/forum/xml-fragme ... t2530.html
http://www.ranorex.com/forum/is-it-poss ... t1588.html

Regards,
Bernhard