Update Test Case Results Using API
PUT
/execution_results/{run_id}/override
Base URL
https://app.testsigma.com/api/v1
Update Test Case results as Passed, Failed, or Not Executed for an execution run using the REST API.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →PATH PARAMETERS
run_id | ID of the execution run. Can be obtained from the Run Results. |
REQUEST BODY
testCaseResultId | ID of the Test Case result. |
comment | Comment you want to add to change the result. |
result | The result you want to override the current result with. |
RESPONSE ATTRIBUTES
errors | Errors in request fields if there are any. |
message | Message of overridden results. |
REQUEST
curl -X PUT \
'https://app.testsigma.com/api/v1/execution_results/{run_id}/override' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '[
{
"testCaseResultId": 3646,
"comment": "Modifying the results 1",
"result": "SUCCESS"
}
]'const response = await fetch('https://app.testsigma.com/api/v1/execution_results/{run_id}/override', {
method: 'PUT',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
"testCaseResultId": 3646,
"comment": "Modifying the results 1",
"result": "SUCCESS"
}
])
});
const data = await response.json();import requests
response = requests.put(
'https://app.testsigma.com/api/v1/execution_results/{run_id}/override',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
json=[
{
"testCaseResultId": 3646,
"comment": "Modifying the results 1",
"result": "SUCCESS"
}
]
)
data = response.json()RESPONSE200OK
{
"errors": [],
"message": "Overridden the results successfully"
}