-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtestcase.yaml
46 lines (44 loc) · 1.15 KB
/
testcase.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
---
id: testcase.json
"$schema": "http://json-schema.org/draft-04/schema"
title: Testcase
description: "A single test case"
type: object
properties:
# mandatory
name:
type: string
description: 'Name of this testcase/scenario'
assertion:
type: string
description: 'Description of what this testcase asserts'
inputs:
description: 'The inputs send to the fixture input ports, or a sequence of such inputs'
oneOf:
- # inputsdata
type: object
- # sequence of inputsdata
type: array
items:
type: object
expect:
description: |
Expected data on fixture output ports.
Can either be an object, or a sequence of such objects.
oneOf:
- "$ref": "outputdata.json"
- # sequence of expectdata
type: array
items:
- "$ref": "outputdata.json"
# optional
timeout:
type: number
description: 'Timeout (in milliseconds). Overrides that set in the suite'
default: 2000
skip:
type: string
description: |
Flag to skip testcase.
Should be a description of the reason for skipping.
required: [name, assertion, inputs, expect]