文档首页/ 测试计划 CodeArts TestPlan/ API参考/ API/ 测试报表管理/ 根据测试报告URI获取测试报告质量属性评估列表 - ShowTestReportQualityAttributes
更新时间:2025-12-27 GMT+08:00
分享

根据测试报告URI获取测试报告质量属性评估列表 - ShowTestReportQualityAttributes

功能介绍

此接口用于根据测试报告URI获取测试报告质量属性评估列表,同页面 测试 -> 测试质量评估 -> 查看报告

调用方法

请参见如何调用API

URI

GET /v4/{project_id}/versions/{version_uri}/test-reports/{report_uri}/quality-attributes

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目ID

version_uri

String

计划uri

report_uri

String

测试报告Uri

请求参数

响应参数

状态码:200

表2 响应Body参数

参数

参数类型

描述

total

Integer

符合条件的所有记录数

page_size

Integer

每页展示条数

page_no

Integer

页码

has_more

String

是否有更多

value

Array of TestReportQualityAttributesVo objects

请求返回的数据

表3 TestReportQualityAttributesVo

参数

参数类型

描述

uri

String

uri

test_report_uri

String

测试报告uri

test_type

Integer

参数解释:

测试类型

取值范围:

  • 1,功能性测试。

  • 2,兼容性测试。

  • 4,性能测试。

  • 15,易用性测试。

  • 22,可靠性测试。

  • 14,安全性测试。

  • 21,可服务性测试。

conclusion

String

测试结论

状态码:400

表4 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

状态码:401

表5 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

状态码:404

表6 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

状态码:500

表7 响应Body参数

参数

参数类型

描述

error_code

String

参数解释

接口调用失败错误码

取值范围

不涉及

error_msg

String

参数解释

接口调用失败错误信息

取值范围

不涉及

请求示例

get https://{endpoint}/v4/a5eb0d410ea341a192f7c12483568985/versions/v90100010gpop33g/test-reports/v90700010hbng8jo/quality-attributes?_=1750240144168

响应示例

状态码:200

OK

{
  "value" : [ {
    "uri" : "v90700010hbngaqa",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 1
  }, {
    "uri" : "v90710hbngaqasub",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 4
  }, {
    "uri" : "v90710hbngaqasuc",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 2
  }, {
    "uri" : "v90710hbngaqasud",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 15
  }, {
    "uri" : "v90710hbngaqasue",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 22
  }, {
    "uri" : "v90710hbngaqasuf",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 14
  }, {
    "uri" : "v90710hbngaqasug",
    "test_report_uri" : "v90700010hbng8jo",
    "test_type" : 21
  } ]
}

状态码

状态码

描述

200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

错误码

请参见错误码

相关文档