查询测试报告概览
功能介绍
查询测试报告概览
调用方法
请参见如何调用API。
URI
GET /v4/{project_id}/versions/{version_uri}/test-reports/{report_uri}
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目ID。 |
|
version_uri |
是 |
String |
计划uri |
|
report_uri |
是 |
String |
测试报告Uri |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
status |
String |
状态 |
|
result |
result object |
返回结果 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
uri |
String |
报告uri |
|
name |
String |
报告名称 |
|
creator |
String |
创建者 |
|
version_uri |
String |
版本uri |
|
branch_uri |
String |
分支uri |
|
version_name |
String |
版本名称 |
|
testPlan_uri |
String |
测试报告数据来源的分支Uri |
|
testPlan_name |
String |
测试报告来源测试计划的名称 |
|
branch_name |
String |
分支名称 |
|
defect_resolution_rate |
String |
缺陷解决率 |
|
defect_resolution_score |
String |
缺陷解决分数 |
|
case_execution_rate |
String |
用例执行率 |
|
case_execution_score |
String |
用例执行分数 |
|
case_pass_rate |
String |
用例通过率 |
|
case_pass_score |
String |
用例通过分数 |
|
issue_pass_rate |
String |
需求通过率 |
|
issue_pass_score |
String |
需求通过分数 |
|
issue_coverage_rate |
String |
需求覆盖率 |
|
issue_coverage_score |
String |
需求覆盖分数 |
|
project_residual_defect_index |
String |
项目总遗留DI |
|
iterator_residual_defect_index |
String |
计划新增DI |
|
case_automation_details |
case_automation_details object |
用例自动化率详情 |
|
case_validity_ratio |
String |
用例有效性比例 |
|
issue_details |
issue_details object |
需求通过情况 |
|
case_details |
Array of case_details objects |
用例通过情况 |
|
defect_details_by_severity |
Array of strings |
缺陷严重程度 |
|
defect_details_by_module |
Array of strings |
缺陷按照模块分布情况 |
|
case_pass_rate_by_test_type |
Array of case_pass_rate_by_test_type objects |
每个测试类型的用例通过率 |
|
test_report_custom_report_detail |
Array of strings |
测试报告自定义报告详情 |
|
create_time |
String |
创建时间戳 |
|
create_timestamp |
Integer |
创建时间戳 |
|
creator_name |
String |
创建人名 |
|
project_uuid |
String |
项目UUID,项目唯一标识,固定长度32位字符(字母和数字)。获取方式请参见获取项目ID。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
case_automation_rate |
String |
用例自动化率 |
|
service_type_number_list |
Array of service_type_number_list objects |
服务类型对应的用例数目 |
状态码:400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 不涉及 |
|
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 不涉及 |
状态码:401
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 不涉及 |
|
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 不涉及 |
状态码:404
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 不涉及 |
|
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 不涉及 |
状态码:500
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
参数解释 接口调用失败错误码 取值范围 不涉及 |
|
error_msg |
String |
参数解释 接口调用失败错误信息 取值范围 不涉及 |
请求示例
get https://{endpoint}/v4/a5eb0d410ea341a192f7c12483568985/versions/v90100010gpop33g/test-reports/v90700010hbng8jo?_=1750238622060
响应示例
状态码:200
查询测试报告概览返回体
{
"status" : "success",
"result" : {
"value" : {
"uri" : "v90700010hbng8jo",
"name" : "111111",
"creator" : "fe2b1b7779a447ee9b650ecc43a18c81",
"version_uri" : "v90100010gpop33g",
"branch_uri" : "a5eb0d410ea341a192f7c12483568985",
"version_name" : "样例测试计划",
"testPlan_uri" : "v90100010gpop33g",
"testPlan_name" : "样例测试计划",
"branch_name" : "基线",
"defect_resolution_rate" : "0.0%",
"defect_resolution_score" : "0.0",
"case_execution_rate" : "50.0%",
"case_execution_score" : "10.0",
"case_pass_rate" : "50.0%",
"case_pass_score" : "10.0",
"issue_pass_rate" : "0.0%",
"issue_pass_score" : "0.0",
"issue_coverage_rate" : "0.0%",
"issue_coverage_score" : "0.0",
"project_residual_defect_index" : "224.0",
"iterator_residual_defect_index" : "0.0",
"case_automation_details" : {
"case_automation_rate" : "50.0%",
"service_type_number_list" : [ {
"name" : "0",
"value" : 1
}, {
"name" : "1",
"value" : 1
} ]
},
"case_validity_ratio" : "0.0%",
"issue_details" : {
"finished" : 0,
"not_tested" : 0
},
"case_details" : [ {
"name" : "成功",
"value" : 1
}, {
"name" : "未执行",
"value" : 1
} ],
"defect_details_by_severity" : [ ],
"defect_details_by_module" : [ ],
"case_pass_rate_by_test_type" : [ {
"test_type" : 1,
"case_pass_rate" : "50.0%"
} ],
"test_report_custom_report_detail" : [ ],
"create_time" : "2025-06-06 15:43:08",
"create_timestamp" : 1749195788000,
"creator_name" : "TMSS02",
"project_uuid" : "a5eb0d410ea341a192f7c12483568985"
}
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
查询测试报告概览返回体 |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server Error |
错误码
请参见错误码。