studio
2024.10
true
Studio User Guide
Last updated Nov 4, 2024

Activity Coverage

Overview

You can use the workflow activity coverage panel to check whether your test cases have been covered or not and look for redundancies. The test execution results are shown in Test Explorer, in the Activity Coverage panel. The coverage calculations are done by the Robot.

Analyzing activity coverage results

You can analyze the workflow's activity coverage, debug newly created test case, and view covered and uncovered activities. To support your workflow debugging, you can see the traversed path, by going to Test Explorer, opening the Activity Coverage panel and double-clicking the test case. You can see the path highlighted in green and any skipped activities in red. Additionally, you can quickly identify whether a test case has passed or failed and view the result.



Activity Coverage Scenarios

Partial coverage rate

Consider the partial coverage rate of the following workflow that automates a loan management process.



In this high-volume short-term loan scenario, the activity coverage result shows that 53% of the workflow activities were covered during execution. This flowchart uses a Flow Switch activity. You can create another test case to follow the execution of different scenario, for low-volume loans. Therefore, depending on your automation needs, you can create separate test cases to cover each scenario during the execution.

Full coverage rate

The following full coverage rate scenario tests all activities, for automating the UiBank app for applying for a loan. This workflow uses an XLSX file to import test data as part of data-driven testing using Test Data File.

Figure 1. Overview of the full coverage rate test case

The activity coverage results show a 100% coverage rate, meaning that the data set used in the test case, together with the added activities went through all possible scenarios.

Figure 2. Full activity coverage rate in the Test Explorer

  • Overview
  • Analyzing activity coverage results
  • Activity Coverage Scenarios
  • Partial coverage rate
  • Full coverage rate

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.