UpdateTestResult
Updates the execution status and executor of test cases in a test plan.
Operation description
Updates the execution status and executor of test cases in a test plan.
Try it now
Test
RAM authorization
Request syntax
PUT /organization/{organizationId}/testhub/testplan/{testPlanIdentifier}/testresult/{testcaseIdentifier} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. |
5ebbc0228123212b59xxxxx |
| testPlanIdentifier |
string |
Yes |
The test plan ID, which is the unique identifier of the test plan. |
1d79xxxxxx86181xx6c5b |
| testcaseIdentifier |
string |
Yes |
The test case ID, which is the unique identifier of the test case in the test case library. |
4e22xxxxxxxxc64c16037fe76 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| executor |
string |
No |
The executor field required to update the test case in the test plan. |
131xxx38624xxxx68 |
| status |
string |
No |
The status field required to update the test case in the test plan. |
TO DO |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. Each request has a unique ID to facilitate troubleshooting. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMsg |
string |
The error message. |
error |
| errorCode |
string |
The error code. |
Openapi.RequestError |
| success |
boolean |
Indicates whether the update is successful. |
true |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMsg": "error",
"errorCode": "Openapi.RequestError",
"success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Openapi.RequestError | request error | |
| 403 | Operate.NoPermission | NoPermission | You are not authorized to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.