curl --request POST \
--url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testCases": [
{
"version": "1",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tagNames": [
"<string>"
],
"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>",
"type": "LOGIN",
"dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entryPointUrlPath": "<string>",
"folderName": "<string>",
"externalId": "<string>",
"discovery": {
"status": "CREATED",
"traceUrl": "<string>",
"abortCause": "<string>",
"message": "<string>"
}
}
]
}
'{
"success": true
}Push all test cases from a local representation to a test target.
curl --request POST \
--url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testCases": [
{
"version": "1",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tagNames": [
"<string>"
],
"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>",
"type": "LOGIN",
"dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entryPointUrlPath": "<string>",
"folderName": "<string>",
"externalId": "<string>",
"discovery": {
"status": "CREATED",
"traceUrl": "<string>",
"abortCause": "<string>",
"message": "<string>"
}
}
]
}
'{
"success": true
}The ID of the test target
schema for import and export of test cases
Show child attributes
1 OFF, ON 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 Show child attributes
Test target pushed successfully