Hi All,
I wanted to know if there is a python/c# script that can automatically convert the rxlog file to html format without having to open the Ranorex studio.
would be nice to know that to better automate this part.
Script to Generate Html files from .rxlog
Re: Script to Generate Html files from .rxlog
Hi,
No, there is no such script available. But you can instruct Ranorex to create HTML file instead of rxlog file. Simply change report extension to HTML. The problem is, that if you want to distribute such report, you will have to collect bunch of files (css, xsl, html, data.html and all images and snapshots) eventually created during test run. In other words, using rxlog and standalone report viewer is much simpler solution.
No, there is no such script available. But you can instruct Ranorex to create HTML file instead of rxlog file. Simply change report extension to HTML. The problem is, that if you want to distribute such report, you will have to collect bunch of files (css, xsl, html, data.html and all images and snapshots) eventually created during test run. In other words, using rxlog and standalone report viewer is much simpler solution.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
-
- Posts: 2
- Joined: Mon Mar 14, 2022 2:41 pm
Re: Script to Generate Html files from .rxlog
Thank you
In my case, I need both the html file (with all its other files) and the rxlog file
In my case, I need both the html file (with all its other files) and the rxlog file
Re: Script to Generate Html files from .rxlog
Hi,
Well, in this case, your only option is to enable creation of compressed (rxzlog) report, along with uncompressed (rxlog OR HTML) report. You can't have both rxlog and HTML. Eventually, you can extract uncompressed rxlog files from rxzlog (via code). Rxzlog is just zipped rxlog
Well, in this case, your only option is to enable creation of compressed (rxzlog) report, along with uncompressed (rxlog OR HTML) report. You can't have both rxlog and HTML. Eventually, you can extract uncompressed rxlog files from rxzlog (via code). Rxzlog is just zipped rxlog
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
-
- Posts: 2
- Joined: Fri Sep 29, 2017 2:25 pm
Re: Script to Generate Html files from .rxlog
.NET and C#:
Create an object to read files with the extension .rxlog.data with System.Xml.XMlReader.Create(<file_path>). Read the given XML structure.
Transform it to HTML with your CSS formatting and into tables. At the end, write everything into a text file with System.IO.StreamWriter by calling System.IO.File.CreateText() and also System.IO.File.AppendText.
I don't think there is an official application to do the conversion. Unfortunately, everyone has to do it for themselves. But once you have done it, it works.
Create an object to read files with the extension .rxlog.data with System.Xml.XMlReader.Create(<file_path>). Read the given XML structure.
Transform it to HTML with your CSS formatting and into tables. At the end, write everything into a text file with System.IO.StreamWriter by calling System.IO.File.CreateText() and also System.IO.File.AppendText.
I don't think there is an official application to do the conversion. Unfortunately, everyone has to do it for themselves. But once you have done it, it works.