curl --request POST \
--url https://app.octomind.dev/api/apiKey/v3/test-targets/{testTargetId}/test-cases/{testCaseId}/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"elements": [
{
"index": 123,
"description": "<string>",
"selectors": [
{
"selectorType": "FRAME",
"index": 123,
"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": false
}
],
"entryPointUrlPath": "<string>",
"type": "LOGIN",
"dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
]
}
'{
"message": "<string>",
"success": true,
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Import a test case from a file in json or yaml format depending on content-type header
curl --request POST \
--url https://app.octomind.dev/api/apiKey/v3/test-targets/{testTargetId}/test-cases/{testCaseId}/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"elements": [
{
"index": 123,
"description": "<string>",
"selectors": [
{
"selectorType": "FRAME",
"index": 123,
"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": false
}
],
"entryPointUrlPath": "<string>",
"type": "LOGIN",
"dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tags": [
"<string>"
]
}
'{
"message": "<string>",
"success": true,
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}The ID of the test target
The ID of the case to import
schema for import and export of test cases
Show child attributes
Show child attributes
FRAME, CSS, TEXT, ROLE, ALT_TEXT, LABEL, TEST_ID, TITLE, PLACEHOLDER, FILTER, FIRST, LAST, NTH Show child attributes
Show child attributes
CLICK LOGIN, COOKIE_BANNER, LINK, TEARDOWN