Regression testing software can help you make the manual regression testing process automated. It can save a lot of time and effort. But what is regression testing software? What should you look for when you are deciding on the regression testing tool of your choice?...
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.
Screencast
Download the sample solution
The explanations in this chapter are based on a sample solution that you can download below.
Sample solution
Time: 15 minutes
Install the sample solution:
Unzip to any folder on your computer.
Start Ranorex Studio and open the solution file Introduction.rxsln
Hint
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
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)
Report level threshold of 110 (Success)
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.
When this option is selected, the setting is inherited from the direct-parent structuring item.
Example
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:
Result
The report levels for the actions in this recording and the report level threshold of the test case now look like this: