test-manager
2022.10
false
UiPath logo, featuring letters U and I in white

Test Manager 用户指南

上次更新日期 2025年8月25日

Test Manager API 集成

概述

Test Manager软件开发工具包 (SDK) 提供 Test Manager 与您的开发工具的集成。通过这种类型的集成,您可以同步工件(需求、故事、缺陷),并提供 UiPath™ 自动化功能。

The following architecture diagram describes the integration capabilities with UiPath® components and 3rd party tools. For more information, see Application Lifecycle Management Integration Patterns.



集成场景

您可以通过以下典型场景了解集成的工作方式:

  • 同步外部需求
  • 在外部工具中创建缺陷
  • 将自动化分配给外部测试用例
  • 将结果提取到外部工具中

同步外部需求

The main purpose of synchronizing artefacts such as requirements is to assign test cases to them. This shows the requirements that have been covered through the test cases. To achieve this, you need to synchronize all the requirements from your external tool to Test Manager. To take this action in Test Manager, see Requirements.

将外部需求同步到 Test Manager 时,请考虑以下事项:

  • 外部工具主要用于测试流程。外部同步的需求在 Test Manager 中显示为只读。
  • 使用外部工具更新 Test Manager 中的需求。
  • 通过级联删除来删除 Test Manager 中的所有工件和任何相关记录是可能的,但这不是一个好的做法。
  • 要求说明可能会使用 Markdown 进行格式化。

在外部工具中创建缺陷

Test Manager provides a webhook that is invoked when you create a defect from a test case log (see Test Results). You can configure an integration for your Test Manager project to receive test case log information required for defect creation (e.g. Jira Server). You can quickly access the tool where the defects are created by navigating to Test Results > Test Case Key > Defect.

将自动化分配给外部测试用例

要通过 Studio 启用自动化功能,您需要将测试用例同步到 Test Manager

将自动化分配给外部测试用例时,请考虑以下事项:

  • 外部工具在 Test Manager 中存储外部测试用例和相应工件之间的映射信息。
  • 在测试用例与 Test Manager 同步后,您可以分配自动化。
  • 在外部工具中显示自动化信息表明该自动化已被分配。这被认为是一种很好的做法。

将结果提取到外部工具中

要检索结果,您需要通过Test Manager REST API 查询TestExecution对象。 TestExecution对象由测试集执行期间生成的结果组成。 TestExecution保存对表示测试用例结果的TestCaseLogs对象的引用。

您需要定期轮询结果。考虑每 20 秒或更长时间检索一次新结果。

设置集成

您需要将集成设置为单个服务。只要外部工具可以使用 RESTful 网页服务,则外部工具使用的技术没有限制。

在下图中,您可以看到一个示例,说明了工件从外部工具同步到 Test Manager 的工作方式。



注意:根据您的外部工具功能,可能不需要中间集成服务。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
© 2005-2025 UiPath。保留所有权利。