Zephyr: Update Test Execution
zephyr_update_test_executionModify status, environment, dates, executor, assignee, or comment of a Zephyr test execution by providing only those fields; null values are ignored.
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
Parameters:
testExecutionIdOrKey (string) required: The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+
statusName (string): The status name.
environmentName (string): Environment assigned to the test case.
actualEndDate (string): The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'
executionTime (number): Actual test execution time in milliseconds.
executedById (string): Atlassian Account ID of the Jira user.
assignedToId (string): Atlassian Account ID of the Jira user.
comment (string): Comment added against overall test case execution.
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]+ |