Test reports to non-ranorex users, how?

Ask general questions here.
melodican
Posts: 37
Joined: Fri Nov 04, 2016 12:50 pm

Re: Test reports to non-ranorex users, how?

Post by melodican » Tue May 09, 2023 10:57 am

We also would need the Ranorex Report Viewer as standalone tool, please.

rk325
Posts: 23
Joined: Mon Mar 27, 2023 6:02 pm

Re: Test reports to non-ranorex users, how?

Post by rk325 » Tue May 09, 2023 8:21 pm

odklizec wrote:
Tue Mar 15, 2022 1:44 pm
Hi,

You can find it here:
https://upload.ranorex.com/s/KoCHanqkn7DErJq
I just checked this link, but gives me a "file Not Found" message with a button to "Back To Ranorex NextCloud". I am developing with Ranorex exclusively in C#. I use the Report module to generate output, e.g. Report,Log, Report.Error, etc. And it works, it creates 2 files with extensions .rxlog and .rxlog.data.
I tried to incorporate the ReportToPDFModule, but I get the error message:
Ranorex.Core.FastXml.XmlDocException
HResult=0x80131500
Message=Element 'activity' does not exist in element 'activity'.
Source=Ranorex.ReportToPDF
StackTrace:
at Ranorex.Core.FastXml.XmlNode.Child(String name)
at Ranorex.PDF.PDFCreator.CreateHeader(XmlNode rootActivity)
at Ranorex.PDF.PDFCreator..ctor(XmlNode rootNode, String xml, RanorexGraphics rg)
at Ranorex.PDF.Program.Main(String[] args)
at Ranorex.PDF.Creator.CreatePDF(String input, String output, String xml, String details)
at Ranorex.AutomationHelpers.Modules.ReportToPDFModule.ConvertReportToPDF(String pdfReportPath, String xml, String details) in C:\myproject\Ranorex\myprojectRx\RanorexAutomationHelpers\Modules\ReportToPDFModule.cs:line 154
at Ranorex.AutomationHelpers.Modules.ReportToPDFModule.CreatePDF() in C:\myproject\Ranorex\myprojectRx\RanorexAutomationHelpers\Modules\ReportToPDFModule.cs:line 104
I compared my version of the .rxlog.data file with the one created by the Ranorex solution: it is true, mine is missing those 'activity' elements inside 'activity', just as the error message above says.
Maybe I am missing how to correctly link or use the calls to 'Report' to report in my C# code?

Note that I can open my .rxlog file within Ranorex Studio and can see what I am recording there. But I need to convert that to PDF.
Anyone has done that so far?

Thanks,

michael.wowro
Posts: 10
Joined: Thu Feb 10, 2022 2:03 pm

Re: Test reports to non-ranorex users, how?

Post by michael.wowro » Mon May 29, 2023 3:46 pm

Find the current solution here: https://stackoverflow.com/a/76358278/1777526

YvesL
Certified Professional
Certified Professional
Posts: 38
Joined: Mon Jan 13, 2020 2:20 pm

Re: Test reports to non-ranorex users, how?

Post by YvesL » Fri Jun 16, 2023 11:48 am

Sending rxzlog reports to people who don't have Ranorex Studio installed is indeed a very common need and other formats, like html, are not convenient at all.

It's high time Ranorex provides a stand-alone version of the ReportViewer.

This has been requested for years... still waiting for it.

rk325
Posts: 23
Joined: Mon Mar 27, 2023 6:02 pm

Re: Test reports to non-ranorex users, how?

Post by rk325 » Fri Jun 16, 2023 3:26 pm

Actually, I am working with Ranorex version 10.5.4, and do not need any extra code or Ranorex Automation Helper libraries to create these PDFs.
Right-click the main Test Suite in your .rxtst file opened in Ranorex Studio, select "Properties". Go to the "Report" tab and check the option "Create single report PDF" it gets created in the "Export PDF to this directory" folder that you also specify on that properties window.

I am able to include this PDF as an artifact in my Azure pipeline and believe me, it displays errors that I am not able to repeat/see when I test in my localhost. Correcting these "errors" and now I am editing that PDF file to be appropriate for my final users.

FinbarrRoche
Posts: 2
Joined: Tue Nov 08, 2022 9:05 am

Re: Test reports to non-ranorex users, how?

Post by FinbarrRoche » Tue Nov 21, 2023 8:45 am

Support Team wrote:
Thu Jul 16, 2020 2:59 pm
Here you go! https://upload.ranorex.com/s/pA5T9L2iqREXaNp

Hopefully, it won't get deleted this time :)
This got deleted again, could you please send another link?