Page 1 of 1

How do I check log file for erros and warnings?

Posted: Tue Oct 28, 2014 6:31 am
by flashmark
Hi,

I'm new to software automation filed and don't have programming background.
But I've to automate one of our application using ranorex.
I want to know how can I check the application log file for errors and warning using ranorex.
I just want to mark that test case as fail if there any error/warning exists in our application log file.

thanks

Re: How do I check log file for erros and warnings?

Posted: Tue Oct 28, 2014 1:57 pm
by palbaret
Use a UserCode extension
then with .net function open your log file and check its content

if you find an Error, raise a Report.failure("Some error are present in the log file")