Page 1 of 1

How to get Console Logs

Posted: Wed Jul 15, 2020 10:34 pm
by AutomationViaRano
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

Re: How to get Console Logs

Posted: Fri Jul 17, 2020 8:56 am
by odklizec
Hi,

It should be possible to redirect the console to file using this command line:
Test.exe > c:\temp\ConsoleFile.txt

Re: How to get Console Logs

Posted: Thu Aug 06, 2020 3:17 am
by AutomationViaRano
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

Re: How to get Console Logs

Posted: Thu Aug 06, 2020 7:46 am
by odklizec
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 ;)