
Test Manager 用户指南
在您的测试组合中加入自动化测试用例,以节省时间,自动化重复性任务。
要将自动化与测试用例相关联,请选择一个发布到 Orchestrator 的自动化。 建议在将自动化连接到测试用例的方法中直接在 Test Manager 中选择 Orchestrator 自动化。 如果未选择 Orchestrator 自动化,Test Manager 将回退到从 Studio 链接的自动化。
先决条件
- 将 Studio 项目发布到租户包订阅源或另一个 Orchestrator 文件夹订阅源。
- 为自己分配以下角色之一:
- Automation User Orchestrator 文件夹角色
- 具有管理权限的任何默认角色
提示:首先,用户需要编辑测试用例的权限,以便直接在 Test Manager 中选择自动化。 在此上下文中,其他有用的权限包括拥有Automation User角色或任何具有管理权限的角色。有关默认租户角色的更多信息,请访问租户默认角色。
步骤
要为测试用例选择自动化,请执行以下步骤:
- 转到项目的“测试用例”部分。
- 打开测试用例。
- 选择“自动化”选项卡。
- 选择“选择自动化” 。
此操作将打开选择自动化右侧菜单。
- 从“包来源”下拉列表中,选择相应 Orchestrator 实例中的订阅源。
此订阅源应包含您要链接到 Test Manager 测试用例的 Studio 测试用例。 默认选择为“租户包订阅源” 。
只有拥有订阅源的文件夹才会出现在“包来源”下拉列表中。 在文件夹层次结构中,下拉列表中仅显示父文件夹,因为所有子文件夹共享相同的订阅源。
注意:可用的包订阅源选项是您具有管理权限的选项。 - 选择包订阅源后,可以从该位置选择自动化。
自动化名称显示在“测试用例名称”列下,已发布的包名称显示在“包”列下。注意: “测试用例名称”列显示在 Orchestrator 中发布自动化的文件夹,后跟自动化名称。 例如,如果您想选择从 Studio 发布到 Orchestrator 中
Accounts文件夹的Create Checking Account测试用例,则此自动化的“测试用例名称”将为Accounts/Create Checking Account。
- 从“包来源”下拉列表中,选择相应 Orchestrator 实例中的订阅源。
- 选择“保存”以确认更改。
从 Orchestrator 包订阅源中选择自动化后,您可以在“已分配的自动化”下的以下字段中检查自动化详细信息:
- 包测试用例名称:在 Orchestrator 中发布自动化的文件夹,后跟自动化名称:
FolderName/TestCaseName。 - 包名称:用于发布所选自动化的包名称。
- 包来源:您发布包的 Orchestrator 订阅源。
- 包测试用例名称:在 Orchestrator 中发布自动化的文件夹,后跟自动化名称:
更新自动化
要更新从 Orchestrator 订阅源中选择的自动化,请执行以下步骤:
- 转到项目的“测试用例”部分。
- 打开测试用例。
- 选择“自动化”选项卡。
- 选择“更新自动化” 。
此操作将打开选择自动化右侧菜单。
- 从“包来源”下拉列表中,选择相应 Orchestrator 实例中的订阅源。
此订阅源包含您要与 Test Manager 测试用例链接的 Studio 测试用例。
默认选择为“租户包订阅源” 。
注意:可用的包订阅源选项是您具有管理权限的选项。 - 选择包订阅源后,可以从该位置选择自动化。
自动化名称显示在测试用例名称下,已发布的包名称显示在包下。
- 从“包来源”下拉列表中,选择相应 Orchestrator 实例中的订阅源。
- 选择“保存”以确认更改。
转移测试用例
后续步骤
要执行包含使用从 Orchestrator 选择的自动化的测试用例的测试集,您可以指定特定的包和版本来运行测试用例。 这允许 Test Manager 仅使用选定的包和版本执行 Orchestrator 订阅源中多个包中链接到自动化的测试用例。
有关配置特定执行文件夹以及选择包和版本的更多信息,请访问为特定执行文件夹和机器人配置测试集。
取消链接自动化
您可以从Test Manager中的任何测试用例中取消 Studio 和 Orchestrator 自动化的链接。 要取消链接自动化,请执行以下步骤:
- 在 Test Manager 中打开项目,然后转到“测试用例”。
- 找到链接到 Studio 的测试用例并将其打开。
-
转到“自动化”选项卡,并取消链接 Orchestrator 或 Studio 自动化,如下所示:
- 要取消链接 Orchestrator 自动化,请在“已分配的自动化”下选择“取消链接自动化” 。
- 要取消链接 Studio 自动化,请在“Studio 链接信息”下,选择“取消链接” 。
You can automate Test Manager test cases directly in Studio Web, within projects of type Tests.
注意事项
Before starting, review the following considerations:
- You can only link test cases from Test Manager to Studio Web. Linking from Studio Web to Test Manager is not currently supported.
- Studio Web projects of type Tests can only be created via Test Manager. You cannot create them in Studio Web directly.
- You cannot collaborate with other users on the same Studio Web project of type Tests at the same time.
- There is no bi-directional synchronization between Studio Web and Test Manager.
- If you delete or move a linked Studio Web test case, an error message appears. You must the relink the test case.
先决条件
Ensure you meet the following conditions:
- 您有权访问 Studio Web。
App Test Developers have access to Studio Web.
- You have permissions to create and edit Studio Web projects.
- Test Manager is enabled in your Test Cloud organization.
Step 1: Open or create a test case in Test Manager
- Navigate to your Test Manager project and go to the Test Cases tab.
- Create a new test case, or open an existing one that does not have automation linked.
- Open the test case and go to the Automation tab.
Step 2: Link the test case to Studio Web
- In the Automation tab, select Automate in Studio Web.
This opens a panel on the right side to configure the Studio Web automation link.
- In the Automate in Studio Web panel, perform the following configurations:
- From the Project dropdown list:
- Select an existing Studio Web project of type Tests.
- Enter a new project name and select it to create one.
- From the Test case dropdown list:
- Select an existing test case.
- Enter a new test case name and select it to create one.
- Select Add automation.
Your Test Manager test case is now linked to a test case in Studio Web.
- From the Project dropdown list:
Step 3: Open and automate the test case in Studio Web
- In the Automation tab, select Open in Studio Web.
This opens Studio Web in a new tab, with your linked test case ready to edit.
- In the Studio Web project, open the previously created test case.
- Build the automated test case using any supported activity packages, including Testing.Activities.
- Debug the automation.
- When you are ready, publish the Studio Web project, to deploy it to Orchestrator.
For information on publishing Studio Web projects, refer to Publishing a project.
Figure 1. Automate in Studio Web panel
Unlinking and deleting Studio Web test cases
The behavior when you unlink or delete a Studio Web test case from a Test Manager test case is:
-
Unlinking: If you unlink a Studio Web test case, a warning appears before removal.
-
Deleting: If you delete the Test Manager test case, a warning is shown confirming that the linked Studio Web test case will also be unlinked.