-
Notifications
You must be signed in to change notification settings - Fork 8
/
functional-test-suites.yaml
673 lines (673 loc) · 22.3 KB
/
functional-test-suites.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
openapi: 3.0.0
info:
title: Functional testing
version: v3
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://{hostname}/test-management/v3
x-akamai:
auth-type: EDGE_GRID
file-path: functional-test-suites.yaml
paths:
/functional/test-suites:
post:
operationId: post-test-suites
summary: Create a test suite
tags:
- Test suites
description: |
Creates an empty test suite.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/test-suite-post.json
schema:
$ref: schemas/test-suite-create.yaml
responses:
201:
description: |
The response provides the created test suite.
content:
application/json:
example:
$ref: examples/test-suite-get-200.json
schema:
$ref: schemas/test-suite.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
get:
operationId: get-test-suites
summary: List test suites
tags:
- Test suites
description: |
Lists test suites created in your organization. The list can also include deleted test suites you can restore. The response contains an array of objects, each keyed by `testSuiteId`. You can use these IDs to [Get a test suite with child objects](ref:get-test-suites-with-child-objects).
parameters:
- $ref: parameters/includeRecentlyDeleted-query.yaml
- $ref: parameters/propertyId-query.yaml
- $ref: parameters/propertyName-query.yaml
- $ref: parameters/propertyVersion-query.yaml
- $ref: parameters/user-query.yaml
responses:
200:
description: |
The response lists test suites.
content:
application/json:
example:
$ref: examples/test-suites-get-200.json
schema:
$ref: schemas/test-suites.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
/functional/test-suites/auto-generate:
post:
operationId: post-auto-generate-test-suite
summary: Generate a test suite with child objects
tags:
- Test suites
description: |
Generates a default test suite with test cases and variables for a specific property version and a URL. Based on property settings and its behaviors and the URL, Test Center generates a default test suite object with test cases and variables. You can modify the generated test suite and add it to Test Center using the [Create a test suite with child objects](ref:post-test-suites-with-child-objects) operation.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/test-suite-auto-generate-post.json
schema:
$ref: schemas/test-suite-auto-generate.yaml
responses:
200:
description: |
The response provides the generated test suite with test cases and variables.
content:
application/json:
example:
$ref: examples/test-suite-auto-generate-post-200.json
schema:
$ref: schemas/test-suite-with-child-objects-auto-generate.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/with-child-objects:
post:
operationId: post-test-suites-with-child-objects
summary: Create a test suite with child objects
tags:
- Test suites
description: |
Creates, or imports, a test suite with test cases and variables. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/test-suite-with-child-objects-post.json
schema:
$ref: schemas/test-suite-with-child-objects-create.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/test-suite-with-child-objects-post-207.json
schema:
$ref: schemas/test-suite-with-child-objects-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}:
parameters:
- $ref: parameters/testSuiteId-path.yaml
get:
operationId: get-test-suite
summary: Get a test suite
tags:
- Test suites
description: |
Returns basic data about a test suite. To check test cases and variables included in the test suite, run the [Get a test suite with child objects](ref:get-test-suites-with-child-objects) operation.
responses:
200:
description: |
The response provides the test suite.
content:
application/json:
example:
$ref: examples/test-suite-get-200.json
schema:
$ref: schemas/test-suite.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
put:
operationId: put-test-suite
summary: Update a test suite
tags:
- Test suites
description: |
Updates basic settings of a test suite. To edit test cases and variables, run the [Update a test suite with child objects](ref:put-test-suites-with-child-objects) operation.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/test-suite-put.json
schema:
$ref: schemas/test-suite-create.yaml
responses:
200:
description: |
The response provides the updated test suite.
content:
application/json:
example:
$ref: examples/test-suite-put-200.json
schema:
$ref: schemas/test-suite.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
delete:
operationId: delete-test-suite
summary: Delete a test suite
tags:
- Test suites
description: |
Deletes a test suite and included child objects: test cases and variables. You can [restore](ref:post-test-suite-restore) test suites with child objects within 30 days of deleting them.
responses:
204:
description: |
Test suite removed.
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/restore:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-test-suite-restore
summary: Restore a test suite
tags:
- Test suites
description: |
Restores a deleted test suite and included child objects. You can run this operation within 30 days of deleting the test suite.
responses:
200:
description: |
The response provides the restored test suite.
content:
application/json:
example:
$ref: examples/test-suite-restore-200.json
schema:
$ref: schemas/test-suite.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/test-cases:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-test-cases
summary: Create test cases
tags:
- Test cases
description: |
Creates a list of new functional test cases for a test suite. Each test case consists of a test request, client profile, and condition. If you want to use variables within a condition or test request's URL or request header, [create the needed variables](ref:post-variables) first. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/functional-test-cases-post.json
schema:
$ref: schemas/functional-test-cases-create.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/functional-test-cases-post-207.json
schema:
$ref: schemas/functional-test-cases-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
get:
operationId: get-test-cases
summary: List test cases
tags:
- Test cases
description: |
Lists functional test cases included in a test suite. The list can also include deleted test cases that you can restore. The response is an array of objects, each keyed by `testCaseId`.
parameters:
- $ref: parameters/includeRecentlyDeleted-query.yaml
- $ref: parameters/resolveVariables-query.yaml
responses:
200:
description: |
The response provides test cases for a test suite.
content:
application/json:
example:
$ref: examples/functional-test-cases-get-200.json
schema:
$ref: schemas/functional-test-cases.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
put:
operationId: put-test-cases
summary: Update a test case
tags:
- Test cases
description: |
Updates functional test cases in a test suite. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/functional-test-cases-put.json
schema:
$ref: schemas/functional-test-cases-update.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/functional-test-cases-put-207.json
schema:
$ref: schemas/functional-test-cases-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/test-cases/order:
parameters:
- $ref: parameters/testSuiteId-path.yaml
put:
operationId: put-order-test-case
summary: Reorder test cases in a test suite
tags:
- Test cases
description: |
Reorders functional test cases in a test suite. The order of test cases applies when running a test for stateful test suites. You need to provide target order for all test cases included in a test suite. To check the current order of test cases, run the [Get a test suite with child objects](ref:get-test-suites-with-child-objects) operation.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/functional-test-cases-order.json
schema:
$ref: schemas/functional-test-cases-order.yaml
responses:
200:
description: |
The response provides reordered test cases.
content:
application/json:
example:
$ref: examples/functional-test-cases-order.json
schema:
$ref: schemas/functional-test-cases-order.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/test-cases/remove:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-remove-test-case
summary: Delete test cases
tags:
- Test cases
description: |
Deletes functional test cases with specific identifiers from a test suite. To get the identifiers, run the [List test cases](ref:get-test-cases) operation. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/functional-test-cases-remove-restore.json
schema:
$ref: schemas/functional-test-cases-remove.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/functional-test-cases-remove-207.json
schema:
$ref: schemas/functional-test-cases-remove-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/test-cases/restore:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-test-cases-restore
summary: Restore test cases
tags:
- Test cases
description: |
Restores functional test cases into a test suite. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/functional-test-cases-remove-restore.json
schema:
$ref: schemas/functional-test-cases-restore.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/functional-test-cases-restore-207.json
schema:
$ref: schemas/functional-test-cases-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/test-cases/{testCaseId}:
parameters:
- $ref: parameters/testSuiteId-path.yaml
- $ref: parameters/testCaseId-path.yaml
get:
operationId: get-test-case
summary: Get a test case
tags:
- Test cases
description: |
Returns details of a functional test case.
parameters:
- $ref: parameters/resolveVariables-query.yaml
responses:
200:
description: |
The response provides the test case.
content:
application/json:
example:
$ref: examples/functional-test-case-get-200.json
schema:
$ref: schemas/functional-test-case.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/variables:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-variables
summary: Create variables
tags:
- Variables
description: |
Creates variables for a test suite. You can use variables in a test request's URL or request headers and in condition expression, as a substitute of placeholders. To learn more, see [Variables](ref:variables-overview). The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/variables-post.json
schema:
$ref: schemas/variables-create.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/variables-post-207.json
schema:
$ref: schemas/variables-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
get:
operationId: get-variables
summary: List variables
tags:
- Variables
description: |
Lists variables created in a test suite.
responses:
200:
description: |
The response lists variables.
content:
application/json:
example:
$ref: examples/variables-get-200.json
schema:
$ref: schemas/variables.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
put:
operationId: put-variables
summary: Update variables
tags:
- Variables
description: |
Updates variables in a test suite. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/variables-put.json
schema:
$ref: schemas/variables-update.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/variables-put-207.json
schema:
$ref: schemas/variables-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/variables/remove:
parameters:
- $ref: parameters/testSuiteId-path.yaml
post:
operationId: post-remove-variables
summary: Delete variables
tags:
- Variables
description: |
Deletes unused variables from a test suite. The operation responds with a [partial-success 207 response](ref:partial-success-responses).
requestBody:
required: true
content:
application/json:
example:
$ref: examples/variables-remove.json
schema:
$ref: schemas/variables-remove.yaml
responses:
207:
description: |
[Partial success response](ref:partial-success-responses)
content:
application/json:
example:
$ref: examples/variables-remove-207.json
schema:
$ref: schemas/variables-remove-207.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/variables/{variableId}:
parameters:
- $ref: parameters/testSuiteId-path.yaml
- $ref: parameters/variableId-path.yaml
get:
operationId: get-variable
summary: Get a variable
tags:
- Variables
description: |
Returns details of a variable used in a test suite.
responses:
200:
description: |
The response provides the variable.
content:
application/json:
examples:
variable:
summary: Single variables
value:
- $ref: examples/variable-get-200.json
variable-group:
summary: Group variables
value:
- $ref: examples/variable-group-get-200.json
schema:
oneOf:
- $ref: schemas/variable.yaml
- $ref: schemas/variable-with-var-group.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
/functional/test-suites/{testSuiteId}/with-child-objects:
parameters:
- $ref: parameters/testSuiteId-path.yaml
get:
operationId: get-test-suites-with-child-objects
summary: Get a test suite with child objects
tags:
- Test suites
description: |
Exports a test suite with test cases and variables.
parameters:
- $ref: parameters/resolveVariables-query.yaml
responses:
200:
description: |
The response provides the test suite with child objects.
content:
application/json:
example:
$ref: examples/test-suite-with-child-objects-get-200.json
schema:
$ref: schemas/test-suite-with-child-objects.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml
put:
operationId: put-test-suites-with-child-objects
summary: Update a test suite with child objects
tags:
- Test suites
description: |
Updates a test suite and included test cases and variables.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/test-suite-with-child-objects-put.json
schema:
$ref: schemas/test-suite-with-child-objects-update.yaml
responses:
200:
description: |
The response provides the updated test suite with child objects.
content:
application/json:
example:
$ref: examples/test-suite-with-child-objects-put-200.json
schema:
$ref: schemas/test-suite-with-child-objects.yaml
400:
$ref: errors/400.yaml
403:
$ref: errors/403.yaml
404:
$ref: errors/404.yaml