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: 3950
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: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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)
.
Image

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: 53
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: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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)
.
Image

loonquawl
Posts: 53
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.