GetTestPlanProgressRate - 获取测试计划用例执行进度统计

更新时间:
复制为 MD 格式

通过 OpenAPI 返回测试计划关联用例中:通过(paasCount)、失败(failureCount)、延后(postponeCount)、待执行/其他(todoCount) 的数量统计。

适用版本

中心版、Region

服务接入点与授权信息

产品

资源

所需权限

测试管理

测试计划

只读

请求语法

中心版

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 相关错误码。