Page 1 of 1

Display of report levels

Posted: Fri Mar 16, 2018 12:49 pm
by Rexette
Hi,

in my test suite I set the current report level based on a condition to info or debug as follows
Report.CurrentReportLevel = ReportLevel.Info

When for example report level info is selected I don't want the debug entries displayed in the report and vice versa. How can I achieve this?

Re: Display of report levels

Posted: Mon Mar 19, 2018 10:54 am
by McTurtle
Hello Rexette,

If you set the "Report.CurrentReportLevel = ReportLevel.Info;", then you will not see any debug messages from that moment on.
If you set "Report.CurrentReportLevel = ReportLevel.Debug;", then you will see both, Info and Debug messages. Actually, you will see all the possible messages that can be reported.

That's how report levels work. You cannot make Ranorex show report messages that are of a lower level (debug=10) and omit messages of a higher level (info=20). The report will always display "Failure" and then the report level that you set + everything in between:
ReportLevel.png
What you are trying to achieve is not very common. Maybe you should try to explain your use case in more detail and someone might come up with a better solution.

Regards,
McTurtle