-
Notifications
You must be signed in to change notification settings - Fork 1
/
snippets.json
242 lines (242 loc) · 6.61 KB
/
snippets.json
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
{
"Feature": {
"prefix": "Feature",
"body": ["Feature: ${1:脚本名称}", "", " "]
},
"Scenario": {
"prefix": "Scenario",
"body": ["Scenario: ${1:场景名称}", "", " "]
},
"Background": {
"prefix": "Background",
"body": ["Background: ${1:共性步骤名称}", "", " "]
},
"Scenario Outline": {
"prefix": "Scenario Outline",
"body": ["Scenario Outline: ${1:场景名称}", "", " "]
},
"Examples": {
"prefix": "Examples",
"body": [
"Examples:",
" | ${1:变量名1} | ${2:变量名2} | ${3:变量名3} |",
" | ${4:变量值1} | ${5:变量值2} | ${6:变量值3} |"
]
},
"check <元素>": {
"prefix": "* check \"<元素>\"",
"body": ["* check \"${1:元素}\""]
},
"tap <元素>": {
"prefix": "* tap \"<元素>\"",
"body": ["* tap \"${1:元素}\""]
},
"tap <x> <y>": {
"prefix": "* tap <x> <y>",
"body": ["* tap ${1:x} ${2:y}"]
},
"?tap <element>": {
"prefix": "* ?tap <element>",
"body": ["* ?tap ${1:元素}"]
},
"?tap <x> <y>": {
"prefix": "* ?tap <x> <y>",
"body": ["* ?tap ${1:x} ${2:y}"]
},
"wait <n>s": {
"prefix": "* wait <n>s",
"body": ["* wait ${1:n}s"]
},
"swipe <startX> <startY> <endX> <endY>": {
"prefix": "* swipe <startX> <startY> <endX> <endY>",
"body": ["* swipe ${1:startX} ${2:startY} ${3:endX} ${4:endY}"]
},
"swipe <元素> <x> <y>": {
"prefix": "* swipe \"<元素>\" <x> <y>",
"body": ["* swipe \"${1:元素}\" ${2:x} ${3:y}"]
},
"input <内容> <元素>": {
"prefix": "* input \"<内容>\" to \"<元素>\"",
"body": ["* input \"${1:内容}\" to \"${2:元素}\""]
},
"input <内容>": {
"prefix": "* input \"<内容>\"",
"body": ["* input \"${1:内容}\""]
},
"?input <内容> <元素>": {
"prefix": "* ?input \"<内容>\" to \"<元素>\"",
"body": ["* ?input \"${1:内容}\" to \"${2:元素}\""]
},
"?input <内容>": {
"prefix": "* ?input \"<内容>\"",
"body": ["* ?input \"${1:内容}\""]
},
"keyboard": {
"prefix": "* keyboard \"<按键>\"",
"body": ["* keyboard \"${1:按键}\""]
},
"?keyboard": {
"prefix": "* ?keyboard \"<按键>\"",
"body": ["* ?keyboard \"${1:按键}\""]
},
"key_down": {
"prefix": "* key down \"<按键>\"",
"body": ["* key down \"${1:按键}\""]
},
"key_up": {
"prefix": "* key up \"<按键>\"",
"body": ["* key up \"${1:按键}\""]
},
"upload": {
"prefix": "* upload \"<path>\"",
"body": ["* upload \"${1:path}\""]
},
"restart": {
"prefix": "* restart",
"body": ["* restart"]
},
"screenshot": {
"prefix": "* screenshot",
"body": ["* screenshot"]
},
"alert accept": {
"prefix": "* alert accept",
"body": ["* alert accept"]
},
"alert dismiss": {
"prefix": "* alert dismiss",
"body": ["* alert dismiss"]
},
"<key> = \"element://\"": {
"prefix": "* <key> = \"element\"",
"body": ["* ${1:变量名} = \"element//${2:元素名称}\""]
},
"open": {
"prefix": "* open \"<地址>\"",
"body": ["* open \"${1:地址}\""]
},
"macro": {
"prefix": "* macro <macro文件夹>",
"body": ["* macro macro"]
},
"mouse_down": {
"prefix": "* mouse down <x> <y>",
"body": ["* mouse down ${1:x} ${2:y}"]
},
"mouse_down_element": {
"prefix": "* mouse down <element>",
"body": ["* mouse down \"${1:element}\""]
},
"mouse_up": {
"prefix": "* mouse up <x> <y>",
"body": ["* mouse up ${1:x} ${2:y}"]
},
"mouse_move": {
"prefix": "* mouse move <x> <y>",
"body": ["* mouse move ${1:x} ${2:y}"]
},
"mouse_context": {
"prefix": "* mouse context <x> <y>",
"body": ["* mouse context ${1:x} ${2:y}"]
},
"mouse_wheel": {
"prefix": "* mouse wheel <x> <y> <deltaY>",
"body": ["* mouse wheel ${1:x} ${2:y} ${3:deltaY}"]
},
"* macro <path>": {
"prefix": "* macro <path>",
"body": ["* macro ${1:path}"]
},
"assert_checked": {
"prefix": "* assert_checked \"<元素>\"",
"body": ["* assert_checked \"${1:元素}\""]
},
"assert_not_checked": {
"prefix": "* assert_not_checked \"<元素>\"",
"body": ["* assert_not_checked \"${1:元素}\""]
},
"assert_toast": {
"prefix": "* assert_toast \"<元素>\"",
"body": ["* assert_toast \"${1:元素}\""]
},
"assert_exists": {
"prefix": "* assert_exists \"<any>\"",
"body": ["* assert_exists \"${1:元素}\""]
},
"assert_exists_image": {
"prefix": "* assert_exists 图片",
"body": ["* assert_exists \"image://${1:图片路径}\""]
},
"assert_exists_element": {
"prefix": "* assert_exists 元素",
"body": ["* assert_exists \"element://${1:元素}\""]
},
"?assert_exists": {
"prefix": "* ?assert_exists \"<元素>\"",
"body": ["* ?assert_exists \"${1:元素}\""]
},
"assert_not_exists": {
"prefix": "* assert_not_exists \"<元素>\"",
"body": ["* assert_not_exists \"${1:元素}\""]
},
"assert_screen_equal": {
"prefix": "* assert_screen_equal",
"body": ["* assert_screen_equal \"image://${1:元素}\""]
},
"assert_text_equal": {
"prefix": "* assert_text_equal \"<文本1>\" \"<文本2>\"",
"body": ["* assert_text_equal \"${1:文本1}\" \"${1:文本2}\""]
},
"assert_title_exists": {
"prefix": "* assert_title_exists \"<元素>\"",
"body": ["* assert_title_exists \"${1:元素}\""]
},
"execute_script": {
"prefix": "* execute_script",
"body": ["* execute_script\n\"\"\"\n${1:脚本片段}\n\"\"\""]
},
"execute_script_arguments": {
"prefix": "* execute_script ${参数1} ${参数2} ${参数3}",
"body": ["* execute_script ${1} ${2} ${3}\n\"\"\"\n${1:脚本片段}\n\"\"\""]
},
"do_get": {
"prefix": "* do_get \"<url>\"",
"body": ["* do_get \"${1:url}\""]
},
"do_post": {
"prefix": "* do_post \"<url>\"",
"body": ["* do_post \"${1:url}\""]
},
"do_put": {
"prefix": "* do_put \"<url>\"",
"body": ["* do_put \"${1:url}\""]
},
"do_delete": {
"prefix": "* do_delete \"<url>\"",
"body": ["* do_delete \"${1:url}\""]
},
"hover": {
"prefix": "* hover \"<元素>\"",
"body": ["* hover \"${1:元素}\""]
},
"hover_x_y": {
"prefix": "* hover \"<x>\" \"<y>\"",
"body": ["* hover \"${1:x}\" \"${2:y}\""]
},
"window (maximize|fullscreen|close)": {
"prefix": "* window <maximize|fullscreen|close>",
"body": ["* window ${1:maximize|fullscreen|close}"]
},
"scroll <x> <y>": {
"prefix": "* scroll <x> <y>",
"body": ["* scroll ${1:x} ${2:y}"]
},
"scroll_to": {
"prefix": "* scroll_to \"<元素>\"",
"body": ["* scroll_to \"${1:元素}\""]
},
"debugger": {
"prefix": "debugger",
"body": ["debugger"]
}
}