How to get Console Logs

Ask general questions here.
AutomationViaRano
Posts: 7
Joined: Fri Jul 10, 2020 3:18 am

How to get Console Logs

Post by AutomationViaRano » Wed Jul 15, 2020 10:34 pm

Hi Team,

When I run my Test Suite, the console log opens and displays all details what the Script is doing. However, the moment the Test Case is completed either fail or pass, the Console Log disappears. Is there any way to get the Logs in txt or any other format?

Thanks

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

Re: How to get Console Logs

Post by odklizec » Fri Jul 17, 2020 8:56 am

Hi,

It should be possible to redirect the console to file using this command line:
Test.exe > c:\temp\ConsoleFile.txt
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

AutomationViaRano
Posts: 7
Joined: Fri Jul 10, 2020 3:18 am

Re: How to get Console Logs

Post by AutomationViaRano » Thu Aug 06, 2020 3:17 am

Hi Odklizec,

Thanks for the reply.

Could you please elaborate on it? Where exactly I have to put such statement?
And are you referring to Test Suite Name by suggesting Test.exe?

The *.exe for my Test Suite is in \bin\debug folder.

Thank you for the help.

Thank you

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

Re: How to get Console Logs

Post by odklizec » Thu Aug 06, 2020 7:46 am

Hi,

You must create a batch file (e.g. StartTest.cmd), in which you specify the command line I suggested. Of course, you must use the path to your test.exe ;)
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