TestAnalysisConnections
Test space update¶
Attempt to update test space
Request¶
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisId | integer | yes | defines the test analysis id |
testSpaceIds | array | yes | array containing integers that define the test space ids |
Request body example¶
curl --location 'https://example.juno.one/test-spaces-test-analysis/test-analysis' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"testAnalysisId": 1,
"testSpaceIds": [
101
]
}'
import requests
import json
url = "https://example.juno.one/test-spaces-test-analysis/test-analysis"
payload = json.dumps({
"testAnalysisId": 1,
"testSpaceIds": [
101
]
})
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
'X-TenantID': 'example',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n \"testAnalysisId\": 1,\n \"testSpaceIds\": [\n 101\n ]\n }".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/test-spaces-test-analysis/test-analysis")
.post(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 test analysis test space update has the status 200
with following response body:
[
{
"id": 1,
"name": "test",
"creatorId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"deleted": true,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
]
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Filter test analysis by test plan¶
Attempt to filter test analysis specified by a test plan id
Request¶
Parameters¶
Parameter | Path/Query | Type | Required | Notes |
---|---|---|---|---|
test_plan_id | path | integer | yes | defines the id of a test plan |
Request body¶
This endpoint does not have a request body
Request body example¶
curl --location --request GET 'https://example.juno.one/testanalysis/testplan/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"name": "jarin",
"creatorId": {
"id": 1
},
"description": null,
"test_data": null,
"expected_result": null,
"time_estimate": 0,
"priority": null,
"statusId": null,
"ownerId": null,
"projectId": {
"id": 13
},
"parentType": null,
"parentId": null,
"scheduleId": null
}'
Response¶
Successful response of filte test analysis by test space id 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
},
"name": "test",
"description": "test",
"test_data": "test",
"priority": {
"id": 49,
"name": "test",
"priorityId": 1,
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"color": "#29a745",
"position": 0
},
"statusId": {
"id": 1,
"name": "test",
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"state": 1,
"color": "#29a745",
"final": true,
"position": 1,
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
},
"approved": 1,
"version": 1,
"expected_result": "test",
"ownerId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"time_estimate": 1,
"estimated_from_children": 1,
"spent": 1,
"spent_from_children": 1,
"editorId": 1,
"executed_at": "2023-03-16T10:17:04.000Z",
"lastExecStatus": {
"id": 0,
"name": "test",
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"state": 0,
"color": "#29a745"
},
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z",
"parentType": {
"id": 2,
"name": "test"
},
"parentId": 1,
"scheduleId": {
"id": 1,
"name": "test",
"description": "description",
"creatorId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"ownerId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"editorId": 1,
"statusId": {
"id": 1,
"name": "test",
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"state": 1,
"color": "#29a745",
"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"
},
"fromDate": "2023-03-16T10:17:04.000Z",
"toDate": "2023-03-16T10:17:04.000Z",
"estimated": 20,
"spent": 20,
"created_at": "2020-06-03T00:00:00.000Z",
"updated_at": "2020-06-03T00:00:00.000Z",
"position": 1,
"deleted": false,
"deleted_at": "2020-06-03T00:00:00.000Z",
"progress": 50,
"childCollaborators": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"childNestedLabels": {
"id": 22,
"name": "test",
"color": "#c0507e",
"projectId": 13
},
"notes": {
"id": 1,
"scheduleChildId": 1,
"description": "description",
"userId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"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"
},
"parentId": {
"id": 1,
"name": "test",
"creatorId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"position": 1,
"editorId": 1,
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"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",
"color": "#29a745",
"parentCollaborators": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"children": {
"id": 1,
"name": "test"
}
}
},
"labels": [
{
"id": 22,
"name": "test",
"color": "#c0507e",
"projectId": 13
}
],
"collaborators": [
{
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
}
],
"testers": [
{
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
}
],
"testSteps": [
{
"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"
}
]
}
],
"spent_unassigned": 1,
"comments": [
{
"id": 1,
"userId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"description": "description",
"deleted": false,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
],
"testSpaces": [
{
"id": 1,
"name": "test",
"creatorId": {
"id": 2,
"firstname": "test",
"lastname": "test",
"email": "test@juno.one",
"avatar": "9",
"deleted": false
},
"projectId": {
"id": 13,
"name": "test",
"test_case_robust": true
},
"deleted": true,
"deleted_at": "2023-03-16T10:17:04.000Z",
"created_at": "2023-03-16T10:17:04.000Z",
"updated_at": "2023-03-16T10:17:04.000Z"
}
]
}
]
404
Not found
406
Insufficient permision