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

Test Manager 用户指南

上次更新日期 2026年4月22日

Azure DevOps

将 Azure DevOps 集成到 Test Manager,以支持您的测试管理工作、敏捷规划或缺陷跟踪。 通过此集成,您可以将工作项目同步到 Test Manager。

要将 Test Manager 实例连接到 Azure DevOps 项目,请执行以下操作:

  1. 在 Azure DevOps 中创建项目
  2. 配置 Azure DevOps 连接

先决条件

在 Azure DevOps 中创建项目

  1. 登录到 Azure DevOps。

  2. Click Create new project and configure your project settings:

    • 项目名称: 输入项目的名称。
    • Description: Add a description to help you easily identify the use of each project.
    • Version control: Choose your version control.
    • 工作项目流程:从下拉列表中选择“敏捷”作为默认流程,以支持您的敏捷规划方法,包括开发和测试活动。
  3. 单击“创建”。

    您的项目随即添加到集合中。

    文档图像

配置 Azure DevOps 连接

先决条件:要将 UiPath™ Test Manager 扩展保存到 Azure DevOps 上,您必须是 Azure管理员用户。

  1. 以管理员身份登录 Test Manager。

  2. 打开项目。

  3. Navigate to Project Settings > Integration.

  4. Click New Connection and select Azure DevOps from the dropdown.

  5. 配置以下连接设置:

    • Name: Enter a name for your Azure DevOps connection.

    • 说明(可选): 添加说明以供参考。

    • Server URL: Add the Azure Dev Ops server URL. For example: https://company-name-serverRegion.cloudapp.azure.com.

    • 个人访问令牌:创建一个 PAT 并将其粘贴到此字段中,以授权 Test Manager 执行操作。

      警告:

      创建 Azure DevOps 连接时,PAT 需要拥有对 Azure DevOps 服务的完全访问权限。为此,在创建或编辑 PAT 时,请在“作用域”下选择“完全访问权限” 。连接完成后,您可以将 PAT 作用域缩小为: Test Management - Read & Write工作项目- Read & Write适用于 PAT 作用域)。有关更多信息,请参阅使用个人访问令牌

    • Defect Type: Enter an object type used for bug reporting in Azure DevOps. Otherwise, leave empty if you do not want to use defect integration.

      根据为新创建的 Azure DevOps 项目选择的对象类型输入缺陷类型。 例如: BugIssue

    • Project Name: Enter your Azure DevOps project name.

      文档图像

  6. Click the connection to expand the panel and copy the API Key for later use.

  7. Open your project in Azure Dev Ops and go to Project settings.

  8. “扩展程序”下,转到“UiPath™ Test Manager”

  9. 配置以下扩展程序设置:

    • 需求类型(需求类型):选择要向其分配测试的对象类型。这些内容将在 Test Manager 中显示为需求。有关更多信息,请参阅要求
    • 服务器 URL :添加 Test Manager URL。URL 应采用以下格式:https://{yourDomain}。
    • API: Paste the API key.
    • Manage Tests with Azure DevOps: Select this option to manage your tests through Azure DevOps. Otherwise, leave this option off, to manage your tests through Test Manager.
  10. 单击“保存”

    文档图像

使用 Azure DevOps 集成

要了解集成的工作原理,请考虑以下示例:

同步工作项目

You can create work items (e.g. Epic) in Azure DevOps and synchronize them with Test Manager. The work items will show up on the Requirements page.

  1. 登录到 Azure DevOps 并打开项目。
  2. 单击加号按钮,然后从下拉列表中选择“新建工作项目”
  3. 配置您的工作项目,然后单击“保存并关闭” 。有关详细信息,请参阅添加和更新工作项目
  4. Log in to Test Manager and go to Requirements to view the synchronized work item. To refresh the page, click the Requirements breadcrumb element.
    备注:

    要同步在集成之前创建的工作项目,请打开一个单个项目,单击“操作”按钮,然后从下拉列表中选择“推送到 Test Manager”

通过 Azure DevOps 管理测试

您可以用于测试自动化,也可以用于 Azure DevOps 进行测试管理。若要同时使用这两个解决方案,首先需要在集成配置中选择“使用 Azure DevOps 管理测试” 。有关详细信息,请参阅配置 Azure DevOps 连接

现在,您可以通过将测试用例从 Azure DevOps 推送到 Test Manager 来管理测试。换句话说,系统会将类型为“测试用例”的全部 Azure 工作项目都将推送到 Test Manager。确保将测试用例添加到您的 Azure 测试计划中,因为这里是推送结果的目标位置。有关更多信息,请参阅创建测试计划和测试套件

完成此同步后,您可以通过 Studio 自动化测试用例。之后,如果您使用 Orchestrator 执行测试用例,则系统会将结果推送到您的 Azure 测试计划。

管理 Azure DevOps 连接

下表列出了可以用来管理 Azure DevOps 连接的操作。

操作

描述

程序

编辑

编辑连接设置。

  1. 以管理员身份登录 Test Manager。
  2. 打开项目。
  3. 单击“设置”按钮以打开“项目设置”。
  4. 在“集成”列表中,单击 Azure DevOps 连接以展开面板。
  5. 单击“编辑”以配置连接。
  6. 单击“保存”以确认。

删除

删除选定的连接及其关联的要求。

  1. 以管理员身份登录 Test Manager。
  2. 打开项目。
  3. 单击“设置”按钮以打开“项目设置”。
  4. 在“集成”列表中,单击 Azure DevOps 连接以展开面板。
  5. 单击“删除”以删除连接。
  6. 单击“确定”以确认。

相关文章

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新