
Test Suite 用户指南
测试集
测试集是测试用例的逻辑组。测试集的目的是定义应在一次运行中一起执行的测试组。例如,冒烟测试是一组仅检查最关键功能的测试。每当冒烟测试中的任何测试用例失败时,都会出现严重问题。执行冒烟测试不应花费太长时间。例如,每当开发者提交对源代码的更改时,系统都会执行该测试。相比之下,回归测试是一项全面的测试,应提供被测系统的详细概述。执行通常需要几个小时甚至几天。为了定义要为此目的执行的测试集,需要创建测试集。一个测试用例可以分配给多个测试集。
- 使用 静态分配 - 手动选择测试用例。
- 使用 动态分配 - 输入要分配的测试用例的标签。
- 打开要为其启用活动覆盖率的测试集。
- 转到“配置”选项卡。
- 选择“启用 RPA 活动覆盖率计算”。
Within a test set, you can automatically execute test cases only from a default or selected Orchestrator folder (also known as the Execution folder). If you want to execute the test cases from a specific package and version within a folder, you can select the package and its corresponding version. Moreover, you can also set a specific user or robot account that can execute the test set.
You can configure the execution of a test set for a specific Orchestrator folder, and robot account, only if the Allow legacy execution context tenant setting is disabled. For more information about the setting, visit Tenant level settings.
To limit test case execution to a specific Orchestrator folder and robot, follow these steps:
- Go to Test Sets and select the test set for configuration.
- 在“测试用例”选项卡中,选择“选择自动化” 。
- From the Execution folder dropdown list, select a folder of your choice.
Note: This choice will populate the Select Robot dropdown list with robot accounts available in the selected folder.
If you do not want to select a specific folder, opt for None, which will use the Default folder of the tenant, if it exists.
- From the Select Robot dropdown list choose a robot account.
The default value is Any User/Robot account, which allows you to execute the test set using any robot available in the selected folder.
- Select Save to confirm the selection.
In addition to the execution folder and robot account, you can also select a specific package and version from which to run test cases. To select a specific package and version, perform the following steps:
- 导航到“测试集”并打开测试集。
- 转到“测试用例”选项卡。
- 使用“选择自动化” 。
- 要定义包和版本,可以使用以下选项:
- 自动选择包:根据分配给测试集的测试用例,自动选择位于执行文件夹中的所有包及其最新版本。
- 添加自动化:允许您手动选择所需的包和相应的版本。 请执行以下步骤:
- 从“包”下拉列表中,选择一个包。
- 从“版本”下拉列表中,选择该包的版本。
- 使用“选择”完成选择。
对要添加到测试集的每个包重复前面的步骤。
Figure 2. Display of Selected Automations menu illustrating the chosen execution folder and robot account, associated packages, and their respective versions for a specific test set
- 选择 更多选项
对于要复制的测试集,然后选择“ 克隆”。
- 重命名测试集,然后选择要克隆的信息,例如:
- 文档
- 标签
分配给原始测试集的测试用例(静态和动态)将自动链接到克隆。 自定义字段定义和自定义字段值(如果存在)也会被克隆。
- 选择“ 确认 ”以开始克隆过程。 系统会在后台创建克隆。
您可以从测试项目中单独导出测试集,以便将其重新导入到其他项目中。测试集的导出过程类似于项目导出过程。请访问导出项目,了解项目如何导出。
请记住,导出内容仅包括自定义字段值,而不包括其定义。
执行以下步骤以导出测试集:
- 打开您的项目并转到“测试集”。
- 根据要导出的测试集的数量,执行以下步骤之一:
- 要导出单个测试集,请为特定测试集选择“更多选项”,然后选择“导出”。
- 要导出多个测试集,请选择要导出的所有测试集,然后选择“导出”。
- 导出准备就绪后,您将收到“项目导出已完成”通知。选择该通知,下载包含已导出的测试集的 TMH 文件。
然后,您可以将下载的 TMH 文件导入到其他项目中,以重新创建测试对象。请访问导入项目,了解如何执行导入流程。
现在,您可以从 Orchestrator 关联测试集,通过 Test Manager 执行。
您可以应用筛选条件并将其存储在测试对象的视图中。根据视图的作用域(个人或公共),您可以为用户或项目中的所有用户保留包含筛选条件的视图。
- 测试对象的原生属性(例如“标签”、“更新者”、“来源”等)
- 自定义标签
请按照以下步骤自定义筛选条件和视图:
- 转到所需的测试对象部分(即需求),然后选择“筛选条件”。
- 选择“添加筛选条件”以选择要应用的筛选条件。
选择筛选条件时,还要选择您想要设置的值。
- 选择“应用”以在您的视图中包含筛选条件。
- 要将这些筛选条件另存为视图,请选择“视图”,然后选择“保存视图”。
- 在“保存视图”窗口中,选择使用筛选条件创建“新视图”或“更新现有视图”。
确定是将新视图设为私有,还是将其设置为“公开”以供其他用户访问。
- 选择“保存”以确认更改。
- 要应用您创建的视图,请选择“视图”,然后选择“打开视图”。
- 选择个人视图(“我的视图”)或“公开”视图。
您还可以根据需要,在私有和公开之间更改已创建视图的可见性。
- 选择所需视图,然后选择“打开”以应用。
- 选择个人视图(“我的视图”)或“公开”视图。