查询报告
功能介绍
查询报告
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v1/{project_id}/task-run-infos/{task_run_id}/case-run-infos/{case_run_id}/reports
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
task_run_id |
是 |
Integer |
运行任务ID,即报告ID。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务ID。 |
case_run_id |
是 |
Integer |
运行用例ID,报告管理中的“当前任务用例列表”接口,使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例ID(case_run_id)。 |
project_id |
是 |
String |
项目ID,获取方式请参见获取项目ID。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
brokens_limit_count |
是 |
Integer |
曲线图点数 |
请求参数
无
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
code |
String |
响应码 |
message |
String |
响应消息 |
extend |
String |
扩展信息 |
result |
ReportInfo object |
数据服务返回的报告数据 |
参数 |
参数类型 |
描述 |
---|---|---|
brokens |
ReportbrokensInfo object |
曲线数据 |
details |
ReportdetailsInfo object |
表格数据详情 |
outline |
ReportoutlineInfo object |
汇总数据 |
rtproportion |
String |
响应时间分布 |
taskInfo |
ReportTaskInfo object |
任务信息 |
respTimeRange |
Object |
响应时间分布 |
参数 |
参数类型 |
描述 |
---|---|---|
brand_brokens |
BrandBrokens object |
带宽曲线数据 |
commonTimestamps |
Array of strings |
时间戳 |
respcode_brokens |
RespcodeBrokens object |
响应码曲线数据 |
tps_brokens |
TpsBrokens object |
tps、响应时间曲线数据 |
vusers_brokens |
VusersBrokens object |
vusers曲线数据 |
参数 |
参数类型 |
描述 |
---|---|---|
checkPointFailed |
Array of doubles |
校验失败 |
error |
Array of doubles |
异常请求 |
othersFailed |
Array of doubles |
其他失败 |
parsedFailed |
Array of doubles |
解析失败 |
refusedFailed |
Array of doubles |
连接被拒 |
success |
Array of doubles |
成功请求 |
timeout |
Array of doubles |
超时失败 |
参数 |
参数类型 |
描述 |
---|---|---|
data |
Array of ReportdetailItemInfo objects |
表格数据 |
pageIndex |
Integer |
页码 |
pageSize |
Integer |
每页大小 |
total |
Integer |
总记录数 |
参数 |
参数类型 |
描述 |
---|---|---|
customTransactions |
Array of strings |
自定义事务数据 |
detailDatas |
Array of DetailDataInfo objects |
aw数据 |
performance |
PerformanceInfo object |
用例数据 |
参数 |
参数类型 |
描述 |
---|---|---|
averageRespTime |
Double |
平均响应时间 |
avgRecBytes |
Double |
平均接收字节数 |
avgSentBytes |
Double |
平均发送字节数 |
avgTranRespTime |
Double |
事务平均响应时间 |
caseUri |
String |
用例URI |
createTime |
String |
创建时间 |
currentThreadNum |
Double |
最大并发数 |
detailId |
String |
详情ID |
endTime |
String |
结束时间 |
errorCount |
Double |
失败请求数 |
errorEventsCount |
Double |
ERROR级别的事件个数 |
failedAssert |
Double |
断言失败 |
failedOthers |
Double |
其他失败 |
failedParsed |
Double |
解析失败 |
failedRefused |
Double |
连接被拒 |
failedTimeout |
Double |
超时失败 |
id |
String |
id |
isAW |
Boolean |
是否aw |
max |
Double |
最大响应时间 |
maxRecBytes |
Double |
最大接收字节数 |
maxRespTime |
Double |
探底最大响应时间 |
maxSentBytes |
Double |
最大发送字节数 |
maxTranRespTime |
Double |
事务最大响应时间 |
min |
Double |
最小响应时间 |
minNetworkTraffic |
Double |
最小带宽 |
name |
String |
名字 |
requests |
Double |
请求数 |
result |
Double |
aw执行结果 |
startTime |
String |
开始时间 |
status |
Double |
用例状态 |
successCount |
Double |
成功请求数 |
successRate |
Double |
成功率 |
sum1xx |
Double |
1xx请求数 |
sum2xx |
Double |
2xx请求数 |
sum3xx |
Double |
3xx请求数 |
sum4xx |
Double |
4xx请求数 |
sum5xx |
Double |
5xx请求数 |
taskId |
String |
任务ID_轮次 |
taskProjectId |
String |
任务ID |
taskStatus |
Double |
任务状态 |
testCaseUri |
String |
用例URI |
tp50 |
Double |
tp50 |
tp75 |
Double |
tp75 |
tp90 |
Double |
tp90 |
tp95 |
Double |
tp95 |
tp99 |
Double |
tp99 |
tps |
Double |
tps |
tranTPS |
Double |
事务tps |
transactionId |
String |
事务ID |
transactionSuccess |
Double |
事务成功率 |
transactionalSuccessRate |
Double |
事务成功率 |
transactionalTps |
Double |
自定义事务tps |
transactionalTpsSuccess |
Double |
自定义事务成功率 |
transactions |
Double |
事务数 |
updateTime |
String |
更新时间 |
vum |
Double |
分钟*并发数 |
avgNetworkTraffic |
Double |
平均带宽 |
maxNetworkTraffic |
Double |
最大带宽 |
参数 |
参数类型 |
描述 |
---|---|---|
averageRespTime |
Double |
平均响应时间 |
avgNetworkTraffic |
Double |
平均带宽 |
avgRecBytes |
Double |
平均下行带宽 |
avgSentBytes |
Double |
平均上行带宽 |
avgTranRespTime |
Double |
事务平均响应时间 |
caseUri |
String |
用例URI |
createTime |
String |
创建时间 |
currentThreadNum |
Double |
最大并发数 |
detailId |
String |
详情ID |
endTime |
String |
结束时间 |
errorCount |
Double |
失败请求数 |
errorEventsCount |
Double |
ERROR级别的事件个数 |
failedAssert |
Double |
断言失败 |
failedOthers |
Double |
其他失败 |
failedParsed |
Double |
解析失败 |
failedRefused |
Double |
连接被拒 |
failedTimeout |
Double |
超时失败 |
id |
String |
id |
isAW |
Boolean |
是否aw |
max |
Double |
最大响应时间 |
maxNetworkTraffic |
Double |
最大带宽 |
maxRecBytes |
Double |
最大接收字节数 |
maxRespTime |
Double |
探底结果:响应时间 |
maxSentBytes |
Double |
最大发送带宽 |
maxTranRespTime |
Double |
事务最大响应时间 |
min |
Double |
最小响应时间 |
minNetworkTraffic |
Double |
最小带宽 |
name |
String |
名称 |
requests |
Double |
请求数 |
result |
Double |
用例/aw的执行结果 |
startTime |
String |
开始时间 |
status |
Double |
用例状态 |
successCount |
Double |
成功数 |
successRate |
Double |
成功率 |
sum1xx |
Double |
1xx响应码计数 |
sum2xx |
Double |
2xx响应码计数 |
sum3xx |
Double |
3xx响应码计数 |
sum4xx |
Double |
4xx响应码计数 |
sum5xx |
Double |
5xx响应码计数 |
taskId |
String |
任务ID_轮次 |
taskProjectId |
String |
任务ID |
taskStatus |
Double |
任务状态 |
testCaseUri |
String |
用例URI |
tp50 |
Double |
tp50 |
tp75 |
Double |
tp75 |
tp90 |
Double |
tp90 |
tp95 |
Double |
tp95 |
tp99 |
Double |
tp99 |
tp999 |
Double |
tp999 |
tp9999 |
Double |
tp9999 |
tps |
Double |
tps |
tranTPS |
Double |
事务TPS |
transactionId |
String |
事务ID |
transactionSuccess |
Double |
成功事务数 |
transactionalSuccessRate |
Double |
事务成功率 |
transactionalTps |
Double |
自定义事务tps |
transactionalTpsSuccess |
Double |
自定义事务成功率 |
transactions |
Double |
事务数 |
updateTime |
String |
更新时间 |
vum |
Double |
分钟数*并发数 |
参数 |
参数类型 |
描述 |
---|---|---|
avgResponseTime |
Double |
平均响应时间 |
branchId |
String |
分支ID |
branchName |
String |
分支名称 |
caseRetry |
Double |
用例重试次数 |
completeNum |
Double |
已完成的用例数 |
duration |
Double |
持续时间 |
endTime |
String |
结束时间 |
executedNum |
Double |
已执行用例数 |
iterationUri |
String |
迭代ID |
kpiCaseCount |
Double |
kpi用例数 |
kpiCaseExecuteCount |
Double |
kpi用例执行次数 |
kpiCasePassCount |
Double |
kpi用例通过次数 |
maxUsers |
Double |
最大并发数 |
passNum |
Double |
结果为pass的用例数 |
stage |
Double |
阶段ID |
stageName |
String |
阶段名称 |
startTime |
String |
开始时间 |
successRate |
Double |
成功率 |
taskStatus |
Double |
任务状态 |
totalNum |
Double |
总用例数 |
tps |
Double |
性能tps指标 |
versionUri |
String |
分支URI |
projectId |
String |
工程ID |
serviceId |
String |
服务ID |
progressState |
String |
内部版本字段,已弃用,待删除 |
createBy |
String |
报告执行人 |
statusValue |
String |
内部版本字段,已弃用,待删除 |
状态码: 501
参数 |
参数类型 |
描述 |
---|---|---|
- |
String |
response message |
请求示例
查询一个报告的详情信息,报告的id是1,用例的运行id是1。
/v1/{project_id}/task-run-infos/1/case-run-infos/1/reports
响应示例
状态码: 200
success
{ "code" : "SVCSTG.CPTS.0000000", "message" : "success", "extend" : null, "result" : { "brokens" : { "brand_brokens" : { "recBytes" : [ 0, 356217, 366692, 419077, 565752, 492414, 366690, 377168, 502891, 555273, 440028, 366691, 335260, 565752, 586704, 377136, 377136, 261900, 565704, 523800, 356184, 366660, 366665, 565757, 502896, 377170, 366693, 419079, 565754, 429556, 356214, 345738, 429553, 523846, 440029, 356215, 366690, 419073, 555275, 440029, 366691, 366691, 513370, 607660, 345708, 356184, 356184, 544752, 544752, 345708, 356184, 345708, 586706, 502891, 366690, 366692, 419076, 555276, 450496, 356184, 345708, 0 ], "sentBytes" : [ 0, 1802, 1855, 2120, 2862, 2491, 1855, 1908, 2544, 2809, 2226, 1855, 1696, 2862, 2968, 1908, 1908, 1325, 2862, 2650, 1802, 1855, 1855, 2862, 2544, 1908, 1855, 2120, 2862, 2173, 1802, 1749, 2173, 2650, 2226, 1802, 1855, 2120, 2809, 2226, 1855, 1855, 2597, 3074, 1749, 1802, 1802, 2756, 2756, 1749, 1802, 1749, 2968, 2544, 1855, 1855, 2120, 2809, 2332, 1802, 1749, 0 ] }, "commonTimestamps" : [ "2022-09-16 19:18:15", "2022-09-16 19:18:16", "2022-09-16 19:18:17", "2022-09-16 19:18:18", "2022-09-16 19:18:19", "2022-09-16 19:18:20", "2022-09-16 19:18:21", "2022-09-16 19:18:22", "2022-09-16 19:18:23", "2022-09-16 19:18:24", "2022-09-16 19:18:25", "2022-09-16 19:18:26", "2022-09-16 19:18:27", "2022-09-16 19:18:28", "2022-09-16 19:18:29", "2022-09-16 19:18:30", "2022-09-16 19:18:31", "2022-09-16 19:18:32", "2022-09-16 19:18:33", "2022-09-16 19:18:34", "2022-09-16 19:18:35", "2022-09-16 19:18:36", "2022-09-16 19:18:37", "2022-09-16 19:18:38", "2022-09-16 19:18:39", "2022-09-16 19:18:40", "2022-09-16 19:18:41", "2022-09-16 19:18:42", "2022-09-16 19:18:43", "2022-09-16 19:18:44", "2022-09-16 19:18:45", "2022-09-16 19:18:46", "2022-09-16 19:18:47", "2022-09-16 19:18:48", "2022-09-16 19:18:49", "2022-09-16 19:18:50", "2022-09-16 19:18:51", "2022-09-16 19:18:52", "2022-09-16 19:18:53", "2022-09-16 19:18:54", "2022-09-16 19:18:55", "2022-09-16 19:18:56", "2022-09-16 19:18:57", "2022-09-16 19:18:58", "2022-09-16 19:18:59", "2022-09-16 19:19:00", "2022-09-16 19:19:01", "2022-09-16 19:19:02", "2022-09-16 19:19:03", "2022-09-16 19:19:04", "2022-09-16 19:19:05", "2022-09-16 19:19:06", "2022-09-16 19:19:07", "2022-09-16 19:19:08", "2022-09-16 19:19:09", "2022-09-16 19:19:10", "2022-09-16 19:19:11", "2022-09-16 19:19:12", "2022-09-16 19:19:13", "2022-09-16 19:19:14", "2022-09-16 19:19:15", "2022-09-16 19:19:16" ], "respcode_brokens" : { "checkPointFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "error" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ], "othersFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ], "parsedFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "refusedFailed" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "success" : [ 0, 34, 35, 40, 54, 47, 35, 36, 48, 53, 42, 35, 32, 54, 56, 36, 36, 25, 54, 50, 34, 35, 35, 54, 48, 36, 35, 40, 54, 41, 34, 33, 41, 50, 42, 34, 35, 40, 53, 42, 35, 35, 49, 58, 33, 34, 34, 52, 52, 33, 34, 33, 56, 48, 35, 35, 40, 53, 43, 34, 33, 0 ], "timeout" : [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, "tps_brokens" : { "average" : [ 0, 13.235294342041016, 13.800000190734863, 11.975000381469727, 12.240740776062012, 12.042552947998047, 13.514286041259766, 12.80555534362793, 11.645833015441895, 13.264150619506836, 11.071428298950195, 11.028571128845215, 14.5, 11.074073791503906, 11.232142448425293, 12.027777671813965, 12.027777671813965, 24.760000228881836, 12, 12.380000114440918, 12, 12.228571891784668, 13.085714340209961, 12.185185432434082, 12.020833015441895, 12, 12.199999809265137, 12.925000190734863, 12, 12.682927131652832, 13.058823585510254, 13.303030014038086, 13.12195110321045, 13.180000305175781, 13.023809432983398, 13.058823585510254, 13.199999809265137, 13.550000190734863, 12.867924690246582, 11.928571701049805, 12.028571128845215, 12.199999809265137, 11.979591369628906, 11.965517044067383, 13.666666984558105, 12.029411315917969, 12.20588207244873, 12.057692527770996, 12.076923370361328, 13.303030014038086, 12, 12.21212100982666, 12.267857551574707, 12.166666984558105, 13.171428680419922, 12.114285469055176, 12, 12.037735939025879, 12.522727012634277, 12, 12.696969985961914, 0 ], "tps" : [ 0, 34, 35, 40, 54, 47, 35, 36, 48, 53, 42, 35, 32, 54, 56, 36, 36, 25, 54, 50, 34, 35, 35, 54, 48, 36, 35, 40, 54, 41, 34, 33, 41, 50, 42, 34, 35, 40, 53, 42, 35, 35, 49, 58, 33, 34, 34, 52, 52, 33, 34, 33, 56, 48, 35, 35, 40, 53, 44, 34, 33, 0 ] }, "vusers_brokens" : { "vusers" : [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] } }, "details" : { "data" : [ { "customTransactions" : [ ], "detailDatas" : [ { "averageRespTime" : 12.52, "avgNetworkTraffic" : 0, "avgRecBytes" : 10472.426150121066, "avgSentBytes" : 53, "avgTranRespTime" : 0, "caseUri" : "33321", "createTime" : "2022-09-16T19:18:01+08:00", "currentThreadNum" : 1, "detailId" : "6969830689306988545", "endTime" : "2022-09-16T19:19:16+08:00", "errorCount" : 1, "errorEventsCount" : 0, "failedAssert" : 0, "failedOthers" : 1, "failedParsed" : 0, "failedRefused" : 0, "failedTimeout" : 0, "id" : "2391655", "isAW" : true, "max" : 331, "maxNetworkTraffic" : 0, "maxRecBytes" : 555275, "maxRespTime" : 331, "maxSentBytes" : 2809, "maxTranRespTime" : 331, "min" : 11, "minNetworkTraffic" : 0, "name" : "Msg-40123", "requests" : 2478, "result" : 0, "startTime" : "2022-09-16T19:18:16+08:00", "status" : 15, "successCount" : 2477, "successRate" : 99.95, "sum1xx" : 0, "sum2xx" : 2477, "sum3xx" : 0, "sum4xx" : 0, "sum5xx" : 0, "taskId" : "az-4-29530_1", "taskProjectId" : "az-4-29530", "taskStatus" : 6, "testCaseUri" : "16674", "tp50" : 12, "tp75" : 12, "tp90" : 13, "tp95" : 13, "tp99" : 24, "tps" : 41.3, "tranTPS" : 0, "transactionId" : "", "transactionSuccess" : null, "transactionalSuccessRate" : 0, "transactionalTps" : 0, "transactionalTpsSuccess" : 0, "transactions" : null, "updateTime" : "2022-09-16T19:19:34+08:00", "vum" : 1 } ], "performance" : { "averageRespTime" : 12.52, "avgNetworkTraffic" : 0, "avgRecBytes" : 10472.426150121066, "avgSentBytes" : 53, "avgTranRespTime" : 12.52, "caseUri" : "33321", "createTime" : "2022-09-16T19:18:01+08:00", "currentThreadNum" : 1, "detailId" : "6969830689306988544", "endTime" : "2022-09-16T19:19:16+08:00", "errorCount" : 1, "errorEventsCount" : 0, "failedAssert" : 0, "failedOthers" : 1, "failedParsed" : 0, "failedRefused" : 0, "failedTimeout" : 0, "id" : "2391655", "isAW" : false, "max" : 331, "maxNetworkTraffic" : 0, "maxRecBytes" : 555275, "maxRespTime" : 331, "maxSentBytes" : 2809, "maxTranRespTime" : 331, "min" : 11, "minNetworkTraffic" : 0, "name" : "ccc", "requests" : 2478, "result" : 0, "startTime" : "2022-09-16T19:18:16+08:00", "status" : 15, "successCount" : 2477, "successRate" : 99.95, "sum1xx" : 0, "sum2xx" : 2477, "sum3xx" : 0, "sum4xx" : 0, "sum5xx" : 0, "taskId" : "az-4-29530_1", "taskProjectId" : "az-4-29530", "taskStatus" : 6, "testCaseUri" : "16674", "tp50" : 12, "tp75" : 12, "tp90" : 13, "tp95" : 13, "tp99" : 24, "tp999" : 60, "tp9999" : 331, "tps" : 41.3, "tranTPS" : 41.3, "transactionId" : null, "transactionSuccess" : 2477, "transactionalSuccessRate" : 99.95964487489911, "transactionalTps" : 0, "transactionalTpsSuccess" : 0, "transactions" : 2478, "updateTime" : "2022-09-16T19:19:34+08:00", "vum" : 1 } } ], "pageIndex" : 1, "pageSize" : 5, "total" : 1 }, "outline" : { "avgResponseTime" : 12.518563357546409, "branchId" : null, "branchName" : null, "caseRetry" : 0, "completeNum" : 1, "duration" : 60, "endTime" : "2022-09-16T19:19:16+08:00", "executedNum" : 1, "iterationUri" : null, "kpiCaseCount" : 1, "kpiCaseExecuteCount" : 1, "kpiCasePassCount" : 1, "maxUsers" : 1, "passNum" : 1, "projectId" : "14509", "serviceId" : "17543", "stage" : 1, "stageName" : "Alpha", "startTime" : "2022-09-16T19:18:16+08:00", "successRate" : 99.95, "taskStatus" : 6, "totalNum" : 1, "tps" : 41.3, "versionUri" : null }, "respTimeRange" : { "0~50ms" : "100.0%(2472)", "1~2s" : "0.0%(0)", "200~500ms" : "0.0%(1)", "2~3s" : "0.0%(0)", "3~4s" : "0.0%(0)", "4~5s" : "0.0%(0)", "500ms~1s" : "0.0%(0)", "50~200ms" : "0.0%(5)", ">5s" : "0.0%(0)" }, "rtproportion" : null, "taskInfo" : { "vum" : 1 } } }
状态码
状态码 |
描述 |
---|---|
200 |
success |
501 |
unknown error |
错误码
请参见错误码。