- 入门指南
- 项目管理
- 项目操作和实用程序
- Test Manager 设置
- ALM 工具集成
- API 集成
您可以将项目从 Test Manager 导出到文件,以便稍后重新创建项目。使用此功能来执行以下操作:
- 将整个测试项目转移到 Test Manager 的不同租户或实例。
- 创建任何项目的备份副本。
工作方式
Exporting a project generates a TMH file that can be then imported in another Test Manager instance. This includes objects such as requirements, test cases, test sets, labels, custom fields, attachments, and automation information. The export process is done asynchronously, notifying when the export process is finished.
Users with a valid Test Manager license can export projects. For more information, check User and Group Access Management.
注意事项
导出的 TMH 文件包含:
| 导出的对象 | 详细信息 |
|---|---|
| 测试对象 | 导出项目时,可以选择导出的 TMH 文件以包含以下一项或全部内容:
|
| 对象之间的分配 |
|
| 项目信息 |
|
先决条件
要确保成功下载导出 TMH 文件,请将 API 管理网关中的buffer response设置设置为false :
- 访问 API 管理网关系统。
- 找到以
/download结尾的 API 端点。 您只应将 API 响应为download的 API 端点的缓冲区响应设置为False。 - 查看 API 管理网关系统的官方文档。例如,如果您使用 Microsoft Azure,请查看官方文档,了解如何将
buffer-response设置从true更改为false。
从 Test Manager 导出项目 - 独立
为您的 Test Manager 实例启用电子邮件通知:
- 选择“更多选项”
在 “Test Manager”标头 > “应用程序设置”中。 - 在“电子邮件”选项卡中,选择“启用电子邮件通知” 。
- Configure the values for the email notification event: Select Save.
- 主机(必填)- SMTP 服务器地址(例如
smtp-mail.outlook.com)。 - 端口(必填)- SMTP 服务器的端口。
- 用户名 - 用于服务器身份验证的用户名。
- 密码 - 与用于服务器身份验证的用户名关联的密码。
- 域 - 用户名的域。
- 发件人地址(必填)- 电子邮件的发件人电子邮件地址。
- From Display Name (Required) - The display name of the sender.
- 主机(必填)- SMTP 服务器地址(例如
要在 Test Manager 中导出现有项目,请执行以下操作:
-
Sign in to Test Manager. Choose the project you want to export, and select More Options
. The Export Project panel opens.警告:导出文件中不包含测试结果。
-
选择要包含在导出文件中的测试对象,然后选择“导出” 。
-
等待导出流程完成,并打开您通过电子邮件收到的“项目导出已完成”通知。
-
选择“下载” 。您将被重定向到之前导出的 Test Manager 实例,并且系统会自动下载导出的 TMH 文件。如果下载未自动开始,请选择“下载” 。
备注:如果您尚未为 Test Manager 实例启用电子邮件通知,则可以在安装 Test Manager 的本地文件夹中搜索导出的 TMH 文件。请按照以下步骤查找 TMH 文件:
-
导航到 C:\Programdata\UiPath TestManager\Storage。
-
打开以
TMH开头,后跟特定租户 ID 的文件夹。此文件夹存储在该特定租户中找到的所有附件。
-
导航到
User文件夹,然后导航到Project文件夹。 -
打开标题为所需项目 ID 的文件。
您可以使用 Test Manager API 获取项目的 ID。
-
在
Export文件夹中,您可以找到所有导出的 TMH 文件。完整路径如下所示:C:\Programdata\UiPath TestManager\Storage\TMH-<tenantID>\User/Project\Export。
-