Page 1 of 1

Manage Log Reports

Posted: Fri Apr 16, 2010 12:21 pm
by Enjoy
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.

Re: Manage Log Reports

Posted: Mon Apr 19, 2010 10:40 am
by Support Team
Hi!

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.
Report.Success();
and
//Logs a logical failure (e.g. test step failure) message, using the default category.
Report.Failure();
in main method.

Regards
Peter
Ranorex Support Team