1 | ---
|
2 | id: testcase.json
|
3 | "$schema": "http://json-schema.org/draft-04/schema"
|
4 | title: Testcase
|
5 | description: "A single test case"
|
6 | type: object
|
7 | properties:
|
8 |
|
9 | name:
|
10 | type: string
|
11 | description: 'Name of this testcase/scenario'
|
12 | assertion:
|
13 | type: string
|
14 | description: 'Description of what this testcase asserts'
|
15 | inputs:
|
16 | description: 'The inputs send to the fixture input ports, or a sequence of such inputs'
|
17 | oneOf:
|
18 | -
|
19 | type: object
|
20 | -
|
21 | type: array
|
22 | items:
|
23 | type: object
|
24 | expect:
|
25 | description: |
|
26 | Expected data on fixture output ports.
|
27 | Can either be an object, or a sequence of such objects.
|
28 | oneOf:
|
29 | - "$ref": "outputdata.json"
|
30 | -
|
31 | type: array
|
32 | items:
|
33 | - "$ref": "outputdata.json"
|
34 |
|
35 |
|
36 | timeout:
|
37 | type: number
|
38 | description: 'Timeout (in milliseconds). Overrides that set in the suite'
|
39 | default: 2000
|
40 | skip:
|
41 | type: string
|
42 | description: |
|
43 | Flag to skip testcase.
|
44 | Should be a description of the reason for skipping.
|
45 |
|
46 | required: [name, assertion, inputs, expect]
|