GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-cases
/
{testCaseId}
/
code
Retrieve code for a test case
curl --request GET \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId}/code \
  --header 'X-API-Key: <api-key>'
{
  "testCode": "<string>"
}

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

Query Parameters

executionUrl
string<url>
required

URL of the app to test

environmentId
string<uuid>

Optional ID of the environment to use

Response

200
application/json

Test case code retrieved successfully

The response is of type object.