Get all test runs
get
https://{your_site_interface}/opa-hub/api/12.2.35/tests/{test-suite-name}/runs
This operation will get all test runs.
Request
Path Parameters
-
test-suite-name(required): string
The name of the test suite to be retrieved.
Query Parameters
-
expand: string
Comma separated list of named resources to expand, or "all" to expand all
-
fields: string
Comma separated list of fields to be returned
-
links: string
Comma separated list of links to be returned, or "none" to omit links
-
q: string
A JSON object for filtering matching property values within the collection
There's no request body for this operation.
Security
-
Authorization: apiKey
Type:
apiKey
Description:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
-
oauth2_opa: oauth2
Type:
oauth2
Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
200 Response
The request was successfully completed.
Nested Schema : testRun
Type:
Show Source
object
-
deployments: object
testRunDeployments
-
projects: object
testRunProjects
-
runNumber: number
(double)
Read Only:
true
The identity number of the test run. -
status: string
The status of this test run.
-
summary: object
testRunSummary
-
type: string
The type of this test run.
Nested Schema : testRunSummary
Type:
Show Source
object
-
error: number
(double)
The number of tests that encountered and error for the test run.
-
failed: number
(double)
The number of tests that have failed for the test run.
-
passed: number
(double)
The number of tests that have passed for the test run.
-
pending: number
(double)
The number of tests that are pending for the test run.
-
total: number
(double)
The total number of tests for the test run.
Nested Schema : testRunDeployment
Type:
Show Source
object
-
name: string
Read Only:
true
The name of the tested deployment. -
results: object
testRunDeploymentResults
-
summary: object
testRunDeploymentSummary
-
version: number
(double)
Read Only:
true
The version of the tested deployment.
Nested Schema : testRunDeploymentSummary
Type:
Show Source
object
-
error: number
(double)
The number of tests that encountered and error for the tested deployment.
-
failed: number
(double)
The number of tests that have failed for the tested deployment.
-
passed: number
(double)
The number of tests that have passed for the tested deployment.
-
pending: number
(double)
The number of tests that are pending for the tested deployment.
-
total: number
(double)
The total number of tests for the tested deployment.
Nested Schema : testCaseResult
Type:
Show Source
object
-
actualOutput: object
testCaseResultActualOutput
Additional Properties Allowed:
true
-
expectedOutput: object
testCaseResultExpectedOutput
Additional Properties Allowed:
true
-
input: object
testCaseResultInput
Additional Properties Allowed:
true
-
name: string
Read Only:
true
The name of the test case result. -
outcome: object
testCaseResultOutcome
Additional Properties Allowed:
true
-
status: string
Read Only:
true
The status of the test case result.
Nested Schema : testCaseResultActualOutput
Type:
object
Additional Properties Allowed:
true
Nested Schema : testCaseResultExpectedOutput
Type:
object
Additional Properties Allowed:
true
Nested Schema : testCaseResultInput
Type:
object
Additional Properties Allowed:
true
Nested Schema : testCaseResultOutcome
Type:
object
Additional Properties Allowed:
true
Nested Schema : testRunProject
Type:
Show Source
object
-
name: string
Read Only:
true
The name of the tested project. -
results: object
testRunProjectResults
-
summary: object
testRunProjectSummary
-
version: number
(double)
Read Only:
true
The version of the tested project.
Nested Schema : testRunProjectSummary
Type:
Show Source
object
-
error: number
(double)
The number of tests that encountered and error for the tested project.
-
failed: number
(double)
The number of tests that have failed for the tested project.
-
passed: number
(double)
The number of tests that have passed for the tested project.
-
pending: number
(double)
The number of tests that are pending for the tested project.
-
total: number
(double)
The total number of tests for the tested project.
404 Response
The requested resource does not exist.