Skip to content

TestAnalysisCRUD

Create test analysis

Attempt to create a test analysis

Request

post /testanalysis/

Request body

Attribute Type Required Notes
name string yes defines the name of test analysis
creatorId object no object containing integer that defines the id of the creator
description string no description of the test analysis
test_data string no test data
expected_result string no expected results of the test analysis
time_estimate integer no time estimate for the test analysis
priority object no object containing integer that defines the priority
statusId object no object containing integer that defines the status
ownerId object no object containing integer that defines the owner id
projectId object yes object containing integer that defines the id of a project
parentType object no object containing integer that defines the type of parent
parentId integer no defines the parent id
scheduleId object no object containing integer that defines the schedule id

Request body example

{
  "name": "test",
  "creatorId": {
    "id": 1
  },
  "description": "description",
  "test_data": "test",
  "expected_result": "test",
  "time_estimate": 15,
  "priority": {
    "id": 1
  },
  "statusId": {
    "id": 1
  },
  "ownerId": {
    "id": 1
  },
  "projectId": {
    "id": 1
  },
  "parentType": {
    "id": 1
  },
  "parentId": 1,
  "scheduleId": {
    "id": 1
  }
}
curl --location 'https://example.juno.one/testanalysis' \
--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


}'
import requests
import json

url = "https://example.juno.one/testanalysis"

payload = json.dumps({
  "name": "jarin",
  "creatorId": {
    "id": 1
  },
  "description": None,
  "test_data": None,
  "expected_result": None,
  "time_estimate": 0,
  "priority": None,
  "statusId": None,
  "ownerId": None,
  "projectId": {
    "id": 13
  },
  "parentType": None,
  "parentId": None,
  "scheduleId": None
})
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    \"name\": \"jarin\",\n    \"creatorId\": {\n        \"id\": 1\n    },\n    \"description\": null,\n    \"test_data\": null,\n    \"expected_result\": null,\n    \"time_estimate\": 0,\n    \"priority\": null,\n    \"statusId\": null,\n    \"ownerId\": null,\n    \"projectId\": {\n        \"id\": 13\n    },\n    \"parentType\": null,\n    \"parentId\": null,\n    \"scheduleId\": null\n\n\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysis")
  .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 create 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"
    }
  ]
}

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing project id",
    "path": "/testanalysis/"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Project with id 30 was not found.",
    "path": "/testanalysis/"
}

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": "/testanalysis"
}

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" : "/testanalysis/"
}

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" : "/testanalysis/"
}

Find test analysis

Attempt to find a test analysis specified by an id

Request

get /testanalysis/13?planIds=36

Parameters

Parameter Type Required Notes
id Path yes defines the id of a test analysis
plan_ids Query yes defines the id of a test plan

Request body

This endpoint does not have a request body


curl --location 'https://example.juno.one/testanalysis/13?planIds=36' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-tenantID: example'
import requests

url = "https://example.juno.one/testanalysis/13?planIds=36"

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/testanalysis/13?planIds=36")
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-tenantID", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of find test analysis 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

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 12 was not found.",
    "path": "/testanalysis/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": "/testanalysis/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" : "/testanalysis/12"
}

Update test analysis

Attempt to update a test analysis specified by an id

Request

put /testanalysis/{id}

Parameters

Parameter Type Required Notes
id Path yes defines the id of a test analysis

Request body

Attribute Type Required Notes
name string no defines the name of a test analysis
description string no description of the test analysis
test_data string no test data
expected_result string no the expected results of a test analysis
time_estimate integer no time estimate for a test analysis
spent integer no defines time spent on a test analysis
creatorId object no object containing integer that defines the id of the creator
priority object no object containing integer that defines the priority
ownerId object no object containing integer that defines the owner id
parentType object no object containing integer that defines the type of parent
parentId integer no defines the parent id
scheduleId object no object containing integer that defines the schedule id
projectId object yes object containing integer that defines the id of a project
lastExecStatus object no object containing integer that defines the last execution status
executed_at string no defines the time of execution

Request body example

{
  "name": "test",
  "description": "test",
  "test_data": "test",
  "expected_result": "test",
  "time_estimate": 1,
  "spent": 1,
  "creatorId": {
    "id": 1
  },
  "priority": {
    "id": 1
  },
  "ownerId": {
    "id": 1
  },
  "parentType": {
    "id": 1
  },
  "parentId": 0,
  "scheduleId": {
    "id": 1
  },
  "projectId": {
    "id": 1
  },
  "lastExecStatus": {
    "id": 1
  },
  "executed_at": "2023-03-16T10:17:04.000Z"
}
curl --location --request PUT 'https://example.juno.one/testanalysis/13' \
--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": {

    },
    "statusId": null,
    "ownerId": null,
    "projectId": {
        "id": 13
    },
    "parentType": null,
    "parentId": null,
    "scheduleId": null


}'
import requests
import json

url = "https://example.juno.one/testanalysis/13"

payload = json.dumps({
  "name": "jarin",
  "creatorId": {
    "id": 1
  },
  "description": None,
  "test_data": None,
  "expected_result": None,
  "time_estimate": 0,
  "priority": {},
  "statusId": None,
  "ownerId": None,
  "projectId": {
    "id": 13
  },
  "parentType": None,
  "parentId": None,
  "scheduleId": None
})
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    \"name\": \"jarin\",\n    \"creatorId\": {\n        \"id\": 1\n    },\n    \"description\": null,\n    \"test_data\": null,\n    \"expected_result\": null,\n    \"time_estimate\": 0,\n    \"priority\": {\n        \n    },\n    \"statusId\": null,\n    \"ownerId\": null,\n    \"projectId\": {\n        \"id\": 13\n    },\n    \"parentType\": null,\n    \"parentId\": null,\n    \"scheduleId\": null\n\n\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysis/13")
  .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 test analysis update 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"
    }
  ]
}

400 Bad Request

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

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": "/testanalysis/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": "/testanalysis/12"
}

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" : "/testanalysis/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" : "/testanalysis/12"
}

Delete test analysis

Attempt to delete a test analysis specified by an id

Request

delete /testanalysis/delete/{id}

Parameters

Parameter Type Required Notes
id Path 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/testanalysis/delete/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4MjMzOTQwNn0.XWAuQmaKsv5fh60umfYO2gMwtXUjWLWsy6HbDt_fQXV6HPhgQhMkqmmzhWaCXsUP9h-dvKrQowLdqBqHHTYQAA' \
--header 'X-TenantID: example'
import requests

url = "https://example.juno.one/testanalysis/delete/2"

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/testanalysis/delete/2")
  .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 test analysis delete 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

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 2 was not found.",
    "path": "/testanalysis/delete/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": "/testanalysis/delete/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" : "/testanalysis/delete/2"
}

Undelete test analysis

Attempt to undelete test analysis specified by id

Request

delete /testanalysis/undelete/{id}

Parameters

Parameter Type Required Notes
id Path yes defines id of test analysis

Request body

This endpoint does not have a request body


curl --location --request DELETE 'https://example.juno.one/testanalysis/undelete/2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4MjMzOTQwNn0.XWAuQmaKsv5fh60umfYO2gMwtXUjWLWsy6HbDt_fQXV6HPhgQhMkqmmzhWaCXsUP9h-dvKrQowLdqBqHHTYQAA' \
--header 'X-TenantID: example'
import requests

url = "https://example.juno.one/testanalysis/undelete/2"

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/testanalysis/undelete/2")
  .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 test analysis undelete has the status 200 with following response body:

{
    "id": 2,
    "creatorId": {
        "id": 3,
        "firstname": "Honza01",
        "lastname": "Testing01",
        "email": "honzatest@pokus.cz",
        "avatar": "23",
        "deleted": false,
        "language": "cs"
    },
    "name": "Reports_Pattern_Create",
    "description": "Stlačenie tlačítka\n",
    "test_data": "Vytvorenie reportu",
    "priority": {
        "id": 209,
        "name": "Low",
        "priorityId": 1,
        "projectId": {
            "id": 53,
            "name": "Storage project",
            "test_case_robust": true
        },
        "color": "#29a745",
        "position": 1
    },
    "statusId": {
        "id": 2,
        "name": "test",
        "projectId": {
            "id": 1,
            "name": "Rohlik.cz - výchozí projektt",
            "test_case_robust": true
        },
        "state": 3,
        "color": "#29a745",
        "deleted": false,
        "deleted_at": null,
        "created_at": "2021-06-27T19:23:00+02:00",
        "updated_at": "2023-04-27T11:54:47+02:00",
        "final": false,
        "position": 2
    },
    "approved": null,
    "version": null,
    "expected_result": "Vytvorenie reportu",
    "ownerId": null,
    "projectId": {
        "id": 53,
        "name": "Storage project",
        "test_case_robust": true
    },
    "time_estimate": 0,
    "estimated_from_children": 0,
    "spent": 0,
    "spent_from_children": 0,
    "editorId": 461,
    "executed_at": null,
    "lastExecStatus": {
        "id": 313,
        "name": "No Run",
        "projectId": {
            "id": 53,
            "name": "Storage project",
            "test_case_robust": true
        },
        "state": 0,
        "color": "#798295"
    },
    "deleted": false,
    "deleted_at": null,
    "created_at": "2019-04-19T08:51:06+02:00",
    "updated_at": "2023-05-11T10:39:55.88+02:00",
    "parentType": null,
    "parentId": null,
    "scheduleId": null,
    "labels": [
        {
            "id": 1,
            "name": "Reg_Reports",
            "color": "#b8a904",
            "projectId": 53
        }
    ],
    "collaborators": [],
    "testers": [],
    "testSteps": [
        {
            "id": 7,
            "creatorId": {
                "id": 3,
                "firstname": "Honza01",
                "lastname": "Testing01",
                "email": "honzatest@pokus.cz",
                "avatar": "23",
                "deleted": false,
                "language": "cs"
            },
            "precondition": "Z ľavého menu vyber modul reporty\n",
            "expected_result": "Zobrazí sa záložka reporty\n",
            "created_at": "2021-06-27T17:23:09Z",
            "updated_at": "2021-06-27T17:23:09Z",
            "position": 1,
            "deleted": false,
            "deleted_at": null,
            "visible": true,
            "testExecution": null,
            "labels": []
        },
        {
            "id": 8,
            "creatorId": {
                "id": 3,
                "firstname": "Honza01",
                "lastname": "Testing01",
                "email": "honzatest@pokus.cz",
                "avatar": "23",
                "deleted": false,
                "language": "cs"
            },
            "precondition": "Klikni na možnosť vytvoriť šablónu\n",
            "expected_result": "Zobrazí sa záložka na vytvorenie\n",
            "created_at": "2021-06-27T17:23:09Z",
            "updated_at": "2021-06-27T17:23:09Z",
            "position": 2,
            "deleted": false,
            "deleted_at": null,
            "visible": true,
            "testExecution": null,
            "labels": []
        },
        {
            "id": 9,
            "creatorId": {
                "id": 3,
                "firstname": "Honza01",
                "lastname": "Testing01",
                "email": "honzatest@pokus.cz",
                "avatar": "23",
                "deleted": false,
                "language": "cs"
            },
            "precondition": "Klikni na názov a vyplň ho povolenými znakmi, klikni na oblasť reportu a naklikal ľubovoľné widgety v šablóne\n",
            "expected_result": "Všetky zmeny sa objavia v šablóne v strede obrazovky\n",
            "created_at": "2021-06-27T17:23:09Z",
            "updated_at": "2021-06-27T17:23:09Z",
            "position": 3,
            "deleted": false,
            "deleted_at": null,
            "visible": true,
            "testExecution": null,
            "labels": []
        },
        {
            "id": 10,
            "creatorId": {
                "id": 3,
                "firstname": "Honza01",
                "lastname": "Testing01",
                "email": "honzatest@pokus.cz",
                "avatar": "23",
                "deleted": false,
                "language": "cs"
            },
            "precondition": "Klikni na možnosť uložiť\n",
            "expected_result": "Šablóna sa vytvorí\n",
            "created_at": "2021-06-27T17:23:09Z",
            "updated_at": "2021-06-27T17:23:09Z",
            "position": 4,
            "deleted": false,
            "deleted_at": null,
            "visible": true,
            "testExecution": null,
            "labels": []
        }
    ],
    "spent_unassigned": null,
    "comments": [],
    "testSpaces": [
        {
            "id": 1,
            "name": "Rohlik.cz",
            "creatorId": {
                "id": 1,
                "firstname": "Admin",
                "lastname": "Test",
                "email": "asdfsdfg@sdfgiluh.vzxcv",
                "avatar": null,
                "deleted": false,
                "language": "cs"
            },
            "projectId": {
                "id": 53,
                "name": "Storage project",
                "test_case_robust": true
            },
            "deleted": false,
            "deleted_at": null,
            "created_at": null,
            "updated_at": null
        }
    ]
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 2 was not found.",
    "path": "/testanalysis/undelete/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": "/testanalysis/undelete/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" : "/testanalysis/undelete/2"
}

Count children

Attempt to count children of a test analysis specified by an id

Request

get /testanalysis/{id}/count-children

Parameters

Parameter Path/Query Type Required Notes
id path integer yes defines the id of a test analysis
plan_ids query array yes array containing integers that define the test plan ids

Request body

This endpoint does not have a request body


curl --location 'https://example.juno.one/testanalysis/13/count-children' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4MzQ0MzkyOX0.mZFizteFbwuKTN35IYGQmIPLc2nZAe3d1ngRODZcKRDSYHUiiCSAKMDbpdPvfHKWwFRg1Z0JTt6rjpg4kE-RIA' \
--header 'x-tenantId: example'
import requests

url = "https://example.juno.one/testanalysis/13/count-children"

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/testanalysis/13/count-children")
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("x-tenantId", "example")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of test analysis children count has the status 200 with following response body:

{
    "steps": 1,
    "comments": 2,
    "runs": 1
}

404 Not found

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

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": "/testanalysis/30/children-count"
}

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" : "/testanalysis/30/children-count"
}

Update Collaborators

Attempt to add collaborators to a test analysis

Request

post /testanalysiscollaborators

Request body

Attribute Type Required Notes
testAnalysis integer yes defines the test analysis
userIds array yes array containing integers that define the user ids

Request body example

{
    "testAnalysis": 1,
    "userIds": [
        1
    ]
}
curl --location 'https://example.juno.one/testanalysiscollaborators' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
    "testAnalysis": 1,
    "userIds": [
        1
    ]
}'
import requests
import json

url = "https://example.juno.one/testanalysiscollaborators"

payload = json.dumps({
  "testAnalysis": 1,
  "userIds": [
    1
  ]
})
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    \"testAnalysis\": 1,\n    \"userIds\": [\n        1\n    ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysiscollaborators")
  .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 collaborators has the status 200 with following response body:

[
    {
        "id": 1,
        "firstname": "Admin",
        "lastname": "Test",
        "email": "asdfsdfg@sdfgiluh.vzxcv",
        "avatar": null,
        "deleted": false,
        "language": "cs"
    }
]

400 Bad Request

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

404 Not found

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

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": "/testanalysiscollaborators"
}

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" : "/testanalysiscollaborators"
}

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" : "/testanalysiscollaborators"
}

Update Labels

Attempt to edit the labels of a test analysis

Request

post /testanalysislabels

Request body

Attribute Type Required Notes
id_of_type integer yes defines the type
nestedLabelIdList array yes array containing integers that define the labels

Request body example

{
  "id_of_type": 2,
  "nestedLabelIdList": [
    1
  ]
}
curl --location 'https://example.juno.one/testanalysislabels' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
  "id_of_type": 2,
  "nestedLabelIdList": [
    1
  ]
}'
import requests
import json

url = "https://example.juno.one/testanalysislabels"

payload = json.dumps({
  "id_of_type": 2,
  "nestedLabelIdList": [
    1
  ]
})
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  \"id_of_type\": 2,\n  \"nestedLabelIdList\": [\n    1\n  ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysislabels")
  .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 labels has the status 200 with following response body:

[
    {
        "id": 1,
        "name": "Reg_Reports",
        "color": "#b8a904",
        "projectId": 53
    }
]

400 Bad Request

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

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Label with id 30 was not found.",
    "path": "/testanalysislabels"
}

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": "/testanalysislabels"
}

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" : "/testanalysislabels"
}

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" : "/testanalysislabels"
}

Update Testers

Attempt to add testers to a test analysis

Request

post /testanalysistesters

Request body

Attribute Type Required Notes
testAnalysis integer yes define the test analysis
userIds array yes array containing integers that define the user ids

Request body example

{
  "testAnalysis": 1,
  "userIds": [
    1
  ]
}
curl --location 'https://example.juno.one/testanalysistesters' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
  "testAnalysis": 1,
  "userIds": [
    1
  ]
}'
import requests
import json

url = "https://example.juno.one/testanalysistesters"

payload = json.dumps({
  "testAnalysis": 1,
  "userIds": [
    1
  ]
})
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  \"testAnalysis\": 1,\n  \"userIds\": [\n    1\n  ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysistesters")
  .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 testers has the status 200 with following response body:

[
    {
        "id": 1,
        "firstname": "Admin",
        "lastname": "Test",
        "email": "asdfsdfg@sdfgiluh.vzxcv",
        "avatar": null,
        "deleted": false,
        "language": "cs"
    }
]

400 Bad Request

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

404 Not found

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

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": "/testanalysistesters"
}

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" : "/testanalysistesters"
}

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" : "/testanalysistesters"
}