GetTestPlanProgressRate - Get test plan progress
Retrieves execution progress statistics for test cases in a test plan, including counts by status: Pass (passCount), Failure (failureCount), Postpone (postponeCount), and To Do/Other (todoCount).
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
-
Service endpoint (domain): Replace
{domain}in the API request syntax. -
Get the
organizationId: Required only for the Central edition. Go to the Organization Management Console and find the organization ID on the Basic Information page.
|
Product |
Resource |
Required permissions |
|
Test Management |
test plan |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/testhub/organizations/{organizationId}/{testPlanIdentifier}/progressRate
Region edition
GET https://{domain}/oapi/v1/testhub/{testPlanIdentifier}/progressRate
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The organization ID. Required only for the Central edition. |
|
|
testPlanIdentifier |
string |
path |
Yes |
The unique identifier for the test plan. |
Request examples
Central edition
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 edition
curl -X 'GET' \
'https://{domain}/oapi/v1/testhub/{testPlanIdentifier}/progressRate' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
|
- |
object |
The progress statistics for the test plan. |
|
|
failureCount |
integer |
The number of failed test cases. |
|
|
paasCount |
integer |
The number of passed test cases. |
|
|
postponeCount |
integer |
The number of postponed test cases. |
|
|
todoCount |
integer |
The number of test cases with a To Do/Other status. |
Response example
{
"failureCount": 0,
"paasCount": 0,
"postponeCount": 0,
"todoCount": 0
}
Error codes
For API error codes, see the Error Code Center.