curl --request POST \
--url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/draft/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testCases": [
{
"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>",
"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"
}
]
}
'{
"success": true,
"versionIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"versionIdByStableId": {
"5afe4190-5900-47d0-8cfd-bbb7dce2460e": "48c9e7d0-67e3-4806-b255-3b9f79fa9639"
}
}Push all test cases from a local representation to a test target as a draft.
curl --request POST \
--url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/draft/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"testCases": [
{
"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>",
"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"
}
]
}
'{
"success": true,
"versionIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"versionIdByStableId": {
"5afe4190-5900-47d0-8cfd-bbb7dce2460e": "48c9e7d0-67e3-4806-b255-3b9f79fa9639"
}
}The ID of the test target
schema for import and export of test cases
Show child attributes
Test target pushed successfully
List of test case IDs that were pushed to the test target
Version IDs per stable id that were pushed to the test target
Show child attributes
{
"5afe4190-5900-47d0-8cfd-bbb7dce2460e": "48c9e7d0-67e3-4806-b255-3b9f79fa9639"
}