TestAnalysisJunofilter
Test analysis junofilter¶
Attempt to filter test analysis
Request¶
Parameters¶
Parameter | Type | Required | Notes |
---|---|---|---|
page | query | yes | page number that the filter returns |
size | query | yes | size number that the filter returns |
order | query | yes | definition of the sorting for filter (asc/desc) |
by | query | yes | definition of the sorting for filter (id) |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisFilters | array | no | array of objects containing nameOfTheField , operator and value . nameOfTheField is a string (example= ownerId), operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
labelFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
collaboratorFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testerFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
priorityFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
statusFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testPlanIds | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testAnalysisStatus | object | yes | contains projectId (required integer), closed (boolean), deleted (boolean), scheduleId (integer) and type (integer) |
navbar | object | no | object containing substring (type: string) |
testExecutionFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testSpaceFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
Request body example¶
{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}
curl --location 'https://example.juno.one/testanalysis/junofilter' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}'
import requests
import json
url = "https://example.juno.one/testanalysis/junofilter"
payload = json.dumps({
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": True,
"closed": True,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
})
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 \"testAnalysisFilters\": [\n {\n \"nameOfTheField\": \"ownerId\",\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"collaboratorFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testerFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testPlanIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testAnalysisStatus\": {\n \"deleted\": true,\n \"closed\": true,\n \"projectId\": 2,\n \"type\": 2,\n \"scheduleId\": 2\n },\n \"navbar\": {\n \"substring\": \"string\"\n },\n \"testExecutionFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testSpaceFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 2\n }\n ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysis/junofilter")
.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 junofilter has the status 200
with following response body:
{
"data": [
{
"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": 0,
"spent": 1,
"spent_from_children": 0,
"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"
},
"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
}
],
"issueCount": 1,
"spent_unassigned": 0,
"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"
}
]
}
],
"first": true,
"last": true,
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1,
"limit": 10,
"pageNumber": 1
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Test analysis parent filter¶
Attempt to filter a test analysis by parent
Request¶
Parameters¶
Parameter | Type | Required | Notes |
---|---|---|---|
page | query | yes | page number that the filter returns |
size | query | yes | size number that the filter returns |
order | query | yes | definition of the sorting for filter (asc/desc) |
by | query | yes | definition of the sorting for filter (id) |
parent_id | path | yes | definition of the parent id |
parent_type | path | yes | definition of the parent type id |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisFilters | array | no | array of objects containing nameOfTheField , operator and value . nameOfTheField is a string (example= ownerId), operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
labelFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
collaboratorFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testerFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
priorityFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
statusFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testPlanIds | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testAnalysisStatus | object | yes | contains projectId (required integer), closed (boolean), deleted (boolean), scheduleId (integer) and type (integer) |
navbar | object | no | object containing substring (type: string) |
testExecutionFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testSpaceFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
Request body example¶
{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}
curl --location 'https://example.juno.one/testanalysis/junofilter/parentfilter/13/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}'
import requests
import json
url = "https://example.juno.one/testanalysis/junofilter/parentfilter/13/2"
payload = json.dumps({
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": True,
"closed": True,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
})
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 \"testAnalysisFilters\": [\n {\n \"nameOfTheField\": \"ownerId\",\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"collaboratorFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testerFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testPlanIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testAnalysisStatus\": {\n \"deleted\": true,\n \"closed\": true,\n \"projectId\": 2,\n \"type\": 2,\n \"scheduleId\": 2\n },\n \"navbar\": {\n \"substring\": \"string\"\n },\n \"testExecutionFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testSpaceFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 2\n }\n ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysis/junofilter/parentfilter/13/2")
.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 parent junofilter has the status 200
with following response body:
{
"data": [
{
"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": 0,
"spent": 1,
"spent_from_children": 0,
"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"
},
"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
}
],
"issueCount": 1,
"spent_unassigned": 0,
"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"
}
]
}
],
"first": true,
"last": true,
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1,
"limit": 10,
"pageNumber": 1
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Test analysis children filter¶
Attempt to filter the test analysis by children
Request¶
Parameters¶
Parameter | Type | Required | Notes |
---|---|---|---|
page | query | yes | the page number that the filter returns |
size | query | yes | the size number that the filter returns |
order | query | yes | definition of the sorting for filter (asc/desc) |
by | query | yes | definition of the sorting for filter (id) |
parent_id | path | yes | definition of the parent id |
parent_type | path | yes | definition of the parent type id |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisFilters | array | no | array of objects containing nameOfTheField , operator and value . nameOfTheField is a string (example= ownerId), operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
labelFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
collaboratorFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testerFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
priorityFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
statusFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testPlanIds | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testAnalysisStatus | object | yes | contains projectId (required integer), closed (boolean), deleted (boolean), scheduleId (integer) and type (integer) |
navbar | object | no | object containing substring (type: string) |
testExecutionFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testSpaceFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
Request body example¶
{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}
curl --location 'https://example.juno.one/testanalysis/junofilter/childrenfilter/13/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}'
import requests
import json
url = "https://example.juno.one/testanalysis/junofilter/childrenfilter/13/2"
payload = json.dumps({
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": True,
"closed": True,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
})
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 \"testAnalysisFilters\": [\n {\n \"nameOfTheField\": \"ownerId\",\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"collaboratorFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testerFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testPlanIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testAnalysisStatus\": {\n \"deleted\": true,\n \"closed\": true,\n \"projectId\": 2,\n \"type\": 2,\n \"scheduleId\": 2\n },\n \"navbar\": {\n \"substring\": \"string\"\n },\n \"testExecutionFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testSpaceFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 2\n }\n ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysis/junofilter/childrenfilter/13/2")
.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 children junofilter has the status 200
with following response body:
{
"data": [
{
"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": 0,
"spent": 1,
"spent_from_children": 0,
"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"
},
"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
}
],
"issueCount": 1,
"spent_unassigned": 0,
"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"
}
]
}
],
"first": true,
"last": true,
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1,
"limit": 10,
"pageNumber": 1
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed
Test analysis schedule filter¶
Attempt to filter a test analysis by schedule
Request¶
Parameters¶
Parameter | Type | Required | Notes |
---|---|---|---|
page | query | yes | the page number that the filter returns |
size | query | yes | the size number that the filter returns |
order | query | yes | the definition of the sorting for filter (asc/desc) |
by | query | yes | the definition of the sorting for filter (id) |
Request body¶
Attribute | Type | Required | Notes |
---|---|---|---|
testAnalysisFilters | array | no | array of objects containing nameOfTheField , operator and value . nameOfTheField is a string (example= ownerId), operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
labelFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
collaboratorFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testerFilters | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
priorityFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
statusFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testPlanIds | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testAnalysisStatus | object | yes | contains projectId (required integer), closed (boolean), deleted (boolean), scheduleId (integer) and type (integer) |
navbar | object | no | object containing substring (type: string) |
testExecutionFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
testSpaceFilter | array | no | array of objects containing operator and value . operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered |
Request body example¶
{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}
curl --location 'https://example.juno.one/testanalysis/junofilter/schedule' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": true,
"closed": true,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
}'
import requests
import json
url = "https://example.juno.one/testanalysis/junofilter/schedule"
payload = json.dumps({
"testAnalysisFilters": [
{
"nameOfTheField": "ownerId",
"operator": "=",
"value": 1
}
],
"labelFilters": [
{
"operator": "=",
"value": 1
}
],
"collaboratorFilters": [
{
"operator": "=",
"value": 1
}
],
"testerFilters": [
{
"operator": "=",
"value": 1
}
],
"priorityFilter": [
{
"operator": "=",
"value": 1
}
],
"statusFilter": [
{
"operator": "=",
"value": 1
}
],
"testPlanIds": [
{
"operator": "=",
"value": 1
}
],
"testAnalysisStatus": {
"deleted": True,
"closed": True,
"projectId": 2,
"type": 2,
"scheduleId": 2
},
"navbar": {
"substring": "string"
},
"testExecutionFilter": [
{
"operator": "=",
"value": 1
}
],
"testSpaceFilter": [
{
"operator": "=",
"value": 2
}
]
})
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 \"testAnalysisFilters\": [\n {\n \"nameOfTheField\": \"ownerId\",\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"collaboratorFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testerFilters\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testPlanIds\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testAnalysisStatus\": {\n \"deleted\": true,\n \"closed\": true,\n \"projectId\": 2,\n \"type\": 2,\n \"scheduleId\": 2\n },\n \"navbar\": {\n \"substring\": \"string\"\n },\n \"testExecutionFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 1\n }\n ],\n \"testSpaceFilter\": [\n {\n \"operator\": \"=\",\n \"value\": 2\n }\n ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://example.juno.one/testanalysis/junofilter/schedule")
.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 schedule junofilter has the status 200
with following response body:
{
"data": [
{
"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": 0,
"spent": 1,
"spent_from_children": 0,
"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"
},
"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
}
],
"issueCount": 1,
"spent_unassigned": 0,
"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"
}
]
}
],
"first": true,
"last": true,
"totalPages": 1,
"totalElements": 1,
"numberOfElements": 1,
"limit": 10,
"pageNumber": 1
}
400
Bad Request
404
Not found
406
Insufficient permision
412
Precondition failed