概述
您可以使用工作流活动覆盖率面板来检查测试用例是否已涵盖其中,以及查找冗余。测试执行结果显示在“测试资源管理器”的“活动覆盖率”面板中。覆盖率计算由 Robot 完成。
分析活动覆盖率结果
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.


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


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%,这意味着测试用例中使用的数据集以及添加的活动将遍历所有可能的场景。


9个月前更新