Generating a log file

Ask general questions here.
8samarth
Posts: 1
Joined: Fri Jul 07, 2017 8:32 am

Generating a log file

Post by 8samarth » Fri Jul 07, 2017 8:36 am

Hi,

I am fairly new to ranorex and am still in the evaluation phase of it.
I wanted to know that how do I generate a log file for all the tests that I am using to automate a file in an application?
A simple check file with pass and fail statistics.

Regards,
Samarth

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

Re: Generating a log file

Post by odklizec » Fri Jul 07, 2017 2:58 pm

Hi,

Ranorex already creates a 'log' during the test, it's called Ranorex report ;) But if you want something simpler, like a plain txt with list of success/failure scenarios, then no, there is no such functionality in Ranorex. You will have to cook something up if you need such log. The easiest way could be a code module placed in TearDown section of each test case, which will read the success/failure status of test case and eventually write it down (along with TC name) to a text file.
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