Manage Log Reports

Ask general questions here.
Posts: 9
Joined: Tue Apr 13, 2010 10:05 am

Manage Log Reports

Post by Enjoy » Fri Apr 16, 2010 12:21 pm

hi again, i would like to know how can i make a if condition to verify if all the Ranorex.Validate.. points were passed or failure to output a message ate the end of the report with the a message like "Test Passed" or "Test Failed" instead of the default Message Success Replay completed with no errors.

I imagine to do the if claus on the Recording1.cs but i saw that the code will be lost.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Manage Log Reports

Post by Support Team » Mon Apr 19, 2010 10:40 am


No in recording.cs you cannot change the default message on failure and success.
The only way to change this in recording is to write your own logger.
But you can use the methods
//Logs a logical success (e.g. test step success) message, using the default category.
//Logs a logical failure (e.g. test step failure) message, using the default category.
in main method.

Ranorex Support Team