Add fileversion of AUT to the header of the report

Ask general questions here.
a.s
Posts: 4
Joined: Thu Jul 06, 2017 3:25 pm

Add fileversion of AUT to the header of the report

Post by a.s » Thu Jul 06, 2017 4:01 pm

I'm currently trying to figure out how to add some information to the header area of the report page.
I would like to see the file version and possibly other things next to the already displayed information (like OS, Computername, screensize etc).
Currently I'm running some usercode to extract it from the exe-file calling

Code: Select all

FileVersionInfo.GetVersionInfo
and then logging it to the report.
This approach is working reliably but the information is not immediately displayed on the starting page of the report.
Is there a smarter way to get this displayed?
I take it that the header information comes from the XSL file (by filling in the fields of the template named "executionInformation"). Can this template be extended and can the logic that is used to create the header information be tweaked in such a way?

Ideas anyone?
best regards
alex

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

Re: Add fileversion of AUT to the header of the report

Post by odklizec » Fri Jul 07, 2017 11:02 am

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

a.s
Posts: 4
Joined: Thu Jul 06, 2017 3:25 pm

Re: Add fileversion of AUT to the header of the report

Post by a.s » Fri Jul 07, 2017 11:27 am

Hi odklizec

thanks for your reply
this looks very promising
I'll give it a try as soon as (might well take a couple days) and report back

thanks and regards
alex

a.s
Posts: 4
Joined: Thu Jul 06, 2017 3:25 pm

Re: Add fileversion of AUT to the header of the report

Post by a.s » Fri Jul 07, 2017 11:51 am

well...

that did it!
and faster than I thought it would :D

thanks again!
alex

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

Re: Add fileversion of AUT to the header of the report

Post by odklizec » Fri Jul 07, 2017 11:58 am

You are welcome. Nice to hear it worked for you ;)
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