Use of ReportToPDFModule supplied in Ranorex 7.2

Best practices, code snippets for common functionality, examples, and guidelines.
Jean-Louis GOUEZ
Posts: 7
Joined: Thu Oct 19, 2017 3:53 pm

Use of ReportToPDFModule supplied in Ranorex 7.2

Post by Jean-Louis GOUEZ » Mon Oct 30, 2017 12:10 pm

Hi Fox,
The new Ranorex 7.2 comes with an automation helper called ReportToPDFModule.
Unfortunately, I didn't see any example about the way to use it.
I only see a tutorial video explaining that I need to create a TEARDOWN section on a test suite and then drop the source code to this section.
In such a case, I don't see how to define variables such "PdfName" or "Details".
Another question is about the "Xml" variable contained in this module. What's the use ?

Finally, I really appreciate an example (or at least explanations) on how to use this module in a programatic way.
The way I use Ranorex is sometime sligthly different than the regular way (I sometime use an external file to get environment parameters) and I would like to manage the generation of the PDF according to 1 parameter so I would like to use an "user code" to ask for the conversion.

Thank you for your help.

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

Re: Use of ReportToPDFModule supplied in Ranorex 7.2

Post by odklizec » Mon Oct 30, 2017 1:34 pm


A detailed description of ReportToPDFModule can be found here: ... conversion

And this guide should help you with adding ReportToPDFModule to your project: ... on-helpers

Hope this helps?
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