As i'm in learning curve on Ranorex product, i want to do some custom reporting. I will try to describe step by step what i'm doing.
I used the Mail Logger provided in this post : http://www.ranorex.com/blog/customizing-ranorex-reports
And since i only want to log success/failure/error in my custom mail logger. In my IReportLogger.LogData and IReportLogger.LogText, i did the following code to check the report level, to log only the ReportLevel that i want, but I THINK this is not the best method.
Code: Select all
if (level.Equals(ReportLevel.Failure) ||
level.Equals(ReportLevel.Error) ||
level.Equals(ReportLevel.Success))
Code: Select all
2012/10/15 09:34:38.215 SUCCESS Test Test Module 'OpenBrowser' completed with status 'Success'.
2012/10/15 09:34:39.985 SUCCESS Validation Screenshot of item 'PortalRepository.Portal.Container.txt_Connect' does contain the specified image.
2012/10/15 09:34:41.203 SUCCESS Test Test Module 'PortalVisualTest' completed with status 'Success'.
2012/10/15 09:34:41.659 SUCCESS Test Test Module 'CloseBrowser' completed with status 'Success'.
2012/10/15 09:34:43.732 SUCCESS Test Test Module 'WriteErrorMessage' completed with status 'Success'.
2012/10/15 09:34:43.732 SUCCESS Test Test Case Iteration #1 completed with status 'Success'.
2012/10/15 09:34:43.732 SUCCESS Test Test Case 'PortalVisualResponsiveness' completed with status 'Success'.
2012/10/15 09:34:43.732 SUCCESS Test Test Suite 'IntegrationTest' completed with status 'Success'.
Code: Select all
2012/10/15 09:34:43.732 SUCCESS Test Test Case 'PortalVisualResponsiveness' completed with status 'Success'.
2012/10/15 09:34:43.732 SUCCESS Test Test Suite 'IntegrationTest' completed with status 'Success'.
I also read this post :
http://www.ranorex.com/forum/ranorex-re ... tml#p11489
They are talking about metainfos in the LogData and LogText, where are they exactly ?
Thanks in advance.