Update Test Case Results Using API
PUT
/execution_results/{run_id}/overrideBase URL
https://app.testsigma.com/api/v1RegionUpdate 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. How to authenticate →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()Response200 OK
{
"errors": [],
"message": "Overridden the results successfully"
}Was this page helpful?
Thanks for the feedback.