Zephyr: Update Test Execution Steps
zephyr_update_test_execution_stepsUpdate status and actual results of test execution steps in Zephyr. Only specified fields are modified.
Instructions
Update test steps for a given Test Execution in Zephyr. This operation updates the provided steps with their execution status and actual results. Only the fields included in the request will be modified.
Toolset: Test Executions
Examples:
Mark the status of all steps in the test execution 'SA-E1' as 'Pass'. Set the actual result of step 1 to 'Dashboard widgets loaded correctly' and step 2 to 'Navigation menu responded correctly to user interactions'.
{
"testExecutionIdOrKey": "SA-E1",
"steps": [
{
"statusName": "Pass",
"actualResult": "Dashboard widgets loaded correctly"
},
{
"statusName": "Pass",
"actualResult": "Navigation menu responded correctly to user interactions"
}
]
}Expected Output: Test steps are updated successfully, but no output is expected.
Update only the status of step 2 in test execution 'SA-E5' to 'Fail'. Do not modify any other fields.
{
"testExecutionIdOrKey": "SA-E5",
"steps": [
{},
{
"statusName": "Fail"
}
]
}Expected Output: The test execution steps are updated, but no output is expected.
Update only the actual results of the steps in test execution '10'. Set the actual result of step 1 to 'API returned 500 error' and step 2 actual result to 'API returned 200 success'
{
"testExecutionIdOrKey": "10",
"steps": [
{
"actualResult": "API returned 500 error"
},
{
"actualResult": "API returned 200 success"
}
]
}Expected Output: Test steps are updated successfully, but no output is expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| testExecutionIdOrKey | Yes | The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+ |