Skip to content

TestExecutionStatus

Find status by project id

Attempt to find a test execution status specified by a project id

Request

get /testexecutionstatuses/{ProjectId}

Parameters

Parameter Path/Query Type Required Notes
ProjectId path integer yes defines the id of a project

Request body

This endpoint does not have a request body


Request body example

curl --location 'https://example.juno.one/testexecutionstatuses/13' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4Mzg3OTk2Nn0.jMp0CqpwG4uspiWoBZ7gUEEavMtdJkeAdZzaiz3EV8UXTok-4y-81diOy8TuYz9LtDMXMxJytiWKBlMoLc1WoA' \
--header 'X-tenantID: example'
import requests

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

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/testexecutionstatuses/13")
  .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 execution status by project id has the status 200 with following response body:

[
  {
    "id": 0,
    "name": "test",
    "projectId": {
      "id": 13,
      "name": "test",
      "test_case_robust": true
    },
    "state": 0,
    "color": "#29a745"
  }
]

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

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

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

Find status by analysis and batch id

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

Request

get /testexecution/status/{test_analysis_id}/batch/{batch_id}

Parameters

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

Request body

This endpoint does not have a request body


Request body example

curl --location 'https://example.juno.one/testexecution/status/1/batch/1' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4Mzg3OTk2Nn0.jMp0CqpwG4uspiWoBZ7gUEEavMtdJkeAdZzaiz3EV8UXTok-4y-81diOy8TuYz9LtDMXMxJytiWKBlMoLc1WoA' \
--header 'X-tenantID: example'
import requests

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

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

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

print(response.text)
val client = OkHttpClient()
val request = Request.Builder()
  .url("https://example.juno.one/testexecution/status/1/batch/1")
  .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 execution status by test analysis and batch id has the status 200 with following response body:

{
  "id": 0,
  "name": "test",
  "projectId": {
    "id": 13,
    "name": "test",
    "test_case_robust": true
  },
  "state": 0,
  "color": "#29a745"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "There were no executions found under testanalysis with id 1 and batch id 1.",
    "path": "/testexecution/status/1/batch/1"
}

406 Insufficient permision

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

500 Unknown error

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