How do I check log file for erros and warnings?

Ranorex Spy, Recorder, and Studio.
flashmark
Posts: 13
Joined: Tue Oct 28, 2014 6:25 am

How do I check log file for erros and warnings?

Post by flashmark » Tue Oct 28, 2014 6:31 am

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

palbaret
Posts: 26
Joined: Wed Jun 27, 2012 4:21 pm

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

Post by palbaret » Tue Oct 28, 2014 1:57 pm

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")