Create test runs
post
https://{your_site_interface}/opa-hub/api/12.2.35/tests/{test-suite-name}/runs
This operation will create test runs.
Request
Path Parameters
-
test-suite-name(required): string
The name of the test suite to be retrieved.
Supported Media Types
- application/json
Nested Schema : testRunPost
Type:
Show Source
object
-
type(required): string
The type of this test run.
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
201 Response
The request has been fulfilled and resulted in a new resource being created.
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.
400 Response
The request could not be processed because it contains missing or invalid information.
409 Response
The request could not be completed due to a conflict with the current state of the resource.