wisp-schema 1.0.4 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/canary-wisp.json +57 -15
- data/lib/version.rb +3 -2
- data/lib/wisp-schema.rb +41 -6
- data/stable/actions/click.json +26 -0
- data/stable/actions/close_tab.json +19 -0
- data/stable/actions/double_click.json +23 -0
- data/stable/actions/drag_and_drop.json +27 -0
- data/stable/actions/fill.json +24 -0
- data/stable/actions/hover.json +23 -0
- data/stable/actions/loaded.json +20 -0
- data/stable/actions/navigate.json +21 -0
- data/stable/actions/observe.json +28 -0
- data/stable/actions/refresh.json +19 -0
- data/stable/actions/scroll.json +24 -0
- data/stable/actions/select.json +27 -0
- data/stable/actions/send_key.json +21 -0
- data/stable/actions/tester_confirmation.json +20 -0
- data/stable/actions/tester_instruction.json +20 -0
- data/stable/actions/type.json +20 -0
- data/stable/actions/ui_element_reference.json +14 -0
- data/stable/actions/wait.json +21 -0
- data/wisp.json +114 -169
- metadata +19 -1
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Double Click",
|
6
|
+
"description": "Double-clicks on the UI element",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["double_click"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"target": {
|
13
|
+
"title": "Target",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"version": {
|
17
|
+
"type": "string",
|
18
|
+
"title": "Version"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"additionalProperties": false,
|
22
|
+
"required": ["action", "target", "version"]
|
23
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Drag and drop",
|
6
|
+
"description": "Drag and drop",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["drag_and_drop"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"object": {
|
13
|
+
"title": "Object",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"target": {
|
17
|
+
"title": "Target",
|
18
|
+
"$ref": "ui_element_reference.json"
|
19
|
+
},
|
20
|
+
"version": {
|
21
|
+
"type": "string",
|
22
|
+
"title": "Version"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"additionalProperties": false,
|
26
|
+
"required": ["action", "target", "object", "version"]
|
27
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Fill",
|
6
|
+
"description": "Fills the text field with specified content",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["fill"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"target": {
|
13
|
+
"title": "Target",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"text": {"title": "Text", "type": "string"},
|
17
|
+
"version": {
|
18
|
+
"type": "string",
|
19
|
+
"title": "Version"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"additionalProperties": false,
|
23
|
+
"required": ["action", "target", "text", "version"]
|
24
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Hover",
|
6
|
+
"description": "Hovers over specified element",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["hover"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"target": {
|
13
|
+
"title": "Target",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"version": {
|
17
|
+
"type": "string",
|
18
|
+
"title": "Version"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"additionalProperties": false,
|
22
|
+
"required": ["action", "target", "version"]
|
23
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "assertion",
|
5
|
+
"title": "Loaded",
|
6
|
+
"description": "Checks if specified page has loaded",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["loaded"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"page": {"title": "Page", "type": "string"},
|
13
|
+
"version": {
|
14
|
+
"type": "string",
|
15
|
+
"title": "Version"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"additionalProperties": false,
|
19
|
+
"required": ["action", "page", "version"]
|
20
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Navigate",
|
6
|
+
"description": "Navigates to specified URL",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["navigate"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"url": {"title": "URL", "type": "string"},
|
13
|
+
"tab": {"title": "Tab", "type": "string", "enum": ["current", "new", "incognito"]},
|
14
|
+
"version": {
|
15
|
+
"type": "string",
|
16
|
+
"title": "Version"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"additionalProperties": false,
|
20
|
+
"required": ["action", "url", "tab", "version"]
|
21
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "assertion",
|
5
|
+
"title": "Observe",
|
6
|
+
"description": "Checks if element of the UI is visible or not",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["observe"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"object": {
|
13
|
+
"title": "Object",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"visibility": {
|
17
|
+
"title": "Is the element visible?",
|
18
|
+
"type": "boolean",
|
19
|
+
"enum": [true, false]
|
20
|
+
},
|
21
|
+
"version": {
|
22
|
+
"type": "string",
|
23
|
+
"title": "Version"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
"additionalProperties": false,
|
27
|
+
"required": ["action", "object", "visibility", "version"]
|
28
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "refresh",
|
6
|
+
"description": "refreshes the webpage",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["refresh"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"version": {
|
13
|
+
"type": "string",
|
14
|
+
"title": "Version"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"additionalproperties": false,
|
18
|
+
"required": ["action", "version"]
|
19
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Scroll",
|
6
|
+
"description": "Scrolls the page into specified direction until target is reached",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["scroll"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"direction": {"title": "Direction", "type": "string", "enum": ["up", "down", "left", "right"]},
|
13
|
+
"target": {
|
14
|
+
"title": "Target",
|
15
|
+
"$ref": "ui_element_reference.json"
|
16
|
+
},
|
17
|
+
"version": {
|
18
|
+
"type": "string",
|
19
|
+
"title": "Version"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"additionalProperties": false,
|
23
|
+
"required": ["action", "direction", "target", "version"]
|
24
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Select",
|
6
|
+
"description": "Selects specified item from the dropdown",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["select"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"target": {
|
13
|
+
"title": "Target",
|
14
|
+
"$ref": "ui_element_reference.json"
|
15
|
+
},
|
16
|
+
"option": {
|
17
|
+
"title": "Option",
|
18
|
+
"$ref": "ui_element_reference.json"
|
19
|
+
},
|
20
|
+
"version": {
|
21
|
+
"type": "string",
|
22
|
+
"title": "Version"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"additionalProperties": false,
|
26
|
+
"required": ["action", "target", "option", "version"]
|
27
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Press Key",
|
6
|
+
"description": "Press specified key or key combination.",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["send_key"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"key": {"title": "Key", "type": "string"},
|
13
|
+
"modifier": {"title": "Modifier", "type": "string"},
|
14
|
+
"version": {
|
15
|
+
"type": "string",
|
16
|
+
"title": "Version"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"additionalProperties": false,
|
20
|
+
"required": ["action", "key", "version"]
|
21
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "assertion",
|
5
|
+
"title": "Tester Confirmation",
|
6
|
+
"description": "Ask a question to confirm a behavior",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["tester_confirmation"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"confirmation": {"title": "confirmation", "type": "string"},
|
13
|
+
"version": {
|
14
|
+
"type": "string",
|
15
|
+
"title": "Version"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"additionalProperties": false,
|
19
|
+
"required": ["action", "confirmation", "version"]
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Tester Instruction",
|
6
|
+
"description": "An action for a human to complete",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["tester_instruction"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"instruction": {"title": "Instruction", "type": "string"},
|
13
|
+
"version": {
|
14
|
+
"type": "string",
|
15
|
+
"title": "Version"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"additionalProperties": false,
|
19
|
+
"required": ["action", "instruction", "version"]
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Type",
|
6
|
+
"description": "Types in specified text",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["type"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"text": {"title": "Text", "type": "string"},
|
13
|
+
"version": {
|
14
|
+
"type": "string",
|
15
|
+
"title": "Version"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"additionalProperties": false,
|
19
|
+
"required": ["action", "text", "version"]
|
20
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"title": "UI Element Reference",
|
5
|
+
"description": "A UI Element stored in the database",
|
6
|
+
"properties": {
|
7
|
+
"type": {
|
8
|
+
"enum": ["ui_element_reference"]
|
9
|
+
},
|
10
|
+
"id": {"title": "UI Element ID", "type": "integer"}
|
11
|
+
},
|
12
|
+
"additionalProperties": false,
|
13
|
+
"required": ["type", "id"]
|
14
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"action_type": "action",
|
5
|
+
"title": "Wait",
|
6
|
+
"description": "Waits for a number of seconds",
|
7
|
+
"properties": {
|
8
|
+
"action": {
|
9
|
+
"enum": ["wait"]
|
10
|
+
},
|
11
|
+
"id": {"title": "Action ID", "type": "integer"},
|
12
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
13
|
+
"seconds": {"title": "seconds", "type": "integer"},
|
14
|
+
"version": {
|
15
|
+
"type": "string",
|
16
|
+
"title": "Version"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"additionalProperties": false,
|
20
|
+
"required": ["action", "seconds", "version"]
|
21
|
+
}
|
data/wisp.json
CHANGED
@@ -67,56 +67,58 @@
|
|
67
67
|
{"$ref": "#/definitions/type"},
|
68
68
|
{"$ref": "#/definitions/send_key"},
|
69
69
|
{"$ref": "#/definitions/hover"},
|
70
|
-
{"$ref": "#/definitions/
|
71
|
-
{"$ref": "#/definitions/checkbox_check"},
|
72
|
-
{"$ref": "#/definitions/checkbox_uncheck"},
|
70
|
+
{"$ref": "#/definitions/select"},
|
73
71
|
{"$ref": "#/definitions/refresh"},
|
74
72
|
{"$ref": "#/definitions/navigate"},
|
75
|
-
{"$ref": "#/definitions/navigate_new_tab"},
|
76
|
-
{"$ref": "#/definitions/navigate_incognito_tab"},
|
77
73
|
{"$ref": "#/definitions/close_tab"},
|
78
74
|
{"$ref": "#/definitions/scroll"},
|
79
|
-
{"$ref": "#/definitions/
|
75
|
+
{"$ref": "#/definitions/wait"},
|
80
76
|
{"$ref": "#/definitions/drag_and_drop"},
|
81
|
-
{"$ref": "#/definitions/
|
82
|
-
{"$ref": "#/definitions/
|
83
|
-
{"$ref": "#/definitions/
|
84
|
-
{"$ref": "#/definitions/see"},
|
85
|
-
{"$ref": "#/definitions/disappear"},
|
77
|
+
{"$ref": "#/definitions/tester_instruction"},
|
78
|
+
{"$ref": "#/definitions/embedded_test"},
|
79
|
+
{"$ref": "#/definitions/observe"},
|
86
80
|
{"$ref": "#/definitions/loaded"},
|
87
|
-
{"$ref": "#/definitions/
|
81
|
+
{"$ref": "#/definitions/tester_confirmation"}
|
88
82
|
]
|
89
83
|
},
|
90
84
|
"click": {
|
91
85
|
"type": "object",
|
86
|
+
"action_type": "action",
|
92
87
|
"title": "Click",
|
93
88
|
"description": "Clicks on the UI element",
|
94
89
|
"properties": {
|
95
90
|
"action": {
|
96
91
|
"enum": ["click"]
|
97
92
|
},
|
98
|
-
"
|
93
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
94
|
+
"id": {"title": "Action ID", "type": "integer"},
|
99
95
|
"target": {
|
100
96
|
"title": "Target",
|
101
|
-
"$ref": "#/definitions/noun"
|
97
|
+
"$ref": "#/definitions/noun",
|
98
|
+
"type": "ui_element_reference"
|
102
99
|
},
|
103
|
-
"button": {"title": "Mouse Button", "type": "string", "enum": ["left", "middle", "right"]}
|
100
|
+
"button": {"title": "Mouse Button", "type": "string", "enum": ["left", "middle", "right"]},
|
101
|
+
"hold": {"title": "And Hold", "type": "boolean"},
|
102
|
+
"hold_seconds": {"title": "Hold seconds", "type": "integer"}
|
104
103
|
},
|
105
104
|
"additionalProperties": false,
|
106
|
-
"required": ["action", "target"]
|
105
|
+
"required": ["action", "target", "button", "hold"]
|
107
106
|
},
|
108
107
|
"double_click": {
|
109
108
|
"type": "object",
|
109
|
+
"action_type": "action",
|
110
110
|
"title": "Double Click",
|
111
111
|
"description": "Double-clicks on the UI element",
|
112
112
|
"properties": {
|
113
113
|
"action": {
|
114
114
|
"enum": ["double_click"]
|
115
115
|
},
|
116
|
-
"
|
116
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
117
|
+
"id": {"title": "Action ID", "type": "integer"},
|
117
118
|
"target": {
|
118
119
|
"title": "Target",
|
119
|
-
"$ref": "#/definitions/noun"
|
120
|
+
"$ref": "#/definitions/noun",
|
121
|
+
"type": "ui_element_reference"
|
120
122
|
}
|
121
123
|
},
|
122
124
|
"additionalProperties": false,
|
@@ -124,47 +126,52 @@
|
|
124
126
|
},
|
125
127
|
"fill": {
|
126
128
|
"type": "object",
|
129
|
+
"action_type": "action",
|
127
130
|
"title": "Fill",
|
128
131
|
"description": "Fills the text field with specified content",
|
129
132
|
"properties": {
|
130
133
|
"action": {
|
131
134
|
"enum": ["fill"]
|
132
135
|
},
|
133
|
-
"
|
136
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
137
|
+
"id": {"title": "Action ID", "type": "integer"},
|
134
138
|
"target": {
|
135
139
|
"title": "Target",
|
136
|
-
"$ref": "#/definitions/noun"
|
140
|
+
"$ref": "#/definitions/noun",
|
141
|
+
"type": "ui_element_reference"
|
137
142
|
},
|
138
|
-
"text": {"title": "Text", "type": "string"}
|
139
|
-
"method": { "title": "Text entry method", "type": "string", "enum": ["pasting", "typing"] }
|
143
|
+
"text": {"title": "Text", "type": "string"}
|
140
144
|
},
|
141
145
|
"additionalProperties": false,
|
142
146
|
"required": ["action", "target", "text"]
|
143
147
|
},
|
144
148
|
"type": {
|
145
149
|
"type": "object",
|
150
|
+
"action_type": "action",
|
146
151
|
"title": "Type",
|
147
152
|
"description": "Types in specified text",
|
148
153
|
"properties": {
|
149
154
|
"action": {
|
150
155
|
"enum": ["type"]
|
151
156
|
},
|
152
|
-
"
|
153
|
-
"
|
154
|
-
"
|
157
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
158
|
+
"id": {"title": "Action ID", "type": "integer"},
|
159
|
+
"text": {"title": "Text", "type": "string"}
|
155
160
|
},
|
156
161
|
"additionalProperties": false,
|
157
162
|
"required": ["action", "text"]
|
158
163
|
},
|
159
164
|
"send_key": {
|
160
165
|
"type": "object",
|
166
|
+
"action_type": "action",
|
161
167
|
"title": "Press Key",
|
162
168
|
"description": "Press specified key or key combination.",
|
163
169
|
"properties": {
|
164
170
|
"action": {
|
165
171
|
"enum": ["send_key"]
|
166
172
|
},
|
167
|
-
"
|
173
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
174
|
+
"id": {"title": "Action ID", "type": "integer"},
|
168
175
|
"key": {"title": "Key", "type": "string"},
|
169
176
|
"modifier": {"title": "Modifier", "type": "string"}
|
170
177
|
},
|
@@ -173,33 +180,39 @@
|
|
173
180
|
},
|
174
181
|
"hover": {
|
175
182
|
"type": "object",
|
183
|
+
"action_type": "action",
|
176
184
|
"title": "Hover",
|
177
185
|
"description": "Hovers over specified element",
|
178
186
|
"properties": {
|
179
187
|
"action": {
|
180
188
|
"enum": ["hover"]
|
181
189
|
},
|
182
|
-
"
|
190
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
191
|
+
"id": {"title": "Action ID", "type": "integer"},
|
183
192
|
"target": {
|
184
193
|
"title": "Target",
|
185
|
-
"$ref": "#/definitions/noun"
|
194
|
+
"$ref": "#/definitions/noun",
|
195
|
+
"type": "ui_element_reference"
|
186
196
|
}
|
187
197
|
},
|
188
198
|
"additionalProperties": false,
|
189
199
|
"required": ["action", "target"]
|
190
200
|
},
|
191
|
-
"
|
201
|
+
"select": {
|
192
202
|
"type": "object",
|
193
|
-
"
|
203
|
+
"action_type": "action",
|
204
|
+
"title": "Select",
|
194
205
|
"description": "Selects specified item from the dropdown",
|
195
206
|
"properties": {
|
196
207
|
"action": {
|
197
|
-
"enum": ["
|
208
|
+
"enum": ["select"]
|
198
209
|
},
|
199
|
-
"
|
210
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
211
|
+
"id": {"title": "Action ID", "type": "integer"},
|
200
212
|
"target": {
|
201
213
|
"title": "Target",
|
202
|
-
"$ref": "#/definitions/noun"
|
214
|
+
"$ref": "#/definitions/noun",
|
215
|
+
"type": "ui_element_reference"
|
203
216
|
},
|
204
217
|
"option": {
|
205
218
|
"title": "Option",
|
@@ -209,135 +222,85 @@
|
|
209
222
|
"additionalProperties": false,
|
210
223
|
"required": ["action", "target", "option"]
|
211
224
|
},
|
212
|
-
"checkbox_check": {
|
213
|
-
"type": "object",
|
214
|
-
"title": "Checkbox Check",
|
215
|
-
"description": "Checks specified checkbox",
|
216
|
-
"properties": {
|
217
|
-
"action": {
|
218
|
-
"enum": ["checkbox_check"]
|
219
|
-
},
|
220
|
-
"custom_action_id": {"title": "Custom Action ID", "type": "integer"},
|
221
|
-
"target": {
|
222
|
-
"title": "Target",
|
223
|
-
"$ref": "#/definitions/noun"
|
224
|
-
}
|
225
|
-
},
|
226
|
-
"additionalProperties": false,
|
227
|
-
"required": ["action", "target"]
|
228
|
-
},
|
229
|
-
"checkbox_uncheck": {
|
230
|
-
"type": "object",
|
231
|
-
"title": "Checkbox Uncheck",
|
232
|
-
"description": "Unchecks specified checkbox",
|
233
|
-
"properties": {
|
234
|
-
"action": {
|
235
|
-
"enum": ["checkbox_uncheck"]
|
236
|
-
},
|
237
|
-
"custom_action_id": {"title": "Custom Action ID", "type": "integer"},
|
238
|
-
"target": {
|
239
|
-
"title": "Target",
|
240
|
-
"$ref": "#/definitions/noun"
|
241
|
-
}
|
242
|
-
},
|
243
|
-
"additionalProperties": false,
|
244
|
-
"required": ["action", "target"]
|
245
|
-
},
|
246
225
|
"refresh": {
|
247
226
|
"type": "object",
|
227
|
+
"action_type": "action",
|
248
228
|
"title": "Refresh",
|
249
229
|
"description": "Refreshes the webpage",
|
250
230
|
"properties": {
|
251
231
|
"action": {
|
252
232
|
"enum": ["refresh"]
|
253
233
|
},
|
254
|
-
"
|
234
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
235
|
+
"id": {"title": "Action ID", "type": "integer"}
|
255
236
|
},
|
256
237
|
"additionalProperties": false,
|
257
238
|
"required": ["action"]
|
258
239
|
},
|
259
240
|
"navigate": {
|
260
241
|
"type": "object",
|
242
|
+
"action_type": "action",
|
261
243
|
"title": "Navigate",
|
262
244
|
"description": "Navigates to specified URL",
|
263
245
|
"properties": {
|
264
246
|
"action": {
|
265
247
|
"enum": ["navigate"]
|
266
248
|
},
|
267
|
-
"
|
268
|
-
"
|
269
|
-
|
270
|
-
|
271
|
-
"required": ["action", "url"]
|
272
|
-
},
|
273
|
-
"navigate_new_tab": {
|
274
|
-
"type": "object",
|
275
|
-
"title": "Navigate - New Tab",
|
276
|
-
"description": "Navigates to specified URL in a new tab",
|
277
|
-
"properties": {
|
278
|
-
"action": {
|
279
|
-
"enum": ["navigate_new_tab"]
|
280
|
-
},
|
281
|
-
"custom_action_id": {"title": "Custom Action ID", "type": "integer"},
|
282
|
-
"url": {"title": "URL", "type": "string"}
|
283
|
-
},
|
284
|
-
"additionalProperties": false,
|
285
|
-
"required": ["action", "url"]
|
286
|
-
},
|
287
|
-
"navigate_incognito_tab": {
|
288
|
-
"type": "object",
|
289
|
-
"title": "Navigate - Incognito Tab",
|
290
|
-
"description": "Navigates to specified URL in a new incognito tab",
|
291
|
-
"properties": {
|
292
|
-
"action": {
|
293
|
-
"enum": ["navigate_incognito_tab"]
|
294
|
-
},
|
295
|
-
"custom_action_id": {"title": "Custom Action ID", "type": "integer"},
|
296
|
-
"url": {"title": "URL", "type": "string"}
|
249
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
250
|
+
"id": {"title": "Action ID", "type": "integer"},
|
251
|
+
"url": {"title": "URL", "type": "string"},
|
252
|
+
"tab": {"title": "Tab", "type": "string", "enum": ["current", "new", "incognito"]}
|
297
253
|
},
|
298
254
|
"additionalProperties": false,
|
299
|
-
"required": ["action", "url"]
|
255
|
+
"required": ["action", "url", "tab"]
|
300
256
|
},
|
301
257
|
"close_tab": {
|
302
258
|
"type": "object",
|
259
|
+
"action_type": "action",
|
303
260
|
"title": "Close Tab",
|
304
261
|
"description": "Closes current browser tab",
|
305
262
|
"properties": {
|
306
263
|
"action": {
|
307
264
|
"enum": ["close_tab"]
|
308
265
|
},
|
309
|
-
"
|
266
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
267
|
+
"id": {"title": "Action ID", "type": "integer"}
|
310
268
|
},
|
311
269
|
"additionalProperties": false,
|
312
270
|
"required": ["action"]
|
313
271
|
},
|
314
272
|
"scroll": {
|
315
273
|
"type": "object",
|
274
|
+
"action_type": "action",
|
316
275
|
"title": "Scroll",
|
317
276
|
"description": "Scrolls the page into specified direction until target is reached",
|
318
277
|
"properties": {
|
319
278
|
"action": {
|
320
279
|
"enum": ["scroll"]
|
321
280
|
},
|
322
|
-
"
|
281
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
282
|
+
"id": {"title": "Action ID", "type": "integer"},
|
323
283
|
"direction": {"title": "Direction", "type": "string", "enum": ["up", "down", "left", "right"]},
|
324
284
|
"target": {
|
325
285
|
"title": "Target",
|
326
|
-
"$ref": "#/definitions/noun"
|
286
|
+
"$ref": "#/definitions/noun",
|
287
|
+
"type": "ui_element_reference"
|
327
288
|
}
|
328
289
|
},
|
329
290
|
"additionalProperties": false,
|
330
291
|
"required": ["action", "direction", "target"]
|
331
292
|
},
|
332
|
-
"
|
293
|
+
"wait": {
|
333
294
|
"type": "object",
|
334
|
-
"
|
295
|
+
"action_type": "action",
|
296
|
+
"title": "Wait",
|
335
297
|
"description": "Waits for a number of seconds",
|
336
298
|
"properties": {
|
337
299
|
"action": {
|
338
|
-
"enum": ["
|
300
|
+
"enum": ["wait"]
|
339
301
|
},
|
340
|
-
"
|
302
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
303
|
+
"id": {"title": "Action ID", "type": "integer"},
|
341
304
|
"seconds": {"title": "seconds", "type": "integer"}
|
342
305
|
},
|
343
306
|
"additionalProperties": false,
|
@@ -345,50 +308,36 @@
|
|
345
308
|
},
|
346
309
|
"drag_and_drop": {
|
347
310
|
"type": "object",
|
311
|
+
"action_type": "action",
|
348
312
|
"title": "Drag and drop",
|
349
313
|
"description": "Drag and drop",
|
350
314
|
"properties": {
|
351
315
|
"action": {
|
352
316
|
"enum": ["drag_and_drop"]
|
353
317
|
},
|
354
|
-
"
|
318
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
319
|
+
"id": {"title": "Action ID", "type": "integer"},
|
355
320
|
"object": {
|
356
321
|
"title": "Object",
|
357
322
|
"$ref": "#/definitions/noun"
|
358
323
|
},
|
359
324
|
"target": {
|
360
325
|
"title": "Target",
|
361
|
-
"$ref": "#/definitions/noun"
|
326
|
+
"$ref": "#/definitions/noun",
|
327
|
+
"type": "ui_element_reference"
|
362
328
|
}
|
363
329
|
},
|
364
330
|
"additionalProperties": false,
|
365
331
|
"required": ["action", "target", "object"]
|
366
332
|
},
|
367
|
-
"
|
333
|
+
"embedded_test": {
|
368
334
|
"type": "object",
|
369
|
-
"
|
370
|
-
"
|
335
|
+
"action_type": "embedded_test",
|
336
|
+
"title": "Embedded Test",
|
337
|
+
"description": "Embeds a Test",
|
371
338
|
"properties": {
|
372
339
|
"action": {
|
373
|
-
"enum": ["
|
374
|
-
},
|
375
|
-
"custom_action_id": {"title": "Custom Action ID", "type": "integer"},
|
376
|
-
"target": {
|
377
|
-
"title": "Target",
|
378
|
-
"$ref": "#/definitions/noun"
|
379
|
-
},
|
380
|
-
"seconds": {"title": "Seconds", "type": "integer"}
|
381
|
-
},
|
382
|
-
"additionalProperties": false,
|
383
|
-
"required": ["action", "target", "seconds"]
|
384
|
-
},
|
385
|
-
"custom_action": {
|
386
|
-
"type": "object",
|
387
|
-
"title": "Custom Action",
|
388
|
-
"description": "Reusable custom action",
|
389
|
-
"properties": {
|
390
|
-
"action": {
|
391
|
-
"enum": ["custom_action"]
|
340
|
+
"enum": ["embedded_test"]
|
392
341
|
},
|
393
342
|
"test_id": {
|
394
343
|
"title": "Test ID",
|
@@ -398,81 +347,77 @@
|
|
398
347
|
"additionalProperties": false,
|
399
348
|
"required": ["action", "test_id"]
|
400
349
|
},
|
401
|
-
"
|
350
|
+
"tester_instruction": {
|
402
351
|
"type": "object",
|
403
|
-
"
|
404
|
-
"
|
352
|
+
"action_type": "action",
|
353
|
+
"title": "Tester Instruction",
|
354
|
+
"description": "An action for a human to complete",
|
405
355
|
"properties": {
|
406
356
|
"action": {
|
407
|
-
"enum": ["
|
357
|
+
"enum": ["tester_instruction"]
|
408
358
|
},
|
409
|
-
"
|
359
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
360
|
+
"id": {"title": "Action ID", "type": "integer"},
|
410
361
|
"instruction": {"title": "Instruction", "type": "string"}
|
411
362
|
},
|
412
363
|
"additionalProperties": false,
|
413
364
|
"required": ["action", "instruction"]
|
414
365
|
},
|
415
|
-
"
|
366
|
+
"observe": {
|
416
367
|
"type": "object",
|
417
|
-
"
|
418
|
-
"
|
368
|
+
"action_type": "assertion",
|
369
|
+
"title": "Observe",
|
370
|
+
"description": "Checks if element of the UI is visible or not",
|
419
371
|
"properties": {
|
420
|
-
"
|
421
|
-
"enum": ["
|
372
|
+
"action": {
|
373
|
+
"enum": ["observe"]
|
422
374
|
},
|
423
|
-
"
|
375
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
376
|
+
"id": {"title": "Action ID", "type": "integer"},
|
424
377
|
"object": {
|
425
378
|
"title": "Object",
|
426
379
|
"$ref": "#/definitions/noun"
|
427
|
-
}
|
428
|
-
},
|
429
|
-
"additionalProperties": false,
|
430
|
-
"required": ["assertion", "object"]
|
431
|
-
},
|
432
|
-
"disappear": {
|
433
|
-
"type": "object",
|
434
|
-
"title": "Disappear",
|
435
|
-
"description": "Checks if element of the UI is no longer visible",
|
436
|
-
"properties": {
|
437
|
-
"assertion": {
|
438
|
-
"enum": ["disappear"]
|
439
380
|
},
|
440
|
-
"
|
441
|
-
|
442
|
-
"
|
443
|
-
"
|
381
|
+
"visibility": {
|
382
|
+
"title": "Is the element visible?",
|
383
|
+
"type": "boolean",
|
384
|
+
"enum": [true, false]
|
444
385
|
}
|
445
386
|
},
|
446
387
|
"additionalProperties": false,
|
447
|
-
"required": ["
|
388
|
+
"required": ["action", "object", "visibility"]
|
448
389
|
},
|
449
390
|
"loaded": {
|
450
391
|
"type": "object",
|
392
|
+
"action_type": "assertion",
|
451
393
|
"title": "Loaded",
|
452
394
|
"description": "Checks if specified page has loaded",
|
453
395
|
"properties": {
|
454
|
-
"
|
396
|
+
"action": {
|
455
397
|
"enum": ["loaded"]
|
456
398
|
},
|
457
|
-
"
|
399
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
400
|
+
"id": {"title": "Action ID", "type": "integer"},
|
458
401
|
"page": {"title": "Page", "type": "string"}
|
459
402
|
},
|
460
403
|
"additionalProperties": false,
|
461
|
-
"required": ["
|
404
|
+
"required": ["action", "page"]
|
462
405
|
},
|
463
|
-
"
|
406
|
+
"tester_confirmation": {
|
464
407
|
"type": "object",
|
465
|
-
"
|
466
|
-
"
|
408
|
+
"action_type": "assertion",
|
409
|
+
"title": "Tester Confirmation",
|
410
|
+
"description": "Ask a question to confirm a behavior",
|
467
411
|
"properties": {
|
468
|
-
"
|
469
|
-
"enum": ["
|
412
|
+
"action": {
|
413
|
+
"enum": ["tester_confirmation"]
|
470
414
|
},
|
471
|
-
"
|
472
|
-
"
|
415
|
+
"embedded_test_id": {"title": "Embedded Test ID", "type": "integer"},
|
416
|
+
"id": {"title": "Action ID", "type": "integer"},
|
417
|
+
"confirmation": {"title": "confirmation", "type": "string"}
|
473
418
|
},
|
474
419
|
"additionalProperties": false,
|
475
|
-
"required": ["
|
420
|
+
"required": ["action", "confirmation"]
|
476
421
|
}
|
477
422
|
},
|
478
423
|
"type": "object",
|