uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
uip tm 性能场景报告
“uip tmperf-scenarioreport”的语法和选项,可呈现创作的性能报告和比较,并返回应用程序内视图 URL。
uip tm perf-scenario report 将您自行创作的报告(Markdown 或 HTML)呈现到托管视图中,并返回其应用程序内视图 URL。两个动词都不会根据执行数据自行生成报告内容。
此页面属于uip tm perf-scenario命令组 — 请参阅该页面,了解场景生命周期动词( create 、 get 、 list 、 execute 、 stop 、 list-dry-run-reports )和共享概念。
大纲
uip tm perf-scenario report generate --execution-id <uuid> --format <pdf|html> --report-file <path> [--project-key <key>] [--query <expr>]
uip tm perf-scenario report compare --scenario-id <uuid> --execution-ids <uuid...> --report-file <path> [--project-key <key>] [--query <expr>]
uip tm perf-scenario report generate --execution-id <uuid> --format <pdf|html> --report-file <path> [--project-key <key>] [--query <expr>]
uip tm perf-scenario report compare --scenario-id <uuid> --execution-ids <uuid...> --report-file <path> [--project-key <key>] [--query <expr>]
备注:
在此处的两个动词中,--project-key 都是可选的 — 仅当您希望返回的链接而不是纯视图 URL 来打开应用程序内报告页面时,才传递它。
生成 uip tm 性能场景报告
呈现创作报告文件并返回其应用程序内查看 URL。
选项
| 标记 | 描述 |
|---|---|
--execution-id <uuid> | 必需。场景执行 ID。 |
--format <format> | 必填。 pdf 或 html。pdf 预计 --report-file 将包含 Markdown; html 预期应包含 HTML。 |
--report-file <path> | 必需。指向已创作的报告内容的路径 (Markdown 表示 pdf,HTML 表示 html)。 |
--project-key <key> | Test Manager 项目密钥。可选 — 如果提供,返回的链接将打开应用程序内报告页面,而不是纯视图 URL。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario report generate \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--format pdf \
--report-file ./report.md \
--project-key DEMO
uip tm perf-scenario report generate \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--format pdf \
--report-file ./report.md \
--project-key DEMO
uip tm perf-scenario report generate \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--format html \
--report-file ./report.html \
--project-key DEMO
uip tm perf-scenario report generate \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--format html \
--report-file ./report.html \
--project-key DEMO
数据形状
{
"Code": "PerfReportGenerate",
"Data": {
"ViewUrl": "https://.../DEMO/testexecutions/performance-scenario/a1b2c3d4-0000-0000-0000-000000000001/report?format=pdf"
}
}
{
"Code": "PerfReportGenerate",
"Data": {
"ViewUrl": "https://.../DEMO/testexecutions/performance-scenario/a1b2c3d4-0000-0000-0000-000000000001/report?format=pdf"
}
}
uip tm 性能场景报告比较
呈现编写的 HTML 在同一场景的多次执行之间进行比较,并返回其应用内视图 URL。
选项
| 标记 | 描述 |
|---|---|
--scenario-id <uuid> | 必需。正在比较的场景 UUID(不是 SP1:7 键)。 |
--execution-ids <uuid...> | 必需。比较的场景执行 ID(从旧到最新),以空格分隔。 |
--report-file <path> | 必需。包含编写的比较 HTML 的文件。 |
--project-key <key> | Test Manager 项目密钥。可选 — 如果提供,则返回的链接将打开应用程序内报告页面。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario report compare \
--scenario-id 756e8ebf-c227-0000-8a9f-0b49fd934bef \
--execution-ids a1b2c3d4-0000-0000-0000-000000000001 a1b2c3d4-0000-0000-0000-000000000002 \
--report-file ./compare.html \
--project-key DEMO
uip tm perf-scenario report compare \
--scenario-id 756e8ebf-c227-0000-8a9f-0b49fd934bef \
--execution-ids a1b2c3d4-0000-0000-0000-000000000001 a1b2c3d4-0000-0000-0000-000000000002 \
--report-file ./compare.html \
--project-key DEMO
数据形状
{
"Code": "PerfReportCompare",
"Data": {
"ViewUrl": "https://.../DEMO/testexecutions/performance-scenario/compare?ids=..."
}
}
{
"Code": "PerfReportCompare",
"Data": {
"ViewUrl": "https://.../DEMO/testexecutions/performance-scenario/compare?ids=..."
}
}
相关内容
- uip tmperf-scenario — 场景生命周期和共享概念。
- 执行数据— 上面使用的
--execution-id值的来源。