GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-cases
List test cases
curl --request GET \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "elements": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "index": 123,
        "interaction": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "action": "EXTRACT",
          "calledWith": "<string>",
          "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        },
        "assertion": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "expectation": "VISIBLE",
          "calledWith": "<string>",
          "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        },
        "scrollState": {},
        "selectors": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "index": 123,
            "selector": "<string>",
            "selectorType": "TEXT",
            "options": {
              "name": "<string>"
            },
            "testCaseElementId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "scrollStateId": "<string>"
          }
        ],
        "testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "ignoreFailure": true
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "status": "ENABLED",
    "externalId": "<string>",
    "entryPointUrlPath": "<string>",
    "tags": [
      "<string>"
    ],
    "createdBy": "EDIT",
    "runStatus": "ON",
    "prerequisiteId": "<string>",
    "proposalRunId": "<string>",
    "folderId": "<string>",
    "teardownTestCaseId": "<string>",
    "discovery": {
      "updatedAt": "2023-11-07T05:31:56Z",
      "freePrompt": "<string>",
      "traceUrl": "<string>",
      "status": "CREATED",
      "abortCause": "<string>",
      "message": "<string>"
    }
  }
]

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

Query Parameters

filter
string

JSON string containing filter criteria for test cases. The filter supports the following fields:

  • id: Filter by test case ID
  • testTargetId: Filter by test target ID
  • description: Filter by test case description
  • status: Filter by test case status (ENABLED, DISABLED, DRAFT, OUTDATED, PROVISIONAL)
  • runStatus: Filter by run status (ON, OFF)
  • folderId: Filter by folder ID
  • externalId: Filter by external ID
  • AND: Logical AND operator for combining multiple conditions
  • OR: Logical OR operator for combining multiple conditions
  • NOT: Logical NOT operator for negating conditions

Response

200
application/json

List of test cases

The response is of type object[].