Adding timestamp to report name

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Adding timestamp to report name

Post by Fergal » Wed May 24, 2017 11:30 am

Code: Select all

/rf:CustomReportName.rxlog
When the test suite is run from the command line, the code above will name the test report file "CustomReportName.rxlog".

Is it possible to add a timestamp to that report name, so that when the test is run from the command line, the report file name would be something like "CustomReportName_20170524_112349.rxlog" ?

Thanks.

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

Re: Adding timestamp to report name

Post by odklizec » Wed May 24, 2017 12:20 pm

Hi,

Use this sequence of placeholders in rf command:

Code: Select all

/rf:%S_%Y%M%D_%T.rxzlog
For detailed explanation of each placeholder, check this user guide chapter:
https://www.ranorex.com/support/user-gu ... tml#c16089
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

Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Adding timestamp to report name

Post by Fergal » Wed May 24, 2017 2:32 pm

Thanks very much odklizec, helpful as always, just what I needed!

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

Re: Adding timestamp to report name

Post by odklizec » Wed May 24, 2017 2:38 pm

You are welcome. I'm glad I could help ;)
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