Manage Log Reports

Ask general questions here.
Enjoy
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: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Manage Log Reports

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

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
.
Image