uip tm 性能场景执行数据
用于检查场景执行的动词 "uip tm Performance-scenario" 的语法和选项 — 执行列表、获取的结果、http 错误、自动化错误和事务指标。
这些 uip tm perf-scenario 动词检查场景执行生成的数据:执行列表本身、完整的结果捆绑包、HTTP 错误、自动化步骤失败和每个事务的指标。
此页面属于uip tm perf-scenario命令组 — 请参阅该页面,了解场景生命周期动词( create 、 get 、 list 、 execute 、 stop 、 list-dry-run-reports )和共享概念。
大纲
uip tm perf-scenario executions list --project-key <key> [--scenario-id <uuid>] [--execution-type <type>] [--limit <n>] [--offset <n>] [--query <expr>]
uip tm perf-scenario results get --execution-id <uuid> [--completed <true|false>] [--query <expr>]
uip tm perf-scenario http-errors list --execution-id <uuid> --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
uip tm perf-scenario automation-errors list --execution-id <uuid> --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
uip tm perf-scenario transaction-metrics list --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
uip tm perf-scenario executions list --project-key <key> [--scenario-id <uuid>] [--execution-type <type>] [--limit <n>] [--offset <n>] [--query <expr>]
uip tm perf-scenario results get --execution-id <uuid> [--completed <true|false>] [--query <expr>]
uip tm perf-scenario http-errors list --execution-id <uuid> --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
uip tm perf-scenario automation-errors list --execution-id <uuid> --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
uip tm perf-scenario transaction-metrics list --load-group-id <uuid> --start-time-ms <n> --end-time-ms <n> [--query <expr>]
这些动词都不接受 --project-key — 它们直接调用 Performance Service,而不解析 Test Manager 项目。--load-group-id此处的 是 中 每次执行的 负载组load-groups list ID,而不是LoadGroupId 中场景的perf-scenario get 。
uip tm 性能场景执行列表
列出场景执行,可以筛选为一种场景和/或一种执行类型(空运行与完整)。
选项
| 标记 | 描述 |
|---|---|
--project-key <key> | 必需。拥有的项目。 |
--scenario-id <uuid> | 筛选出一个场景(UUID,而不是 SP1:7 键)。 |
--execution-type <type> | 按执行类型筛选:dryRun 或 performanceTesting。 |
--limit <n> | 可返回的最大结果数量。省略时,默认为服务自己的页面大小。 |
--offset <n> | 要跳过的结果以进行分页。默认为 0。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario executions list \
--project-key DEMO \
--scenario-id 756e8ebf-c227-0000-8a9f-0b49fd934bef \
--execution-type performanceTesting
uip tm perf-scenario executions list \
--project-key DEMO \
--scenario-id 756e8ebf-c227-0000-8a9f-0b49fd934bef \
--execution-type performanceTesting
数据形状
{
"Code": "PerfExecutionsList",
"Data": {
"Data": [
{
"Id": "80694766-5a44-0000-0985-0b49fd93832d",
"ExecutionType": "performanceTesting",
"Status": "Finished"
}
]
}
}
{
"Code": "PerfExecutionsList",
"Data": {
"Data": [
{
"Id": "80694766-5a44-0000-0985-0b49fd93832d",
"ExecutionType": "performanceTesting",
"Status": "Finished"
}
]
}
}
uip tm 性能场景结果获取
获取运行的完整执行数据捆绑包:每个负载组的时间序列、CPU/RAM 和应用程序日志。这与运行完成后打印的基础有效负载perf-scenario execute --wait相同。
选项
| 标记 | 描述 |
|---|---|
--execution-id <uuid> | 必需。场景执行 ID。 |
--completed <bool> | true 从数据库读取已完成的运行; false 从 Redis 读取仍在运行的实时执行。默认为 true。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario results get --execution-id 80694766-5a44-0000-0985-0b49fd93832d
uip tm perf-scenario results get --execution-id 80694766-5a44-0000-0985-0b49fd93832d
数据形状
{
"Code": "PerfExecutionResults",
"Data": {
"ExecutionsData": {},
"ApplicationLogs": []
}
}
{
"Code": "PerfExecutionResults",
"Data": {
"ExecutionsData": {},
"ApplicationLogs": []
}
}
这是来自性能服务的原始传递图形。execute --wait将相同的基础数据后处理为perf-scenario execute页面中记录的更友好的LoadGroups形状 — 仅当您ApplicationLogs运行中需要实时/正在进行视图时直接调用results get --completed false 。
uip tm 性能场景 http 错误列表
列出在一个时间窗口内为一个负载组执行记录的 HTTP 错误 (按请求分组)。
选项
| 标记 | 描述 |
|---|---|
--execution-id <uuid> | 必需。场景执行 ID。 |
--load-group-id <uuid> | 必需。加载组执行 ID(来自load-groups list ,而不是场景的LoadGroupId )。 |
--start-time-ms <n> | 必需。窗口起始时间,以毫秒为单位,从运行开始时间计算。在整个运行中使用 0。 |
--end-time-ms <n> | 必需。窗口结束时间,从运行开始时间算起的毫秒数。使用运行持续时间计算整个运行的时间。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario http-errors list \
--execution-id 80694766-5a44-0000-0985-0b49fd93832d \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
uip tm perf-scenario http-errors list \
--execution-id 80694766-5a44-0000-0985-0b49fd93832d \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
数据形状
{
"Code": "PerfHttpErrorsList",
"Data": { "Errors": [] }
}
{
"Code": "PerfHttpErrorsList",
"Data": { "Errors": [] }
}
uip tm 性能场景自动化错误列表
列出一个负载组在一定时间窗口内执行失败的自动化步骤。
选项
| 标记 | 描述 |
|---|---|
--execution-id <uuid> | 必需。场景执行 ID。 |
--load-group-id <uuid> | 必需。加载组执行 ID(来自 load-groups list)。 |
--start-time-ms <n> | 必需。窗口起始时间,以毫秒为单位,从运行开始时间计算。在整个运行中使用 0。 |
--end-time-ms <n> | 必需。窗口结束时间,从运行开始时间算起的毫秒数。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario automation-errors list \
--execution-id 80694766-5a44-0000-0985-0b49fd93832d \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
uip tm perf-scenario automation-errors list \
--execution-id 80694766-5a44-0000-0985-0b49fd93832d \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
数据形状
{
"Code": "PerfAutomationErrorsList",
"Data": { "Errors": [] }
}
{
"Code": "PerfAutomationErrorsList",
"Data": { "Errors": [] }
}
uip tm 性能场景事务指标列表
列出负载组在一个时间窗口内的每个事务的响应时间和吞吐量指标(平均值、P50、P95、P99)。仅适用于 API SUT — 不会为浏览器驱动 (网页) 场景收集此数据。
选项
| 标记 | 描述 |
|---|---|
--load-group-id <uuid> | 必需。加载组执行 ID(来自 load-groups list)。 |
--start-time-ms <n> | 必需。窗口起始时间,以毫秒为单位,从运行开始时间计算。在整个运行中使用 0。 |
--end-time-ms <n> | 必需。窗口结束时间,从运行开始时间算起的毫秒数。 |
--query <expr> | 应用于输出数据的 jq 样式筛选器。 |
示例
uip tm perf-scenario transaction-metrics list \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
uip tm perf-scenario transaction-metrics list \
--load-group-id 082486b0-8d51-0000-b54a-0b4a1388f850 \
--start-time-ms 0 \
--end-time-ms 240000
数据形状
{
"Code": "PerfTransactionMetricsList",
"Data": { "Metrics": [] }
}
{
"Code": "PerfTransactionMetricsList",
"Data": { "Metrics": [] }
}
请注意,该动词不需要 --execution-id — 只有 --load-group-id,与 http-errors list 和 automation-errors list 不同。
相关内容
- uip tmperf-scenario — 场景生命周期和共享概念。
- 负载组— 此页面所用
--load-group-id的来源。 - 报告— 呈现创作报告,以供执行或比较。