UpdateTestResult - Update test result
Updates a test result by calling the UpdateTestResult operation.
|
Applicable editions |
Central edition, Region edition |
Endpoints and authorization
-
Get endpoint: replace
<domain>in the request syntax. -
Get the organization ID: Required for Central edition only. Go to the Basic Information page in Organization Management to obtain the ID.
|
Product |
Resource |
Required permissions |
|
Test Management |
Test result |
Read/Write |
Request syntax
Central edition
PUT https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}
Region edition
PUT https://{domain}/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}
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 |
|
testplanId |
string |
path |
Yes |
The ID of the test plan. |
|
|
id |
string |
path |
Yes |
The ID of the test case. |
|
|
organizationId |
string |
path |
|
The organization ID. |
|
|
- |
object |
body |
No |
||
|
executor |
string |
body |
No |
The user ID of the executor. |
|
|
status |
string |
body |
No |
The status of the test case. Valid values: |
Request examples
Central edition
curl -X 'PUT' \
'https://test.rdc.aliyuncs.com/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"executor": "",
"status": ""
}'
Region edition
curl -X 'PUT' \
'https://test.rdc.aliyuncs.com/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"executor": "",
"status": ""
}'
Response parameters
None
Error codes
For API error codes, see the Error Code Center.