Chapter 74. Coverage reports for test scenarios
The test scenario designer provides a clear and coherent way of displaying the test coverage statistics using the Coverage Report tab on the right side of the test scenario designer. You can also download the coverage report to view and analyze the test coverage statistics. Downloaded test scenario coverage report supports the .CSV
file format. For more information about the RFC specification for the Comma-Separated Values (CSV) format, see Common Format and MIME Type for Comma-Separated Values (CSV) Files.
You can view the coverage report for rule-based and DMN-based test scenarios.
74.1. Generating coverage reports for rule-based test scenarios
In rule-based test scenarios, the Coverage Report tab contains the detailed information about the following:
- Number of available rules
- Number of fired rules
- Percentage of fired rules
- Percentage of executed rules represented as a pie chart
- Number of times each rule has executed
- The rules that are executed for each defined test scenario
Follow the procedure to generate a coverage report for rule-based test scenarios:
Prerequisites
- The rule-based test scenario template are created for the selected test scenario. For more information about creating rule-based test scenarios, see Section 65.1, “Creating a test scenario template for rule-based test scenarios”.
The individual test scenarios are defined. For more information about defining a test scenario, see Chapter 67, Defining a test scenario.
NoteTo generate the coverage report for rule-based test scenario, you must create at least one rule.
Procedure
- Open the rule-based test scenarios in the test scenario designer.
- Run the defined test scenarios.
- Click Coverage Report on the right of the test scenario designer to display the test coverage statistics.
- Optional: To download the test scenario coverage report, Click Download report.
74.2. Generating coverage reports for DMN-based test scenarios
In DMN-based test scenarios, the Coverage Report tab contains the detailed information about the following:
- Number of available decisions
- Number of executed decisions
- Percentage of executed decisions
- Percentage of executed decisions represented as a pie chart
- Number of times each decision has executed
- Decisions that are executed for each defined test scenario
Follow the procedure to generate a coverage report for DMN-based test scenarios:
Prerequisites
- The DMN-based test scenario template is created for the selected test scenario. For more information about creating DMN-based test scenarios, see Section 66.1, “Creating a test scenario template for DMN-based test scenarios”.
- The individual test scenarios are defined. For more information about defining a test scenario, see Chapter 67, Defining a test scenario.
Procedure
- Open the DMN-based test scenarios in the test scenario designer.
- Run the defined test scenarios.
- Click Coverage Report on the right of the test scenario designer to display the test coverage statistics.
- Optional: To download the test scenario coverage report, Click Download report.