3 title: Open Test Framework API
\r
4 description: A RESTful API used to communicate with the OTF test control unit.
\r
7 url: https://localhost:32524
\r
10 - name: Health Service
\r
11 description: Query the availability of the API
\r
12 - name: Test Execution Service
\r
13 description: Query the status and history of your test executions
\r
14 - name: Test Instance Service
\r
15 description: Create, execute,and query test instances
\r
16 - name: Test Strategy Service
\r
17 description: Deploy and delete test strategies to and from the test control unit.
\r
18 (This documentation will only be available to the development team)
\r
24 summary: Checks if the test control unit is available
\r
25 operationId: getHealth_1
\r
28 description: The test control unit is available
\r
32 $ref: '#/components/schemas/OtfApiResponse'
\r
33 /otf/api/testExecution/v1/executionId/{executionId}:
\r
36 - Test Execution Service
\r
37 operationId: getExecutionStatus_1
\r
44 - name: Authorization
\r
50 description: default response
\r
52 application/json: {}
\r
53 /otf/api/testInstance/execute/v1/id/{testInstanceId}:
\r
56 - Test Instance Service
\r
57 summary: Executes a test instance by it's unique identifier
\r
58 operationId: execute_1
\r
60 - name: testInstanceId
\r
62 description: A string representation of a BSON ObjectId
\r
66 description: The UUID of the test instance
\r
68 example: 12345678912345678912345f
\r
69 - name: Authorization
\r
71 description: Base64 encoded Application Authorization Framework credentials
\r
75 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
80 $ref: '#/components/schemas/ExecuteTestInstanceRequest'
\r
83 description: A successful synchronously executed test returns a test execution
\r
88 $ref: '#/components/schemas/TestExecutionResult'
\r
91 A successful asynchronously executed test with asyncMode set to 'poll' returns an execution identifier
\r
92 The identifier can be used as a parameter to the Test Execution Service to check the status of the executed test
\r
96 $ref: '#/components/schemas/TestExecutionResult'
\r
98 description: The mechanized identifier used with the request is prohibited
\r
99 from accessing the resource.
\r
103 $ref: '#/components/schemas/OtfApiResponse'
\r
104 /otf/api/testInstance/v1/id/{id}:
\r
107 - Test Instance Service
\r
108 operationId: findById_1
\r
112 description: A string representation of a BSON ObjectId
\r
116 description: The UUID of the test instance
\r
118 example: 12345678912345678912345f
\r
119 - name: Authorization
\r
121 description: Base64 encoded Application Authorization Framework credentials
\r
125 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
128 description: default response
\r
130 application/json: {}
\r
131 /otf/api/testInstance/create/v1/testDefinitionId/{testDefinitionId}/version/{version}:
\r
134 - Test Instance Service
\r
135 summary: Create a test instance using the specified version of the test definition
\r
136 operationId: createByTestDefinitionIdAndVersion_1
\r
138 - name: testDefinitionId
\r
140 description: A string representation of a BSON ObjectId
\r
144 description: The UUID of the test definition.
\r
146 example: 12345678912345678912345f
\r
149 description: The version of the test definition used to create the instance
\r
154 - name: Authorization
\r
156 description: Base64 encoded Application Authorization Framework credentials
\r
160 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
163 description: Execute the test instance after it is created
\r
164 allowEmptyValue: true
\r
172 $ref: '#/components/schemas/CreateTestInstanceRequest'
\r
175 description: The created Test Instance object is returned when it is created
\r
179 $ref: '#/components/schemas/TestInstance'
\r
180 /otf/api/testInstance/v1/testInstanceName/{testInstanceName}:
\r
183 - Test Instance Service
\r
184 summary: Finds a test instance by it's name
\r
185 operationId: findByTestInstanceName_1
\r
187 - name: testInstanceName
\r
189 description: The name of the test instance to retrieve
\r
193 example: myTestInstance
\r
194 - name: Authorization
\r
196 description: Base64 encoded Application Authorization Framework credentials
\r
200 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
203 description: A test instance object is returned when if it is found
\r
207 $ref: '#/components/schemas/TestInstance'
\r
208 /otf/api/testInstance/v1/processDefinitionKey/{processDefinitionKey}:
\r
211 - Test Instance Service
\r
212 operationId: findByProcessDefKey_1
\r
214 - name: processDefinitionKey
\r
216 description: The process definition key associated with the test definition
\r
220 example: someUniqueProcessDefinitionKey
\r
221 - name: Authorization
\r
223 description: Base64 encoded Application Authorization Framework credentials
\r
227 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
230 description: default response
\r
232 application/json: {}
\r
233 /otf/api/testInstance/create/v1/testDefinitionId/{testDefinitionId}:
\r
236 - Test Instance Service
\r
237 summary: Create a test instance using the latest version of the test definition
\r
238 operationId: createByTestDefinitionId_1
\r
240 - name: testDefinitionId
\r
242 description: A string representation of a BSON ObjectId
\r
246 description: The UUID of the test definition
\r
248 example: 12345678912345678912345f
\r
249 - name: Authorization
\r
251 description: Base64 encoded Application Authorization Framework credentials
\r
255 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
258 description: Execute the test instance after it is created
\r
259 allowEmptyValue: true
\r
267 $ref: '#/components/schemas/CreateTestInstanceRequest'
\r
270 description: The created Test Instance object is returned when it is created
\r
274 $ref: '#/components/schemas/TestInstance'
\r
275 /otf/api/testInstance/v1/processDefinitionKey/{processDefinitionKey}/version/{version}:
\r
278 - Test Instance Service
\r
279 operationId: findByProcessDefKeyAndVersion_1
\r
281 - name: processDefinitionKey
\r
283 description: The process definition key associated with the test definition
\r
287 example: someUniqueProcessDefinitionKey
\r
290 description: The version of the test definition used to create the instance
\r
295 - name: Authorization
\r
297 description: Base64 encoded Application Authorization Framework credentials
\r
301 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
304 description: default response
\r
306 application/json: {}
\r
307 /otf/api/testInstance/create/v1/processDefinitionKey/{processDefinitionKey}/version/{version}:
\r
310 - Test Instance Service
\r
311 summary: Create a test instance using the specified version of the test definition
\r
312 operationId: createByProcessDefKeyAndVersion_1
\r
314 - name: processDefinitionKey
\r
316 description: The process definition key associated with the test definition
\r
320 example: someUniqueProcessDefinitionKey
\r
323 description: The version of the test definition used to create the instance
\r
328 - name: Authorization
\r
330 description: Base64 encoded Application Authorization Framework credentials
\r
334 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
337 description: Execute the test instance after it is created
\r
338 allowEmptyValue: true
\r
346 $ref: '#/components/schemas/CreateTestInstanceRequest'
\r
349 description: The created Test Instance object is returned when it is created
\r
353 $ref: '#/components/schemas/TestInstance'
\r
354 /otf/api/testInstance/create/v1/processDefinitionKey/{processDefinitionKey}:
\r
357 - Test Instance Service
\r
358 summary: Create a test instance using the latest version of the test definition
\r
359 operationId: createByProcessDefKey_1
\r
361 - name: processDefinitionKey
\r
363 description: The process definition key associated with the test definition
\r
367 example: someUniqueProcessDefinitionKey
\r
368 - name: Authorization
\r
370 description: Base64 encoded Application Authorization Framework credentials
\r
374 example: Basic b3RmQGF0dC5jb206cGFzc3dvcmQxMjM=
\r
377 description: Execute the test instance after it is created
\r
378 allowEmptyValue: true
\r
386 $ref: '#/components/schemas/CreateTestInstanceRequest'
\r
389 description: The created Test Instance object is returned when it is created
\r
393 $ref: '#/components/schemas/TestInstance'
\r
394 /otf/api/testStrategy/delete/v1/deploymentId/{deploymentId}:
\r
397 - Test Strategy Service
\r
398 operationId: deleteByDeploymentId_1
\r
400 - name: deploymentId
\r
405 - name: authorization
\r
411 description: default response
\r
413 application/json: {}
\r
414 /otf/api/testStrategy/delete/v1/testDefinitionId/{testDefinitionId}:
\r
417 - Test Strategy Service
\r
418 operationId: deleteByTestDefinitionId_1
\r
420 - name: testDefinitionId
\r
425 - name: authorization
\r
431 description: default response
\r
433 application/json: {}
\r
434 /otf/api/testStrategy/deploy/v1:
\r
437 - Test Strategy Service
\r
438 operationId: deployTestStrategy_1
\r
440 - name: Authorization
\r
446 multipart/form-data:
\r
456 testDefinitionDeployerId:
\r
462 description: default response
\r
464 application/json: {}
\r
508 $ref: '#/components/schemas/ObjectId'
\r
515 additionalProperties:
\r
532 $ref: '#/components/schemas/ObjectId'
\r
534 $ref: '#/components/schemas/ObjectId'
\r
537 additionalProperties:
\r
542 $ref: '#/components/schemas/TestHeadResult'
\r
547 TestExecutionResult:
\r
551 $ref: '#/components/schemas/TestExecution'
\r
562 $ref: '#/components/schemas/ObjectId'
\r
569 additionalProperties:
\r
577 testHeadResponseJSON:
\r
578 $ref: '#/components/schemas/JSONObject'
\r
579 ExecuteTestInstanceRequest:
\r
586 title: Execute the test synchronously or asynchronously..
\r
588 description: Ignored unless async is true, and asyncMode is DMaaP.
\r
589 example: MyDMaaPTopic.
\r
591 title: Set the asynchronous execution mode.
\r
593 description: Ignored unless async is true. The poll mode will return an
\r
594 executionId that can be used to query the result of the executed test.
\r
595 DMaaP is currently unsupported.
\r
601 title: Use an existing test instance with different global test data.
\r
603 description: Overrides (not overwrites) the testData field for the requested
\r
604 execution. The overridden data will be preserved in the test execution
\r
607 globalVar1: I'm available to your workflow!
\r
611 title: Use an existing test instance with different inputs to your VTHs.
\r
613 description: Overrides (not overwrites) the vthInput field for the requested
\r
614 execution. The overridden data will be preserved in the test execution
\r
618 vthArg1: An argument your VTH expects.
\r
621 vthArg1: An argument your VTH expects.
\r
622 description: The model2 for a test instance execution request.
\r
627 $ref: '#/components/schemas/ObjectId'
\r
630 testInstanceDescription:
\r
633 $ref: '#/components/schemas/ObjectId'
\r
635 $ref: '#/components/schemas/ObjectId'
\r
636 processDefinitionId:
\r
638 useLatestTestDefinition:
\r
642 additionalProperties:
\r
646 additionalProperties:
\r
650 additionalProperties:
\r
659 $ref: '#/components/schemas/ObjectId'
\r
661 $ref: '#/components/schemas/ObjectId'
\r
663 $ref: '#/components/schemas/JSONObject'
\r
665 $ref: '#/components/schemas/JSONObject'
\r
666 internalTestDataJSON:
\r
667 $ref: '#/components/schemas/JSONObject'
\r
668 CreateTestInstanceRequest:
\r
671 - testInstanceDescription
\r
676 title: Name the test instance
\r
678 description: The name must be unique among all test instances belonging
\r
679 to the same test definition.
\r
680 example: MyTestInstance
\r
681 testInstanceDescription:
\r
682 title: Describe the test instance being created
\r
684 description: Use this field to describe the functionality of the test instance
\r
685 example: This test instance does absolutely nothing!
\r
687 title: Set global variables
\r
690 This field has read and write access by any task within the workflow.
\r
691 See the example for more information
\r
693 globalVar1: I'm available to your workflow!
\r
697 title: Set virtual test head data
\r
700 This field determines the data each VTH at the designated ServiceTask will receive.
\r
701 See the example for more information
\r
704 vthArg1: An argument your VTH expects.
\r
707 vthArg1: An argument your VTH expects.
\r
714 description: The model2 for a test instance creation request.
\r