Page 1 of 1

Need XML Report along with Ranorex Report

Posted: Thu Jul 11, 2013 5:21 am
by devendra khatri
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

Re: Need XML Report along with Ranorex Report

Posted: Fri Jul 12, 2013 1:09 pm
by Support Team
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

Re: Need XML Report along with Ranorex Report

Posted: Mon Jul 15, 2013 6:54 pm
by devendra khatri
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

Re: Need XML Report along with Ranorex Report

Posted: Mon Jul 15, 2013 7:43 pm
by krstcs
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.

Re: Need XML Report along with Ranorex Report

Posted: Tue Jul 16, 2013 4:57 am
by devendra khatri
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

Re: Need XML Report along with Ranorex Report

Posted: Wed Jul 17, 2013 2:44 pm
by Support Team
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)

Re: Need XML Report along with Ranorex Report

Posted: Thu Aug 01, 2013 2:23 pm
by yoad
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

Re: Need XML Report along with Ranorex Report

Posted: Mon Aug 05, 2013 3:10 pm
by Support Team
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