订阅

UiPath Studio

UiPath Studio 指南

活动覆盖率

概述


您可以使用工作流活动覆盖率面板来检查测试用例是否已涵盖其中,以及查找冗余。测试执行结果显示在“活动覆盖率”面板中。

分析活动覆盖率结果


You can analyze the workflow's activity coverage, debug newly created test case and view covered and uncovered activities. To assist your workflow debugging, you can see the traversed path, by 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 passedpassed or failed failedfailed and view the result.

📘

注意

您仅可检查包含验证活动的测试用例的测试结果:

活动覆盖场景


部分覆盖率

考虑以下工作流的部分覆盖率,该工作流将贷款管理流程自动化。

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.

完整覆盖率

The following full coverage rate scenario tests all activities. This workflow uses a CSV file to import data and a For Each Row in Data Table activity to pass it through each activity as part of data-driven testing.

活动覆盖率结果显示覆盖率达到 100%,这意味着测试用例中使用的数据集以及添加的活动将遍历所有可能的场景。

4 个月前更新

活动覆盖率


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。