- 入门指南
- 项目管理
- 项目操作和实用程序
- Test Manager 设置
- ALM 工具集成
- API 集成
- 故障排除
Test Manager 用户指南
You can execute all test sets using the Execute > Execute Automated option from the Overview tab of a test set. This option invokes Orchestrator for test cases created in Test Manager.
如果测试集包含从 Studio 链接的测试用例,您也可以执行自动化测试 。有关更多信息,请查看“执行测试” 。
先决条件
要在禁用“允许旧版执行上下文”设置的情况下执行自动化测试,您需要在 Orchestrator 中具有以下权限:
- 在租户级别: Folders.View和Users.View 。
- 在发布测试自动化包的文件夹级别: TestSets.Create和TestSetExecutions.Create 。
条件
要使用“执行自动化”选项,测试集中至少需要一个自动化测试用例。
- Automated test executions have a default timeout of four days that you cannot change. Any automated test execution that exceeds four days is marked as Cancelled.
- 从 Orchestrator 链接的测试集的测试执行仅包括发布到最新包版本中的Orchestrator 租户流程订阅源的测试用例。要执行新的测试用例,请在 Orchestrator 中发布新的包版本,并将测试集链接到 Test Manager。
重要提示:
对于所有租户,测试管理功能均已迁移至 Test Manager。因此,测试计划在 Orchestrator 中不再可用,并且您无法再直接从 Orchestrator 执行测试用例和测试集。但是,您可以通过用于测试自动化的 Orchestrator API或使用原生 Test Manager - CI/CD 集成继续执行测试用例和测试集。
- The following information is applicable only if you are using the legacy execution context in Test Manager: If your Test Manager test set includes test cases from multiple Studio projects, then the project that has the highest number of test cases is considered for execution. As a result, only the test cases from this project will be executed. Additionally, Test Manager will display a warning stating that multiple packages have been selected, and only some of them will be executed. You can execute test sets including test cases from multiple studio projects only if you link Studio automations to Test Manager test cases using only the Configure Automation functionality.
- 如果您的测试集包含多个 Studio 项目中的重复测试用例,则按项目名称降序排列。仅执行列表中最先放置的项目中的测试用例。
执行自动化测试
- 在“测试管理器”中打开项目,然后导航至“测试集”。
- 选择一个测试集,然后单击垂直省略号。
- 选择“执行自动化”。
有关更多信息,请参阅分析测试结果。
- 在 Orchestrator 执行期间,将跳过无法执行的测试用例。
- 未执行的测试用例会生成没有结果的测试用例日志。
或者,您可以打开测试集,单击“执行”,然后从下拉列表中选择“手动”。
实时流式传输和远程控制
Feature availability depends on the cloud platform you use. For details, refer to the Test Manager feature availability page.
此功能仅适用于通过 Test Cloud 交付的 Test Manager。
您可以查看机器人运行测试执行的实时流,如果需要,可以使用自己的鼠标和键盘控制执行,而无需暂停测试。这可帮助您更有效地进行故障排除和调试,从而减少手动干预和解决问题的时间。
这些功能默认禁用,并且必须在测试集或测试执行级别启用。
先决条件
要使用实时流式传输和远程控制功能,请执行以下步骤:
- 确保您的 Test Manager 角色具有以下权限:
- TestSets.Edit :要启用实时流和远程控制,
- 查看自动化执行的实时流:观看测试执行。
- 远程控制自动化执行的实时流:远程控制测试执行。
备注:默认情况下, Test Manager项目角色具有“查看自动化执行的实时流”权限。但是要远程控制实时流, Test Manager 管理员必须通过自定义角色手动将此权限分配给用户。
- 为所需的测试集在测试集级别启用实时流或远程控制功能:
- 打开测试集或测试执行。
- 对于测试集:转到“配置”选项卡。
- 对于测试执行:转到“设置”选项卡,
- 选择“启用实时流”开关,以捕获测试执行的实时流。
- 或者,如果您希望能够远程控制正在运行的测试执行,请在“允许远程控制”下选择“启用” 。
- 打开测试集或测试执行。
- 在计算机上安装 VNC 查看器。
查看实时流
要查看正在运行的测试执行的实时流,请按照以下步骤操作:
- 触发测试集的执行。
- 在“执行”部分中,打开正在运行的测试执行。
- 转到结果选项卡。
- 在“视频”列中,选择“实时” 。
备注:
(For Cloud Dedicated only) If the Live option does not appear in the Video column for a test case, refresh the test case logs.
远程控制测试执行
要远程控制正在运行的测试执行,请按照以下步骤操作:
- 在实时流窗口中,选择进行远程控制。
- 使用本地鼠标和键盘来控制机器人会话。
自动执行的视频录制
此功能仅适用于通过 Test Cloud 交付的 Test Manager。
您可以在 Test Manager 中记录过去 15 分钟的测试执行。此功能可用于观看和下载测试运行的记录。
先决条件
要使用视频录制功能,请执行以下步骤:
- 启用适当的权限。
- Orchestrator permissions - Enable the folder-level Execution Media permission, with the following options:
- “查看”- 允许帐户查看作业执行记录。
- “创建”- 允许执行作业的帐户/角色同时创建作业执行的记录。
- “删除”- 允许帐户从 Orchestrator 中删除视频录制内容。
- Test Manager 权限
- TestExecution.View
- Orchestrator permissions - Enable the folder-level Execution Media permission, with the following options:
- 熟悉支持的录制类型和关联的机器人。
- Options: Record and store failed executions (for 14 days), Record all executions (for 7 days)
- 这些选项适用于:
- Automation Cloud Robot - Serverless
- 机器人 (Robot) 版本 2023.2 或更高版本
启用测试执行记录
在测试集级别启用记录。您在测试集级别设置的值将复制到测试执行级别。
- Navigate to Test Sets.
- Select a test set and, then select the Configuration tab.
- Toggle on Record automated execution.
- Under Recording type, select one of the options: Record and store failed executions (for 14 days) or Record all executions (for 7 days).
在测试执行级别启用记录,这对于待处理执行或重新执行等场景非常有用。如果您在测试集级别设置了一个值,则该值将在测试执行级别结转,您可以在测试执行级别进一步管理。
- Navigate to Execution.
- 打开要为其启用记录的执行。
- In the Settings tab, toggle on Record automated execution.
- Under Recording type, select one of the options: Record and store failed executions (for 14 days) or Record all executions (for 7 days).
提示:
我们建议您在短时间内启用“记录所有作业”,以便在作业执行期间观察可能出现的异常行为。然后,您可以切换为仅记录和存储失败的作业,以有效利用带宽和存储。
查看测试执行的记录
- Navigate to Execution, trigger the execution of a test set, and select the Recording tab.
- 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.