Zephyr: Update Test Execution
zephyr_update_test_executionUpdate an existing Zephyr test execution by modifying only specified fields like status, environment, or assignee, leaving others unchanged.
Instructions
Update an existing Test Execution in Zephyr. This operation only updates specified fields in the payload and ignores null or undefined values.
Toolset: Test Executions
Examples:
Update the status name to 'PASS' and the environment name to 'ENV-1' in the test execution 'SA-E40'.
{
"testExecutionIdOrKey": "SA-E40",
"statusName": "PASS",
"environmentName": "ENV-1"
}Expected Output: The test execution should be updated, but no output is expected.
Update execution time and actual end date for test execution id '1' (keep everything else unchanged).
{
"testExecutionIdOrKey": "1",
"executionTime": "2018-05-19T13:15:13Z",
"actualEndDate": "2018-05-20T13:15:13Z"
}Expected Output: The test execution should be updated, but no output is expected.
For test execution 'SA-E40', update the test executor and assignee to be the user with ID 10000.
{
"testExecutionIdOrKey": "SA-E40",
"executedById": "10000",
"assignedToId": "10000"
}Expected Output: The test execution should be updated, but no output is expected.
In test execution 'SA-E40', add a comment saying that this execution was updated via API.
{
"testExecutionIdOrKey": "SA-E40",
"comment": "execution updated via API"
}Expected Output: The test execution should be updated, but no output is expected.
Remove the assigned user from test execution 'SA-E40'.
{
"testExecutionIdOrKey": "SA-E40",
"assignedToId": null
}Expected Output: The test execution should be updated, but no output is expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Comment added against overall test case execution. | |
| statusName | No | The status name. | |
| assignedToId | No | Atlassian Account ID of the Jira user. | |
| executedById | No | Atlassian Account ID of the Jira user. | |
| actualEndDate | No | The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z' | |
| executionTime | No | Actual test execution time in milliseconds. | |
| environmentName | No | Environment assigned to the test case. | |
| testExecutionIdOrKey | Yes | The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+ |