uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UIP RPA TM
“uip rpa tm”的语法和选项,通过写入其本地.tmh/config.json 为 RPA 项目配置 Test Manager 服务器连接和默认项目。
uip rpa tm 将 RPA 项目连接到 Test Manager 服务器,并完全通过本地文件 I/O 将默认项目链接到项目目录中的 .tmh/config.json — 此处的任何动词都不需要 Studio 或 Helm 实例。
大纲
uip rpa tm connect --url <url>
uip rpa tm set-default-project --id <id> [--name <name>] [--key <key>]
uip rpa tm clear-default-project
uip rpa tm status
uip rpa tm connect --url <url>
uip rpa tm set-default-project --id <id> [--name <name>] [--key <key>]
uip rpa tm clear-default-project
uip rpa tm status
UIP RPA TM 连接
设置 Test Manager 服务器 URL。切换到其他服务器将清除先前链接的默认项目,因为它属于旧服务器。
选项
| 长 | 值 | 必填 | 描述 |
|---|---|---|---|
--url <url> | 绝对 http(s) URL | 是 | Test Manager 服务器基本 URL,例如https://cloud.uipath.com/<org>/<tenant>/testmanager_。必须解析为具有 http/https 方案的绝对 URL — 任何其他方案(mailto:、file: 等)或无法解析的值将在客户端无法解析。 |
示例
uip rpa tm connect --url https://cloud.uipath.com/myorg/mytenant/testmanager_
uip rpa tm connect --url https://cloud.uipath.com/myorg/mytenant/testmanager_
数据形状(--输出 json)
{
"message": "Test Manager server set to https://cloud.uipath.com/myorg/mytenant/testmanager_",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"testManagerBasePath": "https://cloud.uipath.com/myorg/mytenant/testmanager_"
}
{
"message": "Test Manager server set to https://cloud.uipath.com/myorg/mytenant/testmanager_",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"testManagerBasePath": "https://cloud.uipath.com/myorg/mytenant/testmanager_"
}
当切换服务器删除先前链接的默认项目时,添加 clearedDefaultProject: true。当 Studio 需要重新加载以使更改生效时,添加 reloadHint。
uip rpa tm 设置默认项目
链接 Test Manager 项目作为此 RPA 项目的默认项目。首先需要连接的服务器 (tm connect) — 设置没有连接服务器的默认项目时,系统会拒绝该项目。
选项
| 长 | 值 | 必填 | 描述 |
|---|---|---|---|
--id <id> | 字符串 (GUID) | 是 | Test Manager 项目 ID。 |
--name <name> | 字符串 | 否 | 项目显示名称,与 ID 一起存储。 |
--key <key> | 字符串 | 否 | 项目短代码(例如PROJ),与 ID 一起存储。 |
示例
uip rpa tm set-default-project --id a1b2c3d4-0000-0000-0000-000000000001 --name "Invoice Automation" --key INV
uip rpa tm set-default-project --id a1b2c3d4-0000-0000-0000-000000000001 --name "Invoice Automation" --key INV
数据形状(--输出 json)
{
"message": "Default Test Manager project set to Invoice Automation",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"defaultProject": { "id": "a1b2c3d4-0000-0000-0000-000000000001", "name": "Invoice Automation", "key": "INV" }
}
{
"message": "Default Test Manager project set to Invoice Automation",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"defaultProject": { "id": "a1b2c3d4-0000-0000-0000-000000000001", "name": "Invoice Automation", "key": "INV" }
}
uip rpa tm 清除默认项目
取消链接默认的 Test Manager 项目。服务器连接 (tm connect) 保持不变。幂等 — 即使当前未设置默认项目,也会成功。
示例
uip rpa tm clear-default-project
uip rpa tm clear-default-project
数据形状(--输出 json)
{
"message": "Default Test Manager project unlinked.",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"cleared": true
}
{
"message": "Default Test Manager project unlinked.",
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"cleared": true
}
没有要清除的内容时,cleared: false 和 message: "No default Test Manager project was set."。
UIP RPA TM 状态
显示项目的当前 Test Manager 配置 - 服务器 URL 和链接的默认项目。无论 .tmh/config.json 是否存在,均适用。
示例
uip rpa tm status
uip rpa tm status
数据形状(--输出 json)
{
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"connected": true,
"hasDefaultProject": true,
"testManagerBasePath": "https://cloud.uipath.com/myorg/mytenant/testmanager_",
"defaultProject": { "id": "a1b2c3d4-0000-0000-0000-000000000001", "name": "Invoice Automation", "key": "INV" }
}
{
"projectDir": "/work/MyProject",
"configPath": "/work/MyProject/.tmh/config.json",
"connected": true,
"hasDefaultProject": true,
"testManagerBasePath": "https://cloud.uipath.com/myorg/mytenant/testmanager_",
"defaultProject": { "id": "a1b2c3d4-0000-0000-0000-000000000001", "name": "Invoice Automation", "key": "INV" }
}
相关内容
- RPA 工具概述
uip rpa get-manual-test-cases/get-manual-test-steps— 已隐藏,并由uip tm取代,以便访问手动测试用例;此tm组是不同的项目本地配置关注点。