test-manager
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Test Manager 用户指南

上次更新日期 2026年3月18日

执行自动化测试

您可以使用测试集“概述” 选项卡中的“执行” >“自动化执行” 选项来执行所有测试集。此选项将为 Test Manager 中创建的测试用例调用 Orchestrator。

如果测试集包含从 Studio 链接的测试用例,您也可以执行自动化测试。有关更多信息,请查看执行测试

先决条件

要在禁用“允许旧执行上下文”设置的情况下执行自动化测试,您需要在 Orchestrator 中拥有以下权限:
  • 在租户级别: Folders.ViewUsers.View
  • 在发布测试自动化包的文件夹级别: TestSets.CreateTestSetExecutions.Create

条件

重要提示: 要使用“ 执行自动化 ”选项,测试集中至少需要一个自动化测试用例。
  • 自动化测试执行的默认超时为四天,您无法更改。任何超过四天的自动化测试执行都将标记为“已取消”
  • 从 Orchestrator 链接的测试集的测试执行仅包括发布到最新包版本中的Orchestrator 租户流程订阅源的测试用例。要执行新的测试用例,请在 Orchestrator 中发布新的包版本,并将测试集链接到 Test Manager。
    重要:对于任何租户,测试管理功能均已迁移至 Test Manager。因此,测试计划在 Orchestrator 中不再可用,您也无法再直接从 Orchestrator 执行测试用例和测试集。 但是,您可以继续通过用于测试自动化的 Orchestrator API 执行测试用例和测试集,或使用原生 Test Manager - CI/CD 集成
  • 仅当您在 Test Manager 中使用旧版执行上下文时,以下信息才适用:如果您的 Test Manager 测试集包含来自多个 Studio 项目的测试用例,则考虑执行具有最多测试用例的项目。因此,只有此项目中的测试用例会被执行。此外,Test Manager 将显示警告,指出已选择多个包,因此仅执行其中一些包。

    仅当您仅使用“配置自动化”功能将 Studio 自动化链接到 Test Manager 测试用例时,才能执行包括来自多个 Studio 项目的测试用例的测试集。

  • 如果您的测试集包含多个 Studio 项目中的重复测试用例,则按项目名称降序排列。仅执行列表中最先放置的项目中的测试用例。

执行自动化测试

  1. 在“测试管理器”中打开项目,然后导航至“测试集”。
  2. 选择一个测试集,然后单击垂直省略号。
  3. 选择“执行自动化”。

    有关更多测试结果的信息,请参阅“分析测试结果”。

    备注:
    • 在 Orchestrator 执行期间,将跳过无法执行的测试用例。
    • 未执行的测试用例会生成没有结果的测试用例日志

或者,您可以打开测试集,单击“执行”,然后从下拉列表中选择“自动”。

实时流式传输和远程控制

注意:此功能仅在通过 Test Cloud 交付的 Test Manager 中可用。
您可以查看机器人运行测试执行的实时流,如果需要,可以使用自己的鼠标和键盘控制执行,而无需暂停测试。这可帮助您更有效地进行故障排除和调试,从而减少手动干预和解决问题的时间。

这些功能默认禁用,并且必须在测试集或测试执行级别启用。

先决条件

要使用实时流式传输和远程控制功能,请执行以下步骤:

  1. 确保您的 Test Manager 角色具有以下权限:
    • TestSets.Edit :要启用实时流和远程控制,
    • 查看自动化执行的实时流:观看测试执行。
    • 远程控制自动化执行的实时流:远程控制测试执行。
    注意:默认情况下, Test Manager项目角色具有“查看自动化执行的实时流”权限。但是要远程控制实时流, Test Manager 管理员必须通过自定义角色手动将此权限分配给用户。
  2. 为所需的测试集在测试集级别启用实时流或远程控制功能:
    1. 打开测试集或测试执行。
      • 对于测试集:转到“配置”选项卡。
      • 对于测试执行:转到“设置”选项卡,
    2. 选择“启用实时流”开关,以捕获测试执行的实时流。
    3. 或者,如果您希望能够远程控制正在运行的测试执行,请在“允许远程控制”下选择“启用”
  3. 在计算机上安装 VNC 查看器。

查看实时流

要查看正在运行的测试执行的实时流,请按照以下步骤操作:

  1. 触发测试集的执行。
  2. “执行”部分中,打开正在运行的测试执行。
  3. 转到“结果”选项卡。
  4. “视频”列中,选择“实时”

远程控制测试执行

要远程控制正在运行的测试执行,请按照以下步骤操作:

  1. 在实时流窗口中,选择进行远程控制
  2. 使用本地鼠标和键盘来控制机器人会话。

Video recording of automated executions

注意:此功能仅在通过 Test Cloud 交付的 Test Manager 中可用。

You can record the last 15 minutes of test executions in Test Manager. This capability allows you to watch and download the recording of a test run.

先决条件

To use the video recording capabilities, follow these steps:
  1. Enable the proper permissions.
    1. Orchestrator permissions - Enable the folder-level Execution Media permission, with the following options:
      • “查看”- 允许帐户查看作业执行记录。
      • “创建”- 允许执行作业的帐户/角色同时创建作业执行的记录。
      • 删除”- 允许帐户从 Orchestrator 中删除视频录制内容。
    2. Test Manager permissions
      • TestExecution.View
  2. Get familiar with the types of supported recordings and associated robots.
    • Options: Record and store failed executions (for 14 days), Record all executions (for 7 days)
    • The options are available for:
      • Automation Cloud Robot - Serverless
      • 机器人 (Robot) 版本 2023.2 或更高版本

Enabling recording of test executions

Enable recording at test set level. The value you set at test set level is copied over at test execution level.
  1. Navigate to Test Sets.
  2. Select a test set and, then select the Configuration tab.
  3. Toggle on Record automated execution.
  4. Under Recording type, select one of the options: Record and store failed executions (for 14 days) or Record all executions (for 7 days).
Enable recording at test execution level, which is useful for scenarios like Pending executions or re-executions. If you set a value at test set level, it is carried over at test execution level where you can manage it further.
  1. Navigate to Execution.
  2. Open an execution for which you want to have recording enabled.
  3. In the Settings tab, toggle on Record automated execution.
  4. Under Recording type, select one of the options: Record and store failed executions (for 14 days) or Record all executions (for 7 days).
Tip: We recommend that you enable Record all jobs for a brief amount of time so as to observe potentially odd behavior during job execution. You can then switch to only recording and storing failed jobs in order to efficiently use bandwidth and storage.

Viewing recording of test executions

  1. Navigate to Execution, trigger the execution of a test set, and select the Recording tab.
  2. Open a test case log, select the Recording tab and view the recording. To download the recording, from the upper right-corner of the recording screen, select Download.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新