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 | "name": {
|
9 | "type": "string",
|
10 | "description": "Name of this testcase/scenario"
|
11 | },
|
12 | "assertion": {
|
13 | "type": "string",
|
14 | "description": "Description of what this testcase asserts"
|
15 | },
|
16 | "inputs": {
|
17 | "description": "The inputs send to the fixture input ports, or a sequence of such inputs",
|
18 | "oneOf": [
|
19 | {
|
20 | "type": "object"
|
21 | },
|
22 | {
|
23 | "type": "array",
|
24 | "items": {
|
25 | "type": "object"
|
26 | }
|
27 | }
|
28 | ]
|
29 | },
|
30 | "expect": {
|
31 | "description": "Expected data on fixture output ports.\nCan either be an object, or a sequence of such objects.\n",
|
32 | "oneOf": [
|
33 | {
|
34 | "$ref": "outputdata.json"
|
35 | },
|
36 | {
|
37 | "type": "array",
|
38 | "items": [
|
39 | {
|
40 | "$ref": "outputdata.json"
|
41 | }
|
42 | ]
|
43 | }
|
44 | ]
|
45 | },
|
46 | "timeout": {
|
47 | "type": "number",
|
48 | "description": "Timeout (in milliseconds). Overrides that set in the suite",
|
49 | "default": 2000
|
50 | },
|
51 | "skip": {
|
52 | "type": "string",
|
53 | "description": "Flag to skip testcase.\nShould be a description of the reason for skipping.\n"
|
54 | }
|
55 | },
|
56 | "required": [
|
57 | "name",
|
58 | "assertion",
|
59 | "inputs",
|
60 | "expect"
|
61 | ]
|
62 | } |
\ | No newline at end of file |