Skip to content

TestExecutionBatch

Create batch

Attempt to create a test execution batch

Request

post /testexecution/createbatch/{test_analysis_id}/{creator_id}

Parameters

Parameter Path/Query Type Required Notes
test_analysis_id path integer yes defines the id of a test analysis
creator_id path integer yes defines the id of the creator
jira_issue_id query string yes defines the id of the jira issue
global_config_id query integer yes defines the id of the global config
batchId query integer yes defines the batch id

Request body

This endpoint does not have a request body


curl --location --request POST 'https://example.juno.one/testexecution/createbatch/1/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example'
import requests

url = "https://example.juno.one/testexecution/createbatch/1/2"

payload = {}
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-tenantID': 'example'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "text/plain".toMediaType()
val body = "".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/createbatch/1/2")
  .post(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of create test execution batch has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "precondition": "test",
    "expected_result": "test",
    "deleted": false,
    "deleted_at": "2020-06-03T00:00:00.000Z",
    "created_at": "2020-06-03T00:00:00.000Z",
    "updated_at": "2020-06-03T00:00:00.000Z",
    "position": 1,
    "visible": false,
    "testExecution": {
      "id": 1,
      "testPlanId": {
        "id": 2,
        "name": "test"
      },
      "testStepId": 1,
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "statusId": {
        "id": 0,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 0,
        "color": "#29a745"
      },
      "actual_result": "test",
      "duration": 1,
      "position": 1,
      "batchId": 1,
      "jirraIssueId": "DNTPPJI-1",
      "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z",
      "related_issues": [
        {
          "id": 2,
          "issueTypeId": {
            "id": 2,
            "name": "test"
          },
          "statusId": {
            "id": 13,
            "name": "test",
            "color": "#29a745",
            "deleted": true,
            "final": true
          },
          "closed": true,
          "deleted": true
        }
      ],
      "related_jira_issues": [
        {
          "id": 2,
          "jiraIssueId": 14,
          "jiraKeyId": "DNTPPJI-1",
          "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "closed": true,
          "closed_at": "2023-03-16T12:23:30.000Z",
          "deleted": true,
          "deleted_at": true,
          "created_at": "2023-03-16T12:23:30.000Z",
          "updated_at": "2023-03-16T12:23:30.000Z"
        }
      ]
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "previous_name": "prevtest",
        "color": "#c0507e",
        "previous_color": "#c0507e",
        "created_at": "2022-09-05T18:59:37.000Z",
        "updated_at": "2022-09-05T18:59:37.000Z",
        "projectId": 13,
        "gitlabLabelId": 2,
        "deleted": true,
        "deleted_at": "2022-09-05T18:59:37.000Z"
      }
    ]
  }
]

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing test_analysis_id parameter",
    "path": "/testexecution/createbatch/12/123"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testexecution/createbatch/12/123"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testexecution/createbatch/12/123"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path": "/testexecution/createbatch/12/123"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path": "/testexecution/createbatch/12/123"
}

Create batch with preset status

Attempt to create a test execution batch with a preset status

Request

post /testexecution/createbatch/{test_analysis_id}/{creator_id}/{preset_status}

Parameters

Parameter Path/Query Type Required Notes
test_analysis_id path integer yes defines the id of a test analysis
creator_id path integer yes defines the id of the creator
preset_status path integer yes defines the preset status
test_plan_id query array yes array containing integers that define the parent design id

Request body

This endpoint does not have a request body


curl --location --request POST 'https://example.juno.one/testexecution/createbatch/1/2/110' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example'
import requests

url = "https://example.juno.one/testexecution/createbatch/1/2/110"

payload = {}
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-tenantID': 'example'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "text/plain".toMediaType()
val body = "".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/createbatch/1/2/110")
  .post(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of create test execution batch with preset status has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "precondition": "test",
    "expected_result": "test",
    "deleted": false,
    "deleted_at": "2020-06-03T00:00:00.000Z",
    "created_at": "2020-06-03T00:00:00.000Z",
    "updated_at": "2020-06-03T00:00:00.000Z",
    "position": 1,
    "visible": false,
    "testExecution": {
      "id": 1,
      "testPlanId": {
        "id": 2,
        "name": "test"
      },
      "testStepId": 1,
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "statusId": {
        "id": 0,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 0,
        "color": "#29a745"
      },
      "actual_result": "test",
      "duration": 1,
      "position": 1,
      "batchId": 1,
      "jirraIssueId": "DNTPPJI-1",
      "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z",
      "related_issues": [
        {
          "id": 2,
          "issueTypeId": {
            "id": 2,
            "name": "test"
          },
          "statusId": {
            "id": 13,
            "name": "test",
            "color": "#29a745",
            "deleted": true,
            "final": true
          },
          "closed": true,
          "deleted": true
        }
      ],
      "related_jira_issues": [
        {
          "id": 2,
          "jiraIssueId": 14,
          "jiraKeyId": "DNTPPJI-1",
          "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "closed": true,
          "closed_at": "2023-03-16T12:23:30.000Z",
          "deleted": true,
          "deleted_at": true,
          "created_at": "2023-03-16T12:23:30.000Z",
          "updated_at": "2023-03-16T12:23:30.000Z"
        }
      ]
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "previous_name": "prevtest",
        "color": "#c0507e",
        "previous_color": "#c0507e",
        "created_at": "2022-09-05T18:59:37.000Z",
        "updated_at": "2022-09-05T18:59:37.000Z",
        "projectId": 13,
        "gitlabLabelId": 2,
        "deleted": true,
        "deleted_at": "2022-09-05T18:59:37.000Z"
      }
    ]
  }
]

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing test_analysis_id parameter",
    "path": "/testexecution/createbatch/12/123/2"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testexecution/createbatch/12/123/2"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testexecution/createbatch/12/123/2"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path": "/testexecution/createbatch/12/123/2"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path": "/testexecution/createbatch/12/123/2"
}

Find last batch

Attempt to find the last test execution batch specified by a test analysis id

Request

get /testexecution/lastBatch/{test_analysis_id}

Parameters

Parameter Path/Query Type Required Notes
test_analysis_id path integer yes defines the id of a test analysis

Request body

This endpoint does not have a request body


curl --location 'https://example.juno.one/testexecution/lastBatch/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example'
import requests

url = "https://example.juno.one/testexecution/lastBatch/2"

payload = {}
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-tenantID': 'example'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/lastBatch/2")
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of find last test execution batch has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "precondition": "test",
    "expected_result": "test",
    "deleted": false,
    "deleted_at": "2020-06-03T00:00:00.000Z",
    "created_at": "2020-06-03T00:00:00.000Z",
    "updated_at": "2020-06-03T00:00:00.000Z",
    "position": 1,
    "visible": false,
    "testExecution": {
      "id": 1,
      "testPlanId": {
        "id": 2,
        "name": "test"
      },
      "testStepId": 1,
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "statusId": {
        "id": 0,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 0,
        "color": "#29a745"
      },
      "actual_result": "test",
      "duration": 1,
      "position": 1,
      "batchId": 1,
      "jirraIssueId": "DNTPPJI-1",
      "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z",
      "related_issues": [
        {
          "id": 2,
          "issueTypeId": {
            "id": 2,
            "name": "test"
          },
          "statusId": {
            "id": 13,
            "name": "test",
            "color": "#29a745",
            "deleted": true,
            "final": true
          },
          "closed": true,
          "deleted": true
        }
      ],
      "related_jira_issues": [
        {
          "id": 2,
          "jiraIssueId": 14,
          "jiraKeyId": "DNTPPJI-1",
          "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "closed": true,
          "closed_at": "2023-03-16T12:23:30.000Z",
          "deleted": true,
          "deleted_at": true,
          "created_at": "2023-03-16T12:23:30.000Z",
          "updated_at": "2023-03-16T12:23:30.000Z"
        }
      ]
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "previous_name": "prevtest",
        "color": "#c0507e",
        "previous_color": "#c0507e",
        "created_at": "2022-09-05T18:59:37.000Z",
        "updated_at": "2022-09-05T18:59:37.000Z",
        "projectId": 13,
        "gitlabLabelId": 2,
        "deleted": true,
        "deleted_at": "2022-09-05T18:59:37.000Z"
      }
    ]
  }
]

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testexecution/lastBatch/12"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testexecution/lastBatch/12"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path": "/testexecution/lastBatch/12"
}

Update batch

Attempt to update a test execution batch

Request

put /testexecution/batchupdate/{batch_id}/{test_analysis_id}/{status_id}

Parameters

Parameter Path/Query Type Required Notes
batch_id path integer yes defines the id of a batch
test_analysis_id path integer yes defines the id of a test analysis
status_id path integer yes defines the id of a status

Request body

This endpoint does not have a request body


curl --location --request PUT 'https://example.juno.one/testexecution/batchupdate/1/1/1' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"statusId": {
"id": 1
},
"actual_result": "test"
}'
import requests
import json

url = "https://example.juno.one/testexecution/batchupdate/1/1/1"

payload = json.dumps({
  "statusId": {
    "id": 1
  },
  "actual_result": "test"
})
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-tenantID': 'example',
  'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n  \"statusId\": {\n    \"id\": 1\n  },\n  \"actual_result\": \"test\"\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/batchupdate/1/1/1")
  .put(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .addHeader("Content-Type", "application/json")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of update test execution batch has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "precondition": "test",
    "expected_result": "test",
    "deleted": false,
    "deleted_at": "2020-06-03T00:00:00.000Z",
    "created_at": "2020-06-03T00:00:00.000Z",
    "updated_at": "2020-06-03T00:00:00.000Z",
    "position": 1,
    "visible": false,
    "testExecution": {
      "id": 1,
      "testPlanId": {
        "id": 2,
        "name": "test"
      },
      "testStepId": 1,
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "statusId": {
        "id": 0,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 0,
        "color": "#29a745"
      },
      "actual_result": "test",
      "duration": 1,
      "position": 1,
      "batchId": 1,
      "jirraIssueId": "DNTPPJI-1",
      "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z",
      "related_issues": [
        {
          "id": 2,
          "issueTypeId": {
            "id": 2,
            "name": "test"
          },
          "statusId": {
            "id": 13,
            "name": "test",
            "color": "#29a745",
            "deleted": true,
            "final": true
          },
          "closed": true,
          "deleted": true
        }
      ],
      "related_jira_issues": [
        {
          "id": 2,
          "jiraIssueId": 14,
          "jiraKeyId": "DNTPPJI-1",
          "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "closed": true,
          "closed_at": "2023-03-16T12:23:30.000Z",
          "deleted": true,
          "deleted_at": true,
          "created_at": "2023-03-16T12:23:30.000Z",
          "updated_at": "2023-03-16T12:23:30.000Z"
        }
      ]
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "previous_name": "prevtest",
        "color": "#c0507e",
        "previous_color": "#c0507e",
        "created_at": "2022-09-05T18:59:37.000Z",
        "updated_at": "2022-09-05T18:59:37.000Z",
        "projectId": 13,
        "gitlabLabelId": 2,
        "deleted": true,
        "deleted_at": "2022-09-05T18:59:37.000Z"
      }
    ]
  }
]

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing batch id parameter",
    "path": "/testexecution/batchupdate/2/12/2"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testexecution/batchupdate/2/12/2"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testexecution/batchupdate/2/12/2"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path": "/testexecution/batchupdate/2/12/2"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path": "/testexecution/batchupdate/2/12/2"
}

Delete batch

Attempt to delete a test execution batch

Request

delete /testexecution/delete-by-batch/{batch_id}/{test_analysis_id}

Parameters

Parameter Path/Query Type Required Notes
batch_id path integer yes defines the id of a batch
test_analysis_id path integer yes defines the id of a test analysis

Request body

This endpoint does not have a request body


curl --location --request DELETE 'https://example.juno.one/testexecution/delete-by-batch/1/1' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example'
import requests

url = "https://example.juno.one/testexecution/delete-by-batch/1/1"

payload = {}
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-tenantID': 'example'
}

response = requests.request("DELETE", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "text/plain".toMediaType()
val body = "".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/delete-by-batch/1/1")
  .method("DELETE", body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of delete test analysis batch has the status 200 with no response body:

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testexecution/delete-by-batch/12/12"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testexecution/delete-by-batch/12/12"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path": "/testexecution/delete-by-batch/12/12"
}