通过 OpenAPI 返回测试计划关联用例中:通过(paasCount)、失败(failureCount)、延后(postponeCount)、待执行/其他(todoCount) 的数量统计。
适用版本 | 中心版、Region版 |
服务接入点与授权信息
服务接入点(domain):替换 API 请求语法中的 {domain} 。
获取organizationId:仅中心版需要。请前往组织管理后台的基本信息页面获取组织 ID 。
产品 | 资源 | 所需权限 |
测试管理 | 测试计划 | 只读 |
请求语法
中心版
GET https://{domain}/oapi/v1/testhub/organizations/{organizationId}/{testPlanIdentifier}/progressRate
Region版
GET https://{domain}/oapi/v1/testhub/{testPlanIdentifier}/progressRate
请求头
参数 | 类型 | 是否必填 | 描述 | 示例值 |
x-yunxiao-token | string | 是 | 个人访问令牌。 | pt-0fh3****0fbG_35af****0484 |
请求参数
参数 | 类型 | 位置 | 是否必填 | 描述 | 示例值 |
organizationId | string | path | 是 | ||
testPlanIdentifier | string | path | 是 | 测试计划唯一标识。 |
请求示例
中心版
curl -X 'GET' \
'https://{domain}/oapi/v1/testhub/organizations/{organizationId}/{testPlanIdentifier}/progressRate' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'Region版
curl -X 'GET' \
'https://{domain}/oapi/v1/testhub/{testPlanIdentifier}/progressRate' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'返回参数
参数 | 类型 | 描述 | 示例值 |
- | object | 测试计划进度说明。 | |
failureCount | integer | 失败数量。 | |
paasCount | integer | 通过数量。 | |
postponeCount | integer | 延后数量。 | |
todoCount | integer | 待执行/其他。 |
返回示例
{
"failureCount": 0,
"paasCount": 0,
"postponeCount": 0,
"todoCount": 0
}
错误码
访问错误码中心查看 API 相关错误码。
该文章对您有帮助吗?