UiPath Documentation
test-manager
2021.10
false
Test Manager 用户指南
  • 入门指南
    • 入门指南
      • 与 Studio 集成
      • 创建项目
      • 创建测试用例
      • 使用 Task Capture 记录测试用例
  • 项目管理
  • 项目操作和实用程序
  • Test Manager 设置
  • ALM 工具集成
  • API 集成
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

测试结果

Test Manager 中的测试结果提供已执行的测试集的设计、执行、更新或删除信息。

当您开始执行测试集时,Test Manager 将经历以下过程:

  1. 系统将在 Test Manager 的“测试结果”部分中创建测试执行。这将用作测试结果的容器。
  2. 对于已执行的测试集中的每个测试用例,都会生成一个空的测试用例日志。此日志会附加到测试执行,并将保存其关联的测试结果。
  3. 随着执行的继续,Test Manager 会在每个测试用例日志中填充结果和相关日志信息。
备注:

每次创建测试执行时,都会添加原始测试集中所有关联测试用例的测试用例日志。这意味着,无论对原始测试集进行了更新还是删除,现有测试执行都保持一致。

下图说明了在 Test Manager 中执行测试集的过程。

因此,在执行测试集后,对测试集或其关联的测试用例进行的任何更改都不会影响先前执行的结果。即使删除测试集,所有测试执行也保持不变。

分析测试结果​

To view test executions, open Test Results in Test Manager. The execution of each test is listed as a test execution entry. To understand how the test executions work behind the scenes, see Test Results.

通过分析测试执行,您可以采取以下操作:

  • 查找已通过 Orchestrator 手动或自动执行的测试结果。
  • 检查运行测试执行的进度。
  • 检查日志和附件。
  • 如果您有应用程序生命周期管理工具集成,则直接从 Test Manager 中创建缺陷管理系统。

默认情况下,测试执行根据执行完成日期进行排序。当前正在运行和待处理的执行位于顶部。

您可以通过分配给每个测试执行的颜色代码来识别状态,如下所示:

  • 绿色: 通过的测试用例。
  • 红色: 失败的测试用例。
  • 灰色: 没有明确结果的测试用例,例如尚未执行但属于当前正在执行的测试集的一部分的测试用例。

自动化测试的结果​

The results from automated test executions are imported from Orchestrator automatically. To have your automated tests imported to Test Manager, you need to meet the following condition: The automated test needs to be part of a test set on your Test Manager project. For more information, see Automated Tests.

备注:

如果 Orchestrator 中的测试执行包含 Test Manager 中多个项目的测试用例的结果,则测试执行将在 Test Manager 中拆分。结果显示在测试用例所在的项目中。

设置测试执行结果​

To get detailed results from a test execution, go to Test Results and click an entry to open the detailed view. A typical test execution detailed view shows information on when the executions started, duration, and test case logs.

You can use the Reporting Date filter to set a single date for all the results from the test execution. This is useful when you run test overnight, where some test cases are executed before and after midnight. Otherwise, the results are going to be split between different dates in the reports.

In the Results section you can examine all the test cases that were executed within the test set. You can take actions for each test case. For more info, see Test case logs

测试用例日志​

The test case logs hold information such as steps description, error messages, and screenshots that were collected during a test set execution. To open a test case log, go to Test Results, open a test execution and then click a test case Key.

备注:

The Screenshots tab is available only if screenshots were taken during the test case execution. To make sure that Orchestrator takes screenshots during executions, check for Test Case Execution Artifacts permissions.

You can examine the test case details by clicking the Open Test Case icon.

根据测试结果创建缺陷​

You can create defect reports including the execution log to your external defect management system, if you already have it integrated with Test Manager. For more information, see Defect synchronization.

缺陷同步​

You can synchronize execution results with external tools, as part of the Application Lifecycle Management tool integration. Information that is gathered during execution, such as results, logs, timestamps, and other details is synchronized with the tool that you have integrated with Test Manager.

请注意,目前每个项目只能有一个整体上启用缺陷同步的连接。

备注:

创建缺陷​

您可以在“测试结果”页面中访问测试用例日志时创建缺陷。

  1. 导航至“测试结果”

  2. 打开测试结果,然后单击测试用例键以打开日志。

  3. 单击“任务”,然后选择“创建缺陷”。

系统将创建缺陷并将其与您的外部工具同步。您可以导航到具有同步缺陷的测试执行结果,直接在工具中打开缺陷(例如 Atlassian Jira)。

当您取消缺陷与外部工具的链接时,在该工具中创建的条目保持不变。在 Test Manager 中,测试执行结果不会与外部工具链接。

  1. 导航至“测试结果”
  2. 打开测试结果,然后单击“任务”
  3. 选择“取消缺陷链接”。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新