Page 1 of 1

ReportToPDF problem

Posted: Fri Feb 15, 2019 9:15 am
by yaro2o
Hi, i heave a problem with ReportToDPF . In my solution I heave 2 TestSuite and for each TS at the end in teardown I convert report to PDF. I add Report toPDFModule from RanorexAutomationHelpers . And if i start TestRun at the end i get 2 pdf with other names but the content in both is from the last one. Ranorex v 9.0

Re: ReportToPDF problem

Posted: Thu Feb 21, 2019 11:38 am
by yaro2o
Any ideas or suggestions ?

Re: ReportToPDF problem

Posted: Thu Feb 21, 2019 12:02 pm
by odklizec
Hi,

It sounds like a bug in ReportToPDF helper? Are you sure you are using most recent version of Rx helpers? The actual version of ReportToPDF is 1.0.15. You can update Rx helpers via Manage Packages dialog. If the problem still happens with most recent version, then I would suggest to contact Ranorex support (via support form). In a meantime, I would try running the solution in two steps (via command line). For example, run the solution with explicitly defined testsuite 1 and then run it again, with testsuite 2 (usign /testsuite parameter).

Re: ReportToPDF problem

Posted: Thu Feb 21, 2019 1:20 pm
by yaro2o
OK, thank you for your answer, that works but I have a question whether it is possible to indicate where the program should create pdf file ?

Re: ReportToPDF problem

Posted: Thu Feb 21, 2019 1:29 pm
by odklizec
It should be possible to define output PDF path via PdfDirectoryPath parameter, available in ReportToPDF module. You should simply create a global parameter, fill it with your expected path and connect it to ReportToPDF module. This should instruct ReportToPDF where to create PDF file.