Welcome to the new Ranorex Support Portal

Report levels

Report levels categorize events that happen during a test run and govern what information is included in the report. When your tests contain hundreds of test cases with thousands of modules, report levels are the key to striking the balance between detail and brevity. In this chapter, you’ll find out how report levels work and how to use them.

In this chapter

Download the sample solution

The explanations in this chapter are based on a sample solution that you can download below.


Sample solution

Theme: Build a test
Time: 15 minutes

Install the sample solution:

  1. Unzip to any folder on your computer.

  2. Start Ranorex Studio and open the solution file Introduction.rxsln

The default report levels

Ranorex Studio comes with 6 default report levels, each with a corresponding color and integer value.

Default Ranorex report levels
  • The higher the integer value of a report level, the more important it is, i.e. a Debug notification is less important than an Info notification.
  • Recording modules use the default report levels.
  • In code modules, you can ⇢ define your own report levels.

The purpose of report levels

In a test report, one executed action means at least one report message. In large test suites with thousands of actions, the test report can quickly become cluttered. With report levels, you can control which messages are included in the report. Report levels categorize report messages by importance and act as a filter.

The image below illustrates this.

Actions raising report attention by report levels
  1. Actions #1 through #4 and #6 through #7 have the report level Info (value = 20).

  2. A validation always either succeeds or fails, and it’s usually crucial to include this in a test run. Therefore, a successful test validation (action #5) has the report level Success (value = 110). A validation that fails has the report level Failure (value = 120).

Report level threshold

The report level threshold is the integer value that defines the minimum report level a message must have to be included in the report. If the report level is below this value, the message will not appear in the report.

The report level threshold is set in the test suite for structure items, i.e. the test suite item, test cases, and smart folders.

The images below illustrate this.

Report threshold level of 20 (Info)

  1. Threshold set to Info (value = 20).

  2. In the report, all messages with a minimum report level of Info are included.

Report level threshold of 110 (Success)

  1. Threshold set to Success (value = 110).


  2. In the report, all messages with a minimum report level of Success are included. In this case, that’s only the message notifying you of a successful validation.


Set report level threshold

The report level threshold is set in the test suite for structure items, i.e. the test suite item, test cases, and smart folders. By default, structure items inherit the setting from their direct parent.

  1. Change to the test suite view.


  2. Right-click the test suite, a test case, or a smart folder.


  3. Click Report level and select the desired value.


  1. Inherit


When this option is selected, the setting is inherited from the direct-parent structuring item.


Let’s apply the above explanations to an example. We’ll insert a log message and set its report level.

Initial situation

The recording module in the sample solution contains 7 recorded actions, one of them a validation action.

The recognition level of the test case is set to Success. This means that currently, only the successful or failed validation would be reported during a test run.

We now want to add a log message which tells us that the Submit button has been clicked, and of course we want it to show up in the report, whereas all other actions except for the validation shouldn’t show up.

Here’s how:

  1. Add a log message after action #4.

  1. Enter a message and set its report level to Success.



The report levels for the actions in this recording and the report level threshold of the test case now look like this:

  1. Log message with report level Success in report.


  2. Successful test validation with report level Success in report.




Get the latest test automation information right in your mailbox.


© 2024 Ranorex GmbH. All Rights Reserved