Skip to main content
GET
/
apiKey
/
beta
/
test-targets
/
{testTargetId}
/
test-cases
/
{testCaseId}
/
versions
/
{versionId}
Retrieve a specific test case version
curl --request GET \
  --url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/test-cases/{testCaseId}/versions/{versionId} \
  --header 'X-API-Key: <api-key>'
{
  "version": "1",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "runStatus": "OFF",
  "elements": [
    {
      "selectors": [
        {
          "selectorType": "FRAME",
          "selector": "<string>",
          "options": {
            "name": "<string>",
            "exact": true,
            "checked": true,
            "disabled": true,
            "expanded": true,
            "includeHidden": true,
            "level": 123,
            "pressed": true,
            "selected": true,
            "hasText": "<string>",
            "hasNotText": "<string>"
          }
        }
      ],
      "interaction": {
        "action": "CLICK",
        "calledWith": {
          "button": "right",
          "double": true,
          "force": true
        }
      },
      "assertion": {
        "expectation": "VISIBLE",
        "calledWith": "<unknown>"
      },
      "ignoreFailure": true
    }
  ],
  "description": "<string>",
  "prompt": "<string>",
  "versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "LOGIN",
  "tagNames": [
    "<string>"
  ],
  "excludedEnvironmentNames": [
    "<string>"
  ],
  "dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "entryPointUrlPath": "<string>",
  "folderName": "<string>",
  "externalId": "<string>",
  "localEditingStatus": "IN_PROGRESS"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

testCaseId
string<uuid>
required

The ID of the test case

versionId
string<uuid>
required

The version ID of the test case

Response

Test case version details

version
enum<string>
required
Available options:
1
id
string<uuid>
required
runStatus
enum<string>
required
Available options:
OFF,
ON
elements
object[]
required
description
string
required
prompt
string
required
versionId
string<uuid>
required

The version ID of this test case

type
enum<string>
Available options:
LOGIN,
COOKIE_BANNER,
LINK,
TEARDOWN
tagNames
string[]
excludedEnvironmentNames
string[]
dependencyId
string<uuid>
teardownId
string<uuid>
entryPointUrlPath
string
folderName
string
externalId
string
localEditingStatus
enum<string>

The local editing status of this test case version

Available options:
IN_PROGRESS,
DONE,
CANCELLED