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

Test Manager API integration

用于连接开发工具以同步需求、缺陷和 UiPath 自动化工件的 Test Manager SDK 和集成模式。

Four integration scenarios show how an external tool exchanges requirements, defects, automation assignments, and results with Test Manager through the SDK. Requirements synchronized from an external tool are read-only in Test Manager.

概述​

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

以下架构图描述了与 UiPath™ 组件和第三方工具的集成功能。有关更多信息,请参阅“应用程序生命周期管理集成模式” 。

集成场景​

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

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

Synchronization with external requirements​

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. For details, see Requirements.

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

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

Defect creation in external tools​

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

Automation assignment to external test cases​

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

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

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

Results fetching into external tools​

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

You need to poll the results at regular intervals. Retrieving new results every 20 seconds or more is recommended.

Integration setup​

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

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

备注:

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新