TestExecutionBatch
Create batch¶
Attempt to create a test execution batch
Request¶
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
404
Not found
406
Insufficient permision
412
Precondition failed
Create batch with preset status¶
Attempt to create a test execution batch with a preset status
Request¶
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
404
Not found
406
Insufficient permision
412
Precondition failed
Find last batch¶
Attempt to find the last test execution batch specified by a test analysis id
Request¶
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
406
Insufficient permision
Update batch¶
Attempt to update a test execution batch
Request¶
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
404
Not found
406
Insufficient permision
412
Precondition failed
Delete batch¶
Attempt to delete a test execution batch
Request¶
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
406
Insufficient permision