Test Cases
Retrieve a test case
Test targets
Environments
Reports
Notifications
Private locations
Test Cases
Discoveries
Test Cases
Retrieve a test case
Get detailed information about a specific test case
GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-cases
/
{testCaseId}
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId} \
--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>",
"discovery": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"freePrompt": "<string>",
"traceUrl": "<string>",
"traceJsonManifestUrl": "<string>",
"status": "OUTDATED",
"abortCause": "<string>",
"message": "<string>",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastJobExecutionName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"executedTestCaseElements": [
"<string>"
],
"testCase": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"entryPointUrlPath": "<string>",
"type": "<string>",
"status": "ENABLED",
"runStatus": "ON",
"interactionStatus": "NEW",
"createdBy": "EDIT",
"proposalRunId": "<string>",
"externalId": "<string>",
"folderId": "<string>",
"prerequisiteId": "<string>",
"predecessorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTarget": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testIdAttribute": "<string>",
"timeoutPerStep": 123
}
}
}
}
Authorizations
Path Parameters
The ID of the test target
The ID of the test case
Response
200
application/json
Test case details
Available options:
EXTRACT
, ENTER_TEXT
, CLICK
, SELECT_OPTION
, TYPE_TEXT
, KEY_PRESS
, HOVER
, UPLOAD
, GO_TO
, DRAG_AND_DROP
, CLOSE_PAGE
, OPEN_EMAIL
Available options:
TEXT
, LABEL
, PLACEHOLDER
, ROLE
Available options:
ENABLED
, DRAFT
Available options:
EDIT
Available options:
ON
, OFF
Available options:
OUTDATED
Available options:
ENABLED
Available options:
ON
Available options:
NEW
Available options:
EDIT
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId} \
--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>",
"discovery": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"freePrompt": "<string>",
"traceUrl": "<string>",
"traceJsonManifestUrl": "<string>",
"status": "OUTDATED",
"abortCause": "<string>",
"message": "<string>",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastJobExecutionName": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"executedTestCaseElements": [
"<string>"
],
"testCase": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"entryPointUrlPath": "<string>",
"type": "<string>",
"status": "ENABLED",
"runStatus": "ON",
"interactionStatus": "NEW",
"createdBy": "EDIT",
"proposalRunId": "<string>",
"externalId": "<string>",
"folderId": "<string>",
"prerequisiteId": "<string>",
"predecessorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTarget": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testIdAttribute": "<string>",
"timeoutPerStep": 123
}
}
}
}