PDF Reports

Ranorex Spy, Recorder, and Studio.
User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

PDF Reports

Post by giuseppe.lacagnina » Fri Nov 06, 2015 3:10 pm

Good day.

I am running Ranorex Version 5.3.2.23378 on Windows 7 (64 bit) and .NET Runtime Version 4.0.30319.42000.

I need to produce - automatically - pdf reports from the existing report files. I have found official help in a page with title "Convert your Ranorex Report to PDF". However, I meet the following problems:

- I do not find any ReportToPDF.exe executable
- trying to add the reference to Ranorex.PDF.dll I do not find this .dll in the list

Is there something wrong with my version? How can I get this feature?
Thanks in advance.

alan722
Posts: 25
Joined: Mon Jan 12, 2015 1:34 pm

Re: PDF Reports

Post by alan722 » Fri Nov 06, 2015 9:29 pm

Hi there,

If I remember correctly there should be a download link somewhere there that will provide you the exe and dlls

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6544
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: PDF Reports

Post by odklizec » Fri Nov 06, 2015 11:15 pm

Hi,

All necessary files for PDF report conversion can be found in the article. You can find them here...
http://www.ranorex.com/blog/ranorex-rep ... n#download
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: PDF Reports

Post by giuseppe.lacagnina » Mon Nov 09, 2015 9:09 am

Thanks!!! I will try it out.

All the best.

ragtopdodge
Posts: 4
Joined: Fri Dec 08, 2017 12:06 am

Re: PDF Reports

Post by ragtopdodge » Fri Dec 08, 2017 12:08 am

Any idea where I can download/get this Ranorex.PDF.DLL?

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

Re: PDF Reports

Post by Support Team » Fri Dec 08, 2017 1:14 pm

Hi ragtopdodge,

The library and a more detailed instruction how to use the pdf converter can be found in our blog - Ranorex Report to PDF conversion

In addition to that, the library is also available in our so-called automation helpers (available in Ranorex 7.2 an newer). Here is a list of available automation helpers and a tutorial how to include them in your project

Hope that helps.
Regards,
Markus (S)

ragtopdodge
Posts: 4
Joined: Fri Dec 08, 2017 12:06 am

Re: PDF Reports

Post by ragtopdodge » Tue Jan 23, 2018 1:24 am

Yes, I looked at that blog already.

The blog mentioned a "ReportToPDF.exe" that I can't seem to find anywhere.

I went ahead and added the automation.helpers and DLL.

the "ReportToPDF.cs" only works if you kick off the testsuite.

If you kick off an individual test, no report is generated. It won't even enter any method in that class.

The code itself starts off at:

void ITestModule.Run()
{
//Delegate must be registered only once
if(!registered)
{
Report.Log(ReportLevel.Info, "Run() starts here");

//PDF will be generated at the very end of the testsuite

TestSuite.TestSuiteCompleted += delegate {


Notice that this depends on a TestSuite.

Do you have a sample that will generate a PDF when running just a Test and not the whole TestSuite?

loonquawl
Posts: 69
Joined: Wed Nov 22, 2017 10:08 am

Re: PDF Reports

Post by loonquawl » Wed Jan 24, 2018 9:53 am

Also, the Ranorex.Pdf.exe gets tagged as a virus and cannot be executed on Kaspersky -watched computers....

ragtopdodge
Posts: 4
Joined: Fri Dec 08, 2017 12:06 am

Re: PDF Reports

Post by ragtopdodge » Thu Jan 25, 2018 8:07 pm

loonquawl wrote:Also, the Ranorex.Pdf.exe gets tagged as a virus and cannot be executed on Kaspersky -watched computers....
You mean KGB/Moscow-watched computers.

:wink:

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

Re: PDF Reports

Post by Support Team » Thu Jan 25, 2018 10:10 pm

Hi all,

The PDF report is unfortunately only available for the whole test suite.

The reason for Kaspersky reporting the exe as a thread is because there are some Ranorex specific DLL's inside. As you might know, some of those DLL's are designed to inject into other applications. I'm afraid white listing the Report to pdf exe is the only way to avoid this.

Also, the standalone exe is availble in the blog under Where Can I Get the ReportToPDF Tool?

Please let me know if you have any further questions.

Regards,
Markus (S)

loonquawl
Posts: 69
Joined: Wed Nov 22, 2017 10:08 am

Re: PDF Reports

Post by loonquawl » Fri Jan 26, 2018 8:23 am

... renaming it to RanorexPdf.exe (omitting the second dot betweeen Ranorex and pdf) at least gets Kaspersky off the trail, which to me suggests that the unfortunate naming (.pdf.exe would be my attempt at getting someone to click a supposed document in a windows environment) is to blame in this instance, not some acutal content.
The renaming of course is only opssible for the manual conversion of reports, the freshly compiled .exe still has the offending neme, and is programmatically looked for under that name, so i don't feel able to ameliorate that.

armstronghm24
Posts: 42
Joined: Tue Dec 20, 2016 10:16 pm

Re: PDF Reports

Post by armstronghm24 » Thu Mar 11, 2021 8:21 pm

Is there any way to rename the ranorex.pdf.exe so it is built without the double extension? I am getting no support from Ranorex on this matter.

RickyPhilip
Posts: 1
Joined: Thu Jan 14, 2021 5:27 pm

Re: PDF Reports

Post by RickyPhilip » Wed Mar 31, 2021 5:57 am

You may find the answer to what you're looking for in https://www.ranorex.com/blog/ranorex-re ... onversion/ Kindly keep in mind that when executing a ReportToPDF tool from command line the return value ‘0’ signals a successful execution and the return value ‘-1’ signals a failure. I have worked on several Enterprise Application Development Services [https://thinkpalm.com/services/enterpri ... -services/] projects using Ranorex and it has helped me really well.

User avatar
Mike K
Certified Professional
Certified Professional
Posts: 28
Joined: Wed Jun 28, 2017 5:58 pm

Re: PDF Reports

Post by Mike K » Wed Mar 31, 2021 12:25 pm

Hello,

Ranorex 9.5 was released and it has a GUI option on the Report tab in Test Suite properties. This make it more convenient to set report to PDF now. Please give this a try and let us know how it goes.

Cheers,

melodican
Posts: 10
Joined: Fri Nov 04, 2016 12:50 pm

Re: PDF Reports

Post by melodican » Wed Apr 07, 2021 8:23 am

I'm a little bit confused about the new option to create and export a pdf report, because the pdf report is hard to find.
In the report properties page the Report file directoryis defined, pointing for example to D:\Ranorex\MyProject\Reports

I have enabled the Create Single PDF check box and the field Export PDF to this directory appears, filled with SinglePDF

I expected to find the pdf report her:
D:\Ranorex\MyProject\Reports\SinglePDF

but actually it is generated here:
D:\Ranorex\MyProject\bin\Debug\Reports\SinglePDF
which is hard to find and does not make any sense, because it is not the place configured in the properties.