Forum Discussion

KaBrenes's avatar
KaBrenes
New Member
3 months ago

Actual Start / End Date - can they be clear on a test execution?

I did an update using Zephyr Server API (v1) with a python program and the test execution it is showing the Actual Start / End Date when the update was did, the test execution status is not executed (no one have started the execution)... I need to clear / delete the values in fields Actual Start / End Date without create a new test execution... is it possible? 

1 Reply

  • It is not possible to clear or delete the "Actual Start" or "Actual End Date" fields for a test execution in Zephyr Server API (v1) without creating a new test execution. Once these fields are populated, there is no documented API or UI functionality to reset them.

    Workarounds

    1. Manual Deletion: You can manually delete the test execution from the Test Player tab in the UI and create a new execution.

    2. API Deletion: Use the `POST /delete/executiondeletion` API endpoint to delete the entire test execution record. This endpoint allows deletion of executions older than a specified date, but it does not support clearing specific fields like start or end dates. Example payload:
      
       ```json
       {
         "deleteExecutionsCreatedBefore": "YYYY-MM-DDTHH:mm:ss.SSSZ",
         "projectKey": "YOUR_PROJECT_KEY",
         "bypassDeletionLimit": true
       }
       ```
      
    Note: This deletes the entire execution, not just the date fields.

    Unfortunately, there is no direct method to reset these fields without creating a new execution.

    Sources

    - Zephyr Server General Configuration Documentation (https://support.smartbear.com/zephyr-essential-dc/docs/en/administration/general-configuration.html)