UiPath Documentation
test-manager
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Test Manager 用户指南

上次更新日期 2026年5月13日

SAP Cloud ALM

将 SAP Cloud ALM 项目集成到 Test Manager,以创建测试项目、测试用例,执行测试并查看详细的执行信息。该集成可帮助您通过 Test Manager 在 SAP Cloud ALM 实例中管理和执行自动化测试。

支持的测试场景

将 SAP Cloud ALM 与 Test Manager 集成时,您可以执行以下测试活动:

  • 测试用例创建:
    • 在 SAP Cloud ALM 中创建自动化测试用例,您稍后可以在 Test Manager 中为其分配 Studio 自动化。
    • 在 Test Manager 中创建与目标 SAP Cloud ALM 项目同步的自动化测试用例。
  • 测试用例执行:
    • 通过 SAP Cloud ALM 界面在 Test Manager 中执行自动化测试用例。
    • 在 Test Manager 中独立于 SAP Cloud ALM 界面执行自动化测试用例。
  • 测试用例报告:
    • 有关详细信息,从 SAP Cloud ALM 直接导航到 Test Manager 中的测试执行视图。

将 SAP Cloud ALM 与 Test Manager 集成

执行以下步骤以将 SAP Cloud ALM 与 Test Manager 集成:

1. 新建服务

For more information about manually creating a service, refer to Creating Services Manually, from the SAP Cloud ALM documentation.

  1. 在“SAP Cloud ALM”中,转到“管理” ,然后转到“布局管理”
  2. 打开服务和系统页面。
  3. 选择“添加” ,然后选择“新建云服务”
  4. 使用所需参数配置新的 UiPath 服务,如下所示:
    • “名称” :输入UiPath
    • 描述:输入UiPath Test Suite
    • 系统编号(默认) : 输入 SAP 环境中可用的系统编号。
    • “服务类型”:选择“未指定 Cloud Service (HTTP)”
    • 角色:选择“测试”
  5. 选择“保存”以确认新服务。

2. 添加新的端点

Endpoints allow you to create an authenticated connection to the previously created service. For more information, refer to Adding Endpoints from the SAP Cloud ALM documentation.

  1. Create an external application in the UiPath organization that you want to connect SAP Cloud ALM to. For more information about creating and managing external applications, visit Managing external OAuth applications.

    备注:

    配置端点的身份验证类型时使用应用程序 ID密码 ID (在“应用程序密码”下)。

  2. Assign the following Test Manager user and application scopes to the previously created external application. This step is crucial for the SAP Cloud ALM integration to function correctly. For more information about Test Manager scopes, visit API Scopes. The scopes you need to assign include:

    • TM.Projects
    • TM.TestSets
    • TM.TestCase
    • TM.TestExecutions
    • TM.自定义字段定义
    • TM.CustomFieldValues
  3. “重定向 URL”字段中,输入https://www.uipath.com

  4. “服务和系统”页面中,选择先前创建的服务。

  5. “端点”下,选择“添加”

  6. “添加端点”弹出窗口中,配置以下参数:

    • 端点名称:此参数自动生成。将值更改为UiPath
    • 用例: UiPath 服务支持的用例是测试自动化
    • Root URL: Input the Test Manager URL of the tenant where you want to create the test cases, followed by the api suffix. Example: https://cloud.uipath.com/{organizationName}/{tenantName}/testmanager_/api.
    • Authentication Type - Select OAuth2ClientCredentials.
      • 客户端 ID(客户端 ID) :输入先前创建的外部应用程序中应用程序 ID的值。
      • “客户端密码”(密码 ID) :输入先前创建的外部应用程序中的“密码 ID”的值。
      • Token Service URL: Input the UiPath® Identity Server endpoint of type Token: https://cloud.uipath.com/identity_/connect/token. For a list of Identity server endpoints, refer to UiPath Identity Server Endpoints.
  7. 选择“保存”以确认新端点。

这些配置可确保 SAP Cloud ALM 和 Test Manager 系统可以通信和同步。

使用 SAP Cloud ALM 和 Test Manager

将 SAP Cloud ALM 与 Test Manager 集成后,您可以执行测试操作,例如创建测试用例、执行测试用例以及查看执行结果。 以下部分演示了集成的端到端流程。

Creating test cases - overview

SAP Cloud ALM 和 Test Manager 的集成仅适用于自动化测试用例。

创建自动化测试用例时,SAP Cloud ALM 同时会在连接的 Test Manager 实例中创建一个新项目。 项目名称与 SAP Cloud ALM 中的项目名称相同,并且在末尾有一个唯一 ID。 该项目还包含您创建的新测试用例。 当您决定使用与初始测试用例相同的配置创建更多测试用例时,SAP Cloud ALM 会在先前生成的项目中创建一个新的测试用例。

在 SAP Cloud ALM 和 Test Manager 中同时创建的测试用例是在特定上下文中创建的。SAP Cloud ALM 上下文存储在 Test Manager 项目中的以下自定义字段中:(仅限 SAP)、“SAP 国家/地区” (默认)、 “SAP 作用域”“SAP 解决方案流程” 。这些参数在 SAP Cloud ALM 和 Test Manager 中的测试用例之间建立了适当的映射和上下文。这些自定义字段可以包含多个值,具体取决于您同步到 Test Manager 项目的作用域和相应流程的数量。

如果您需要在 Test Manager 中创建应同步到 SAP Cloud ALM 的测试用例,请为前面提到的自定义字段选择适当的上下文。

在 SAP Cloud ALM 中创建自动化测试用例

要直接从 SAP Cloud ALM 在 Test Manager 中触发自动化测试用例的创建,请执行以下步骤:

  1. 转到“SAP Cloud ALM”,然后从“项目”下拉列表中选择现有项目或创建一个专用项目,用于与 Test Manager 集成。

  2. 转到测试准备应用。

  3. “测试用例”部分中,选择“创建测试用例” 。按如下方式配置测试用例:

    • “类型”:选择“自动化” 。该集成有助于您在 SAP Cloud ALM 中为您的业务解决方案创建、管理和执行自动化测试用例。
    • 自动化提供程序:从下拉列表中选择UiPath Test Suite端点。
    • 标题 (可选) :输入所需范围内的唯一标题。
    • 作用域(全部) :选择作用域。此值作为SAP 作用域自定义字段出现在 Test Manager 中。
    • 解决方案流程(可选)选择一个解决方案流程。此值在 Test Manager 中作为SAP 解决方案流程自定义字段显示。
    • 国家/地区:如果选择了解决方案流程,则必须选择所需的国家或地区。此值在 Test Manager 中作为SAP 国家/地区自定义字段显示。
  4. 选择“保存”以确认测试用例创建。

  5. Go to Test Manager from SAP Cloud ALM, to the newly created test case. In the Test Manager project, go to Project settings, and select the Automation tab. Then, assign a default Orchestrator folder to the project created through SAP Cloud ALM:

    5.1. Select the Default Folder dropdown list.

    5.2. Select your preferred Orchestrator folder.

    5.3. Select Save to confirm your changes. The selected folder is used to execute all your tests. This step is required just once, right after the creation of the associated Test Manager project.

For more information about creating automated test cases in SAP Cloud ALM, refer to Creating Automated Test Cases.

Creating automated test cases in Test Manager

要从 Test Manager 触发 SAP Cloud ALM 中的自动化测试用例的创建,请执行以下步骤:

  1. 打开您在前面的步骤中从 SAP Cloud ALM 创建的 Test Manager 项目。
  2. 在左侧导航面板中,转到“测试用例”。
  3. 选择“创建测试用例”
  4. 按如下方式配置测试用例:
    • 名称(可选) :输入测试用例的名称。
    • 版本:(可选)向测试用例添加版本标签。
    • 说明:(可选)输入测试用例的说明。
    • 标签:添加自定义标签。
  5. 选择“创建”以确认新的测试用例。
  6. 打开新创建的测试用例,然后转到“详细信息”选项卡。
  7. 在以下自定义字段中为 SAP Cloud ALM 目标项目选择相关值:
    • SAP 国家/地区:选择目标国家/地区。这是要测试解决方案流程的等效国家/地区。

    • SAP 作用域 (可选):选择所需的作用域。这与您在 SAP Cloud ALM 项目中测试的等效作用域相同。

    • SAP 解决方案流程“选择目标解决方案流程”。这是您在 SAP Cloud ALM 项目中测试的等效解决方案流程。

      备注:

      If your Test Manager project holds multiple SAP scopes and process values, make sure the selected process corresponds to the chosen scope. Test Manager does not automatically filter the SAP Solution Processes based on the SAP Scope value. :::

      By selecting the appropriate values for SAP Scope, SAP Solution Process, and SAP Country you ensure the test cases created in Test Manager will synchronize with SAP Cloud ALM when the same scope and process are synchronized. For more information about creating test cases in Test Manager, refer to Create test cases.

将测试用例从 Test Manager 同步到 SAP Cloud ALM

  :::note[For synchronizing automated test cases from Test Manager to SAP Cloud ALM, ensure to select appropriate values for the custom fields **SAP Country/Region**, **SAP Scope**, **SAP Solution Process** in the Test Manager test cases you wish to synchronize.]
  :::
  :::note[For synchronizing automated test cases from Test Manager to SAP Cloud ALM, ensure to select appropriate values for the custom fields **SAP Country/Region**, **SAP Scope**, **SAP Solution Process** in the Test Manager test cases you wish to synchronize.]
  :::

要同步在连接的 SAP Cloud ALM 项目中的 Test Manager 中创建的测试用例,请执行以下步骤:

  1. 打开 SAP Cloud ALM 项目,然后转到TestPreparation应用程序。

  2. “测试用例”部分中,选择“同步自动化测试用例”

    Figure 1. The Synchronize Automated Test Cases button

  3. Select the scope for which you want to synchronize automated test cases. For example, if you created an automated test case in Test Manager with Scope 3, ensure this same Scope 3 scope is selected in SAP Cloud ALM when you synchronize test cases.

    备注:

    此值必须与用于在 Test Manager 中创建新的自动化测试用例的作用域匹配。

  4. 选择自动化提供程序 ( UiPath Test Cloud ),这是您用于创建自动化测试的端点。

  5. Select Synchronize to finish the process.

有关将自动化测试用例从 Test Manager 同步到 SAP Cloud ALM 的更多信息,请访问同步自动化测试用例

向测试用例分配测试自动化

使用 UiPath™ Studio 创建测试自动化或将自动化分配给 Test Manager 中的现有测试用例。

  1. 在 Studio 中,打开现有项目或创建一个新项目。

  2. 将此项目连接到 Test Manager 实例。

    2.1. From the Design ribbon, select Test Manager.

    2.2. Select Test Manager Settings.

    2.3. Enter the base URL of your synchronized Test Manager instance with SAP Cloud ALM.

    2.4. Select Connect.

    2.5. After the connection is successful, in the Default Project field, enter the name or prefix of the target Test Manager project.

  3. 为您的解决方案流程创建和设计测试用例。请访问 Studio 测试的“简介”页面,探索可用的测试设计功能。

  4. 转到项目的“项目”面板,然后右键单击一个测试用例。

  5. 选择“关联到 Test Manager”

  6. “链接到 Test Manager”弹出窗口中,提供以下测试信息:

    • 项目:选择包含现有测试用例或将创建新测试用例的项目。如果在将 Studio 连接到 Test Manager 时选择了默认项目,则此项目将显示在“项目”字段中。
    • 测试:输入所选项目中现有测试用例的名称。要创建新的测试用例,请选中默认的<new test case>值。
    • 名称:要创建新的测试用例,请在“测试”字段中保留<new test case> ,并在 Test Manager 中为新测试用例命名。
    • 要求:(可选)输入现有需求的名称并将其分配给测试用例。如果您不想分配要求,请选中<none>值。
  7. 选择“确定”以保存更改。

已执行的测试用例

您可以直接从 SAP Cloud ALM 和 Test Manager 执行自动化测试用例。 执行结果显示在 SAP Cloud ALM 和 Test Manager 中。

For detailed steps on how to execute automated test cases in SAP Cloud ALM, refer to Executing Automated Test Cases.

执行结果

您可以从 SAP Cloud ALM 和 Test Manager 实时查看执行状态和数据。执行测试用例后,您可以在 SAP Cloud ALM 和 Test Manager 中查看执行状态。

当您仍在 SAP Cloud ALM 中测试用例的“已执行测试运行”部分时,选择“打开执行日志”以直接导航到 Test Manager 中该测试用例的执行日志。

将正在进行的执行状态从 Test Manager 同步到 SAP

After you trigger the execution of a test case in SAP Cloud ALM, you can track the status and the progress of the test run from the test case list. You can refresh the status and the progress of the test run by selecting 从自动化提供程序刷新测试进度 Refresh Test Progress from the Automation Provider.

将已完成的执行状态从 Test Manager 同步到 SAP

After a test case execution is completed in Test Manager, it can be synchronized with SAP Cloud ALM. To do this, navigate to your SAP Cloud ALM project and select the Test Execution app. Within the Test Cases section, select the desired test case and then select 从自动化提供程序刷新已执行的测试运行 Refresh Executed Test Runs from the Automation Provider. This action updates the execution status in SAP Cloud ALM to match the one from Test Manager.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新