Report as pdf

Class library usage, coding and language questions.
User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Fri May 03, 2013 3:16 pm

Hello,

We have changed reporting since Ranorex 4.x.
Additionally, a data file is used to store report information.

The reports are now generated in HTML format and not in XML.
Therefore, you could rename your reports simply into HTML.
Rename your <TestSuite>.rxlog into <TestSuite>.html and <TestSuite>.rxlog.data into <TestSuite>.html.data.

If you want to convert it to pdf, you could use tools like Bullzip.

Regards,
Markus (T)
.
Image

sop
Posts: 11
Joined: Mon Mar 18, 2013 7:29 am

Re: Report as pdf

Post by sop » Sat May 04, 2013 9:43 am

thank you, it works

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Mon May 06, 2013 3:38 pm

Hello,

You are welcome :-)

Regards,
Markus (T)
.
Image

kacy
Posts: 1
Joined: Tue May 14, 2013 11:48 pm

Re: Report as pdf

Post by kacy » Tue May 14, 2013 11:53 pm

Changing the file names to .html and .html.data works for me, but only when the files are not relocated. If I move the files (.html and .html.data) from their original folder, opening the .html file gives me a blank IE page.

Am I missing something?

Thanks,
Kacy

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Wed May 15, 2013 3:01 pm

Hello,

In order to open reports on a specified location, the following files need to be stored in the same folder:

RanorexReport4.css
RanorexReport4.png
RanorexReport4.xsl

Additionally, the image folder (if exists) needs to be copied into this folder.

Regards,
Markus (T)
.
Image

AutomationTester
Posts: 30
Joined: Mon Jan 21, 2013 1:31 pm

Re: Report as pdf

Post by AutomationTester » Fri Jul 05, 2013 8:03 am

Hi Ciege,

I just did what Markus said in this thread. But, It's not opening the file in IE. Instead, It's asking to save the rxlog to computer and then open it. I did that around fifty times. It's saving the same file again and again but it's just not opening the file. I also tried the method posted in This http://www.ranorex.com/forum/renaming-r ... t4115.html Thread. This also not working in non-Ranorex machine. It shows Ranorex report viewer is not responding. Please Help.

My IE version is 9 and Ranorex version is 4.0.4.

Regards,
Amiruddin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Fri Jul 05, 2013 10:34 am

Hello Amiruddin,

Have you renamed your files into .HTML and .HTML.DATA?
Could you please post or send us your report in order to analyze it?

Regards,
Markus (T)
.
Image

AutomationTester
Posts: 30
Joined: Mon Jan 21, 2013 1:31 pm

Re: Report as pdf

Post by AutomationTester » Mon Jul 08, 2013 6:51 am

Hai Markus,

I did as I mentioned in my earlier post.It's just opening the template and not the entire report.. Please find the attachment.

Regards,
Amiruddin
Attachments
Report.rar
(2.6 MiB) Downloaded 229 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Mon Jul 08, 2013 1:23 pm

Hello,

Thank you for your report.

You report contains one *.HTML.RXLOG file and one *.RXLOG.DATA file.
The report file extensions need to be *.RXLOG and *.RXLOG.DATA or *.HTML and *.HTML.DATA.
Otherwise, you would not be able to open your report.

If you want to open your report using ReportViewer, you would need to delete 'HTML' in the first file.
If you want to open your report in a browser, you would need to rename your files into *.HTML and *.HTML.DATA. Please take a look at the attached report files.

Regards,
Markus (T)
Attachments
Report.zip
(3.03 MiB) Downloaded 246 times
.
Image

AutomationTester
Posts: 30
Joined: Mon Jan 21, 2013 1:31 pm

Re: Report as pdf

Post by AutomationTester » Thu Jul 18, 2013 8:15 am

Hai Markus,

The report you sent are works like a charm in IE,Firefox and Safari on windows. Thanks for the reports. Actually, If I rename the *.rxlog file, It renames as *.rxlog.html. I don't know how you figure it out. BTW, It works I should work on it more precisely.

Thanks
Amiruddin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Report as pdf

Post by Support Team » Thu Jul 18, 2013 3:40 pm

Hello,

You are welcome.
I assume that the setting 'Hide extensions for known file types' is enabled in Windows.
You could disable it in 'Advanced Settings' of the 'Tools > Folder Options > View' in Windows Explorer.

Regards,
Markus (T)
.
Image

lmpring
Posts: 12
Joined: Thu May 15, 2014 4:40 pm

Re: Report as pdf

Post by lmpring » Tue Jul 08, 2014 7:22 pm

Hi all,

I really appreciate all of the options and ideas but I would find it really useful to be able to generate the report file as a .pdf in Ranorex itself. Easily creating and distributing the reports in a format all recipients can read would have saved me a lot of time (e.g. I would have loved to just post the .pdf to a shared google doc and be done rather than going through all of this)...

Perhaps it could be on the radar for a future release ? ;)...

Thanks!

Lisa

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Report as pdf

Post by krstcs » Tue Jul 08, 2014 7:40 pm

Lisa, the Ranorex team would like us to make feature request via email ([email protected]) from now on so they don't get lost in the shuffle of the forums. :D

Have you looked into custom report templates and printing to PDF? You could probably set up the template so that there was no "collapsing" of test elements (i.e. no "+" next to the test cases and iterations, but all lines are visible) and then just print the HTML report to PDF.
Shortcuts usually aren't...

lmpring
Posts: 12
Joined: Thu May 15, 2014 4:40 pm

Re: Report as pdf

Post by lmpring » Wed Jul 09, 2014 5:31 pm

Hi,

I haven't tried that but I'll give it a shot and let you know.

Thx-Lisa

lmpring
Posts: 12
Joined: Thu May 15, 2014 4:40 pm

Re: Report as pdf

Post by lmpring » Thu Aug 21, 2014 9:07 pm

krstcs wrote:Have you looked into custom report templates and printing to PDF? You could probably set up the template so that there was no "collapsing" of test elements (i.e. no "+" next to the test cases and iterations, but all lines are visible) and then just print the HTML report to PDF.
Sadly it's not turning out to be something I can easily do/figure out so I'm going to have to try something else.

Thanks anyway for your suggestion!

-Lisa