文档首页/ 测试计划 CodeArts TestPlan/ API参考/ API/ 报告与看板管理/ 获取进度报表数据 - GetProgressReport
更新时间:2026-06-12 GMT+08:00
分享

获取进度报表数据 - GetProgressReport

功能介绍

此接口用于获取进度报表数据

调用方法

请参见如何调用API

URI

GET /v4/{project_uuid}/versions/{version_uri}/progress-reports

表1 路径参数

参数

是否必选

参数类型

描述

project_uuid

String

参数解释

项目UUID,项目唯一标识

取值范围

字符串

version_uri

String

参数解释

版本URI

取值范围

字符串

表2 Query参数

参数

是否必选

参数类型

描述

type

String

参数解释

报表类型 1:首页用例库, 2:质量报告

page_no

Integer

页码

默认取值:

1

page_size

Integer

每页数量

默认取值:

10

请求参数

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

total

Integer

符合条件的所有记录数

value

Array of objects

TestReportListVo列表

reason

String

错误信息

page_size

Integer

每页展示条数

page_no

Integer

页码

has_more

Boolean

是否有更多

状态码:400

表4 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

状态码:500

表5 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

请求示例

获取进度报表数据

GET https://{endpoint}/v4/{project_uuid}/versions/{version_uri}/progress-reports?type=1&page_no=1&page_size=10

{
  "project_uuid" : "098ad17656684cc5a49a4f7007517f95",
  "version_uri" : "v82q0001051ancve",
  "type" : 1,
  "page_no" : 1,
  "page_size" : 10
}

响应示例

状态码:200

OK

{
  "total" : 1,
  "value" : [ {
    "report_uri" : "report-001",
    "report_name" : "进度报表",
    "report_type" : 1,
    "created_at" : 1700000000000
  } ],
  "reason" : "",
  "page_size" : 10,
  "page_no" : 1,
  "has_more" : false
}

状态码:400

Bad Request

{
  "error_code" : "CLOUDTEST.00000001",
  "error_msg" : "返回的错误信息"
}

状态码:500

Internal Server Error

{
  "error_code" : "CLOUDTEST.00000001",
  "error_msg" : "返回的错误信息"
}

状态码

状态码

描述

200

OK

400

Bad Request

500

Internal Server Error

错误码

请参见错误码

相关文档