Fetch Schedule Test Run Group IDs Endpoint - Sofy Support Docs: No-Code Automation Testing Platform Help

Fetch Schedule Test Run Group IDs Endpoint

Below, we’ve listed out the existing route, the new route, and the functionality for the changed routes:-

The following parameters are required to trigger the schedule in Sofy:

Functionality

Fetch test run group IDs for a scheduled automated test run.

Route

curl --location "https://public.sofy.ai/scheduler-microservice/scheduled-runs/:scheduledRunGuid/test-run-groups" `
--header "x-sofy-auth-key: XXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

Replace the placeholder ScheduleRunGUID and authentication key values with the actual values.

Response:

{
    "data": [\
        {\
  "testRunGroupId": "XXXXX",\
  "executedAt": "2023-10-24T06:14:39.200Z",\
  "status": "Stopped by User"\
        },\
        {\
  "testRunGroupId": "XXXXX",\
  "executedAt": "2023-10-20T10:59:10.290Z",\
  "status": "Complete With Errors"\
        }\
    ],
    "message": "Fetched 2 record(s)."
}

Error Response:

{
    "error": {
        "message": "Error message.",
        "details": "Error details.",
        "timestamp": "2023-10-23T09:23:51.845Z"
    }
}

Schedule Test Runs Group ID Statuses

Different ScheduleTestRunsGroupStatuses possibly returned by the API are: