artes 1.2.15 → 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +629 -533
- package/cucumber.config.js +171 -171
- package/docs/functionDefinitions.md +2401 -2401
- package/docs/stepDefinitions.md +391 -352
- package/executer.js +161 -161
- package/index.js +48 -48
- package/package.json +51 -54
- package/src/helper/contextManager/browserManager.js +63 -63
- package/src/helper/contextManager/requestManager.js +23 -23
- package/src/helper/controller/elementController.js +182 -182
- package/src/helper/controller/pomCollector.js +25 -25
- package/src/helper/executers/cleaner.js +19 -19
- package/src/helper/executers/exporter.js +15 -15
- package/src/helper/executers/helper.js +95 -95
- package/src/helper/executers/projectCreator.js +198 -198
- package/src/helper/executers/reportGenerator.js +58 -58
- package/src/helper/executers/testRunner.js +30 -30
- package/src/helper/executers/versionChecker.js +31 -31
- package/src/helper/imports/commons.js +56 -56
- package/src/helper/stepFunctions/APIActions.js +362 -362
- package/src/helper/stepFunctions/assertions.js +523 -523
- package/src/helper/stepFunctions/browserActions.js +22 -22
- package/src/helper/stepFunctions/elementInteractions.js +38 -38
- package/src/helper/stepFunctions/exporter.js +19 -19
- package/src/helper/stepFunctions/frameActions.js +50 -50
- package/src/helper/stepFunctions/keyboardActions.js +41 -41
- package/src/helper/stepFunctions/mouseActions.js +145 -145
- package/src/helper/stepFunctions/pageActions.js +27 -27
- package/src/hooks/context.js +15 -15
- package/src/hooks/hooks.js +257 -257
- package/src/stepDefinitions/API.steps.js +299 -299
- package/src/stepDefinitions/assertions.steps.js +861 -861
- package/src/stepDefinitions/browser.steps.js +7 -7
- package/src/stepDefinitions/frameActions.steps.js +76 -76
- package/src/stepDefinitions/keyboardActions.steps.js +226 -226
- package/src/stepDefinitions/mouseActions.steps.js +275 -275
- package/src/stepDefinitions/page.steps.js +71 -71
- package/src/stepDefinitions/random.steps.js +158 -158
package/docs/stepDefinitions.md
CHANGED
|
@@ -1,352 +1,391 @@
|
|
|
1
|
-
# Step Definitions
|
|
2
|
-
|
|
3
|
-
## Table of Contents
|
|
4
|
-
|
|
5
|
-
- [Mouse Actions](#mouse-actions)
|
|
6
|
-
- [Keyboard Actions](#keyboard-actions)
|
|
7
|
-
- [Page Actions](#page-actions)
|
|
8
|
-
- [Frame Actions](#frame-actions)
|
|
9
|
-
- [API Actions](#api-actions)
|
|
10
|
-
- [Variable Management](#variable-management)
|
|
11
|
-
- [Debugging / Console Output](#debugging--console-output)
|
|
12
|
-
- [Generic HTTP Request](#generic-http-request)
|
|
13
|
-
- [Assertions](#assertions)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Mouse Actions
|
|
18
|
-
|
|
19
|
-
## Click Actions
|
|
20
|
-
|
|
21
|
-
- User clicks `{string}`
|
|
22
|
-
- User clicks `{string}` with force
|
|
23
|
-
- User clicks `{string}` at `{int}, {int}` position
|
|
24
|
-
- User clicks `{string}` at `{int}, {int}` position with force
|
|
25
|
-
- User clicks at `{int}, {int}` coordinates
|
|
26
|
-
- User clicks at `{int}, {int}` coordinates with click count `{int}` and delay `{int}`
|
|
27
|
-
- User clicks at `{int}, {int}` coordinates with force
|
|
28
|
-
- User clicks `{string}` with button `{string}`
|
|
29
|
-
- User clicks `{string}` with button `{string}` and force
|
|
30
|
-
|
|
31
|
-
## Double Click Actions
|
|
32
|
-
|
|
33
|
-
- User double clicks `{string}`
|
|
34
|
-
- User double clicks `{string}` with force
|
|
35
|
-
- User double clicks `{string}` at `{int}, {int}` position
|
|
36
|
-
- User double clicks `{string}` at `{int}, {int}` position with force
|
|
37
|
-
- User double clicks at `{int}, {int}` coordinates
|
|
38
|
-
- User double clicks at `{int}, {int}` coordinates with click count `{int}` and delay `{int}`
|
|
39
|
-
- User double clicks at `{int}, {int}` coordinates with force
|
|
40
|
-
|
|
41
|
-
## Mouse Movement Actions
|
|
42
|
-
|
|
43
|
-
- User moves to `{int}, {int}` coordinates
|
|
44
|
-
- User scrolls the mouse wheel at `{int}, {int}` coordinates
|
|
45
|
-
|
|
46
|
-
## Hover Actions
|
|
47
|
-
|
|
48
|
-
- User hovers over `{string}`
|
|
49
|
-
- User hovers over `{string}` with force
|
|
50
|
-
- User hovers over `{string}` at `{int}, {int}` position
|
|
51
|
-
- User hovers over `{string}` at `{int}, {int}` position with force
|
|
52
|
-
|
|
53
|
-
## Focus Actions
|
|
54
|
-
|
|
55
|
-
- User focuses on `{string}`
|
|
56
|
-
- User focuses on `{string}` with force
|
|
57
|
-
- User focuses on `{string}` at `{int}, {int}` position
|
|
58
|
-
- User focuses on `{string}` at `{int}, {int}` position with force
|
|
59
|
-
|
|
60
|
-
## Drag Actions
|
|
61
|
-
|
|
62
|
-
- User drags `{string}` to `{string}`
|
|
63
|
-
- User drags `{string}` to `{int}, {int}` position
|
|
64
|
-
|
|
65
|
-
## Selection Actions
|
|
66
|
-
|
|
67
|
-
- User selects by value `{string}` from `{string}`
|
|
68
|
-
- User selects by text `{string}` from `{string}`
|
|
69
|
-
|
|
70
|
-
## Checkbox Actions
|
|
71
|
-
|
|
72
|
-
- User checks `{string}`
|
|
73
|
-
- User unchecks `{string}`
|
|
74
|
-
|
|
75
|
-
## Scroll Actions
|
|
76
|
-
|
|
77
|
-
- User scrolls into view for `{string}`
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
# Keyboard Actions
|
|
82
|
-
|
|
83
|
-
## Press Actions
|
|
84
|
-
|
|
85
|
-
- User presses `{string}` on `{string}`
|
|
86
|
-
- User presses keys `{string}` sequentially on `{string}`
|
|
87
|
-
- User presses keys `{string}` sequentially with delay `{int}` on `{string}`
|
|
88
|
-
|
|
89
|
-
## Input Actions
|
|
90
|
-
|
|
91
|
-
- User types `{string}` in `{string}`
|
|
92
|
-
- User types `{string}` with delay `{int}`
|
|
93
|
-
- User inserts text `{string}`
|
|
94
|
-
- User clears `{string}`
|
|
95
|
-
|
|
96
|
-
## Selection Actions
|
|
97
|
-
|
|
98
|
-
- User selects text in `{string}`
|
|
99
|
-
|
|
100
|
-
## File Input Actions
|
|
101
|
-
|
|
102
|
-
- User sets input files `{string}` for `{string}`
|
|
103
|
-
|
|
104
|
-
## Key State Actions
|
|
105
|
-
|
|
106
|
-
- User holds down `{string}`
|
|
107
|
-
- User releases `{string}`
|
|
108
|
-
- User presses `{string}`
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
# Page Actions
|
|
113
|
-
|
|
114
|
-
## Navigation Actions
|
|
115
|
-
|
|
116
|
-
- User navigates to `{string}` page
|
|
117
|
-
- User navigates previous page
|
|
118
|
-
- User navigates next page
|
|
119
|
-
|
|
120
|
-
## URL Actions
|
|
121
|
-
|
|
122
|
-
- User gets URL of page
|
|
123
|
-
|
|
124
|
-
## Wait Actions
|
|
125
|
-
|
|
126
|
-
- User waits `{int}` seconds
|
|
127
|
-
- User waits `{int}` milliseconds
|
|
128
|
-
- User waits `{int}` minutes
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
# Frame Actions
|
|
133
|
-
|
|
134
|
-
## Screenshot Actions
|
|
135
|
-
|
|
136
|
-
- User takes a screenshot of `{string}`
|
|
137
|
-
|
|
138
|
-
## Content and Locator Actions
|
|
139
|
-
|
|
140
|
-
- User gets the content frame of `{string}`
|
|
141
|
-
- User gets the frame locator of `{string}`
|
|
142
|
-
|
|
143
|
-
## Element Retrieval Actions
|
|
144
|
-
|
|
145
|
-
- User gets the `{int} th` element of `{string}`
|
|
146
|
-
- User gets the first element of `{string}`
|
|
147
|
-
- User gets the last element of `{string}`
|
|
148
|
-
- User filters elements of `{string}` with filter `{string}`
|
|
149
|
-
|
|
150
|
-
## Counting Actions
|
|
151
|
-
|
|
152
|
-
- User counts the elements of `{string}`
|
|
153
|
-
|
|
154
|
-
## Accessibility-Based Retrieval Actions
|
|
155
|
-
|
|
156
|
-
- User gets the element with alt text `{string}`
|
|
157
|
-
- User gets the element with label `{string}`
|
|
158
|
-
- User gets the element with placeholder `{string}`
|
|
159
|
-
- User gets the element with role `{string}`
|
|
160
|
-
- User gets the element with testId `{string}`
|
|
161
|
-
- User gets the element with testId `{string}` (assuming you meant testId twice)
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
# API Actions
|
|
166
|
-
|
|
167
|
-
## GET Requests
|
|
168
|
-
|
|
169
|
-
- User sends GET request to `{string}`
|
|
170
|
-
- User sends GET request to `{string}` with payload:
|
|
171
|
-
- User sends GET request to `{string}` and saves `{string}` variables
|
|
172
|
-
- User sends GET request to `{string}` with payload and saves `{string}` variables
|
|
173
|
-
|
|
174
|
-
## HEAD Requests
|
|
175
|
-
|
|
176
|
-
- User sends HEAD request to `{string}`
|
|
177
|
-
|
|
178
|
-
## POST Requests
|
|
179
|
-
|
|
180
|
-
- User sends POST request to `{string}` with payload:
|
|
181
|
-
- User sends POST request to `{string}` with payload and saves `{string}` variables
|
|
182
|
-
- User sends multipart POST request to `{string}` with payload:
|
|
183
|
-
- User sends multipart POST request to `{string}` with payload and `{string}` variables
|
|
184
|
-
|
|
185
|
-
## PUT Requests
|
|
186
|
-
|
|
187
|
-
- User sends PUT request to `{string}` with payload:
|
|
188
|
-
- User sends PUT request to `{string}` with payload and saves `{string}` variables
|
|
189
|
-
- User sends multipart PUT request to `{string}` with payload:
|
|
190
|
-
- User sends multipart PUT request to `{string}` with payload and saves `{string}` variables
|
|
191
|
-
|
|
192
|
-
## PATCH Requests
|
|
193
|
-
|
|
194
|
-
- User sends PATCH request to `{string}` with payload:
|
|
195
|
-
- User sends PATCH request to `{string}` with payload and saves `{string}` variables
|
|
196
|
-
- User sends multipart PATCH request to `{string}` with payload:
|
|
197
|
-
- User sends multipart PATCH request to `{string}` with payload and saves `{string}` variables
|
|
198
|
-
|
|
199
|
-
## DELETE Requests
|
|
200
|
-
|
|
201
|
-
- User sends DELETE request to `{string}`
|
|
202
|
-
- User sends DELETE request to `{string}` and saves `{string}` variables
|
|
203
|
-
- User sends DELETE request to `{string}` with payload:
|
|
204
|
-
- User sends DELETE request to `{string}` with payload and saves `{string}` variables
|
|
205
|
-
|
|
206
|
-
---
|
|
207
|
-
|
|
208
|
-
# Variable Management
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- User saves `{string}` variable as `{string}`
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
- User
|
|
218
|
-
- User
|
|
219
|
-
- User
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
- User
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
- User sets random
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
- User
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
- User
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
- User
|
|
249
|
-
- User
|
|
250
|
-
- User
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
- User
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
- User
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
- User
|
|
262
|
-
- User
|
|
263
|
-
- User
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
- User
|
|
271
|
-
- User
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
- User
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
- User expects
|
|
282
|
-
- User expects `{string}` should
|
|
283
|
-
- User expects `{string}` should
|
|
284
|
-
- User expects `{string}` should
|
|
285
|
-
- User expects `{string}` should
|
|
286
|
-
- User expects `{string}` should
|
|
287
|
-
- User expects `{string}` should
|
|
288
|
-
- User expects `{string}` should
|
|
289
|
-
- User expects
|
|
290
|
-
- User expects
|
|
291
|
-
- User expects
|
|
292
|
-
- User
|
|
293
|
-
-
|
|
294
|
-
- User expects `{string}` should
|
|
295
|
-
- User expects `{string}` should
|
|
296
|
-
- User expects `{string}` should
|
|
297
|
-
- User expects `{string}` should
|
|
298
|
-
- User expects `{string}` should
|
|
299
|
-
- User expects `{string}` should
|
|
300
|
-
- User expects `{string}` should
|
|
301
|
-
- User expects `{string}` should
|
|
302
|
-
- User expects `{string}` should
|
|
303
|
-
- User expects `{string}` should
|
|
304
|
-
- User expects `{string}` should
|
|
305
|
-
- User expects `{string}` should be
|
|
306
|
-
- User expects `{string}` should be
|
|
307
|
-
- User expects `{string}` should
|
|
308
|
-
- User expects `{string}` should
|
|
309
|
-
- User expects `{string}` should
|
|
310
|
-
- User expects
|
|
311
|
-
- User expects `{string}` should
|
|
312
|
-
- User expects `{string}` should
|
|
313
|
-
- User expects `{string}` should
|
|
314
|
-
- User expects `{string}` should
|
|
315
|
-
-
|
|
316
|
-
- User expects `{string}` should
|
|
317
|
-
- User expects `{string}`
|
|
318
|
-
- User expects `{string}` should
|
|
319
|
-
- User expects `{string}` should
|
|
320
|
-
- User expects `{string}` should
|
|
321
|
-
- User expects `{string}` should have `{string}`
|
|
322
|
-
- User expects `{string}` should
|
|
323
|
-
- User expects `{string}` should not have `{string}`
|
|
324
|
-
- User expects `{string}` should not
|
|
325
|
-
- User expects `{string}` should not
|
|
326
|
-
- User expects `{string}` should not
|
|
327
|
-
- User expects `{string}` should not
|
|
328
|
-
- User expects
|
|
329
|
-
- User expects
|
|
330
|
-
- User expects
|
|
331
|
-
- User
|
|
332
|
-
-
|
|
333
|
-
- User expects `{string}` should
|
|
334
|
-
- User expects `{string}` should
|
|
335
|
-
- User expects `{string}` should
|
|
336
|
-
- User expects `{string}` should
|
|
337
|
-
- User expects `{string}` should
|
|
338
|
-
- User expects `{string}` should
|
|
339
|
-
- User expects
|
|
340
|
-
- User expects `{string}` should
|
|
341
|
-
- User expects `{string}` should
|
|
342
|
-
- User expects `{string}` should
|
|
343
|
-
-
|
|
344
|
-
- User expects `{string}` should
|
|
345
|
-
- User expects `{string}`
|
|
346
|
-
- User expects `{string}` should
|
|
347
|
-
- User expects `{string}` should
|
|
348
|
-
- User expects `{string}` should
|
|
349
|
-
- User expects `{string}` should
|
|
350
|
-
- User expects `{string}` should
|
|
351
|
-
- User expects
|
|
352
|
-
- User expects
|
|
1
|
+
# Step Definitions
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
|
|
5
|
+
- [Mouse Actions](#mouse-actions)
|
|
6
|
+
- [Keyboard Actions](#keyboard-actions)
|
|
7
|
+
- [Page Actions](#page-actions)
|
|
8
|
+
- [Frame Actions](#frame-actions)
|
|
9
|
+
- [API Actions](#api-actions)
|
|
10
|
+
- [Variable Management](#variable-management)
|
|
11
|
+
- [Debugging / Console Output](#debugging--console-output)
|
|
12
|
+
- [Generic HTTP Request](#generic-http-request)
|
|
13
|
+
- [Assertions](#assertions)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Mouse Actions
|
|
18
|
+
|
|
19
|
+
## Click Actions
|
|
20
|
+
|
|
21
|
+
- User clicks `{string}`
|
|
22
|
+
- User clicks `{string}` with force
|
|
23
|
+
- User clicks `{string}` at `{int}, {int}` position
|
|
24
|
+
- User clicks `{string}` at `{int}, {int}` position with force
|
|
25
|
+
- User clicks at `{int}, {int}` coordinates
|
|
26
|
+
- User clicks at `{int}, {int}` coordinates with click count `{int}` and delay `{int}`
|
|
27
|
+
- User clicks at `{int}, {int}` coordinates with force
|
|
28
|
+
- User clicks `{string}` with button `{string}`
|
|
29
|
+
- User clicks `{string}` with button `{string}` and force
|
|
30
|
+
|
|
31
|
+
## Double Click Actions
|
|
32
|
+
|
|
33
|
+
- User double clicks `{string}`
|
|
34
|
+
- User double clicks `{string}` with force
|
|
35
|
+
- User double clicks `{string}` at `{int}, {int}` position
|
|
36
|
+
- User double clicks `{string}` at `{int}, {int}` position with force
|
|
37
|
+
- User double clicks at `{int}, {int}` coordinates
|
|
38
|
+
- User double clicks at `{int}, {int}` coordinates with click count `{int}` and delay `{int}`
|
|
39
|
+
- User double clicks at `{int}, {int}` coordinates with force
|
|
40
|
+
|
|
41
|
+
## Mouse Movement Actions
|
|
42
|
+
|
|
43
|
+
- User moves to `{int}, {int}` coordinates
|
|
44
|
+
- User scrolls the mouse wheel at `{int}, {int}` coordinates
|
|
45
|
+
|
|
46
|
+
## Hover Actions
|
|
47
|
+
|
|
48
|
+
- User hovers over `{string}`
|
|
49
|
+
- User hovers over `{string}` with force
|
|
50
|
+
- User hovers over `{string}` at `{int}, {int}` position
|
|
51
|
+
- User hovers over `{string}` at `{int}, {int}` position with force
|
|
52
|
+
|
|
53
|
+
## Focus Actions
|
|
54
|
+
|
|
55
|
+
- User focuses on `{string}`
|
|
56
|
+
- User focuses on `{string}` with force
|
|
57
|
+
- User focuses on `{string}` at `{int}, {int}` position
|
|
58
|
+
- User focuses on `{string}` at `{int}, {int}` position with force
|
|
59
|
+
|
|
60
|
+
## Drag Actions
|
|
61
|
+
|
|
62
|
+
- User drags `{string}` to `{string}`
|
|
63
|
+
- User drags `{string}` to `{int}, {int}` position
|
|
64
|
+
|
|
65
|
+
## Selection Actions
|
|
66
|
+
|
|
67
|
+
- User selects by value `{string}` from `{string}`
|
|
68
|
+
- User selects by text `{string}` from `{string}`
|
|
69
|
+
|
|
70
|
+
## Checkbox Actions
|
|
71
|
+
|
|
72
|
+
- User checks `{string}`
|
|
73
|
+
- User unchecks `{string}`
|
|
74
|
+
|
|
75
|
+
## Scroll Actions
|
|
76
|
+
|
|
77
|
+
- User scrolls into view for `{string}`
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
# Keyboard Actions
|
|
82
|
+
|
|
83
|
+
## Press Actions
|
|
84
|
+
|
|
85
|
+
- User presses `{string}` on `{string}`
|
|
86
|
+
- User presses keys `{string}` sequentially on `{string}`
|
|
87
|
+
- User presses keys `{string}` sequentially with delay `{int}` on `{string}`
|
|
88
|
+
|
|
89
|
+
## Input Actions
|
|
90
|
+
|
|
91
|
+
- User types `{string}` in `{string}`
|
|
92
|
+
- User types `{string}` with delay `{int}`
|
|
93
|
+
- User inserts text `{string}`
|
|
94
|
+
- User clears `{string}`
|
|
95
|
+
|
|
96
|
+
## Selection Actions
|
|
97
|
+
|
|
98
|
+
- User selects text in `{string}`
|
|
99
|
+
|
|
100
|
+
## File Input Actions
|
|
101
|
+
|
|
102
|
+
- User sets input files `{string}` for `{string}`
|
|
103
|
+
|
|
104
|
+
## Key State Actions
|
|
105
|
+
|
|
106
|
+
- User holds down `{string}`
|
|
107
|
+
- User releases `{string}`
|
|
108
|
+
- User presses `{string}`
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
# Page Actions
|
|
113
|
+
|
|
114
|
+
## Navigation Actions
|
|
115
|
+
|
|
116
|
+
- User navigates to `{string}` page
|
|
117
|
+
- User navigates previous page
|
|
118
|
+
- User navigates next page
|
|
119
|
+
|
|
120
|
+
## URL Actions
|
|
121
|
+
|
|
122
|
+
- User gets URL of page
|
|
123
|
+
|
|
124
|
+
## Wait Actions
|
|
125
|
+
|
|
126
|
+
- User waits `{int}` seconds
|
|
127
|
+
- User waits `{int}` milliseconds
|
|
128
|
+
- User waits `{int}` minutes
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
# Frame Actions
|
|
133
|
+
|
|
134
|
+
## Screenshot Actions
|
|
135
|
+
|
|
136
|
+
- User takes a screenshot of `{string}`
|
|
137
|
+
|
|
138
|
+
## Content and Locator Actions
|
|
139
|
+
|
|
140
|
+
- User gets the content frame of `{string}`
|
|
141
|
+
- User gets the frame locator of `{string}`
|
|
142
|
+
|
|
143
|
+
## Element Retrieval Actions
|
|
144
|
+
|
|
145
|
+
- User gets the `{int} th` element of `{string}`
|
|
146
|
+
- User gets the first element of `{string}`
|
|
147
|
+
- User gets the last element of `{string}`
|
|
148
|
+
- User filters elements of `{string}` with filter `{string}`
|
|
149
|
+
|
|
150
|
+
## Counting Actions
|
|
151
|
+
|
|
152
|
+
- User counts the elements of `{string}`
|
|
153
|
+
|
|
154
|
+
## Accessibility-Based Retrieval Actions
|
|
155
|
+
|
|
156
|
+
- User gets the element with alt text `{string}`
|
|
157
|
+
- User gets the element with label `{string}`
|
|
158
|
+
- User gets the element with placeholder `{string}`
|
|
159
|
+
- User gets the element with role `{string}`
|
|
160
|
+
- User gets the element with testId `{string}`
|
|
161
|
+
- User gets the element with testId `{string}` (assuming you meant testId twice)
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
# API Actions
|
|
166
|
+
|
|
167
|
+
## GET Requests
|
|
168
|
+
|
|
169
|
+
- User sends GET request to `{string}`
|
|
170
|
+
- User sends GET request to `{string}` with payload:
|
|
171
|
+
- User sends GET request to `{string}` and saves `{string}` variables
|
|
172
|
+
- User sends GET request to `{string}` with payload and saves `{string}` variables
|
|
173
|
+
|
|
174
|
+
## HEAD Requests
|
|
175
|
+
|
|
176
|
+
- User sends HEAD request to `{string}`
|
|
177
|
+
|
|
178
|
+
## POST Requests
|
|
179
|
+
|
|
180
|
+
- User sends POST request to `{string}` with payload:
|
|
181
|
+
- User sends POST request to `{string}` with payload and saves `{string}` variables
|
|
182
|
+
- User sends multipart POST request to `{string}` with payload:
|
|
183
|
+
- User sends multipart POST request to `{string}` with payload and `{string}` variables
|
|
184
|
+
|
|
185
|
+
## PUT Requests
|
|
186
|
+
|
|
187
|
+
- User sends PUT request to `{string}` with payload:
|
|
188
|
+
- User sends PUT request to `{string}` with payload and saves `{string}` variables
|
|
189
|
+
- User sends multipart PUT request to `{string}` with payload:
|
|
190
|
+
- User sends multipart PUT request to `{string}` with payload and saves `{string}` variables
|
|
191
|
+
|
|
192
|
+
## PATCH Requests
|
|
193
|
+
|
|
194
|
+
- User sends PATCH request to `{string}` with payload:
|
|
195
|
+
- User sends PATCH request to `{string}` with payload and saves `{string}` variables
|
|
196
|
+
- User sends multipart PATCH request to `{string}` with payload:
|
|
197
|
+
- User sends multipart PATCH request to `{string}` with payload and saves `{string}` variables
|
|
198
|
+
|
|
199
|
+
## DELETE Requests
|
|
200
|
+
|
|
201
|
+
- User sends DELETE request to `{string}`
|
|
202
|
+
- User sends DELETE request to `{string}` and saves `{string}` variables
|
|
203
|
+
- User sends DELETE request to `{string}` with payload:
|
|
204
|
+
- User sends DELETE request to `{string}` with payload and saves `{string}` variables
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
# Variable Management
|
|
209
|
+
|
|
210
|
+
## Manual Variable Assignment
|
|
211
|
+
- User saves `{string}` variable from response as `{string}`
|
|
212
|
+
- User saves `{string}` variable as `{string}`
|
|
213
|
+
|
|
214
|
+
## Random Variable Management
|
|
215
|
+
|
|
216
|
+
### Random Words
|
|
217
|
+
- User sets random word as `{string}`
|
|
218
|
+
- User sets random word that has `{int}` character as `{string}`
|
|
219
|
+
- User sets random word that has character between `{int}` and `{int}` as `{string}`
|
|
220
|
+
- User sets random words as `{string}`
|
|
221
|
+
- User sets random `{int}` words as `{string}`
|
|
222
|
+
- User sets random words that range between `{int}` and `{int}` as `{string}`
|
|
223
|
+
|
|
224
|
+
### Random Numbers
|
|
225
|
+
- User sets random number as `{string}`
|
|
226
|
+
- User sets random number from `{int}` to `{int}` as `{string}`
|
|
227
|
+
|
|
228
|
+
### Random Text Content
|
|
229
|
+
- User sets random paragraph as `{string}`
|
|
230
|
+
- User sets random paragraph that range between `{int}` and `{int}` as `{string}`
|
|
231
|
+
- User sets random sentences that has `{int}` paragraph as `{string}`
|
|
232
|
+
|
|
233
|
+
### Random Characters & Alphanumeric
|
|
234
|
+
- User sets random characters from `{string}` as `{string}`
|
|
235
|
+
- User sets random alphanumeric in range from `{int}` to `{int}` as `{string}`
|
|
236
|
+
|
|
237
|
+
### Random Personal Information
|
|
238
|
+
- User sets random email as `{string}`
|
|
239
|
+
- User sets random fullname as `{string}`
|
|
240
|
+
- User sets random first name as `{string}`
|
|
241
|
+
- User sets random last name as `{string}`
|
|
242
|
+
- User sets random middle name as `{string}`
|
|
243
|
+
|
|
244
|
+
### Random Internet Data
|
|
245
|
+
- User sets random url as `{string}`
|
|
246
|
+
|
|
247
|
+
### Random Dates
|
|
248
|
+
- User sets random date between `{int}` and `{int}` as `{string}`
|
|
249
|
+
- User sets date `{int}` days after today as `{string}`
|
|
250
|
+
- User sets date `{int}` days before today as `{string}`
|
|
251
|
+
|
|
252
|
+
### Random from API Response
|
|
253
|
+
- User sends GET request to `{string}` and save `{string}` variable from `{string}` array as `{string}` randomly
|
|
254
|
+
|
|
255
|
+
### Random from Array
|
|
256
|
+
- User sets random value from given `{string}` array as `{string}`
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
# Debugging / Console Output
|
|
260
|
+
|
|
261
|
+
- User wants to see saved variables
|
|
262
|
+
- User wants to see request body
|
|
263
|
+
- User wants to see response body
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
# Random Data Generation
|
|
269
|
+
|
|
270
|
+
- User sets random words as `{string}` variable
|
|
271
|
+
- User sets random number from `{int}` to `{int}` as `{string}` variable
|
|
272
|
+
|
|
273
|
+
# API Data Extraction
|
|
274
|
+
|
|
275
|
+
- User sends GET request to `{string}` and save `{string}` variable as a `{string}` randomly
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Assertions
|
|
280
|
+
|
|
281
|
+
- User expects `{string}` should be attached
|
|
282
|
+
- User expects `{string}` should be checked
|
|
283
|
+
- User expects `{string}` should be disabled
|
|
284
|
+
- User expects `{string}` should be editable
|
|
285
|
+
- User expects `{string}` should be empty
|
|
286
|
+
- User expects `{string}` should be enabled
|
|
287
|
+
- User expects `{string}` should be focused
|
|
288
|
+
- User expects `{string}` should be hidden
|
|
289
|
+
- User expects `{string}` should be on the screen
|
|
290
|
+
- User expects `{string}` should be visible
|
|
291
|
+
- User expects `{string}` should have `{string}` text
|
|
292
|
+
- User expects `{string}` should have `{string}` description
|
|
293
|
+
- User expects `{string}` should have `{string}` name
|
|
294
|
+
- User expects `{string}` should have `{string}` attribute with `{string}` value
|
|
295
|
+
- User expects `{string}` should have `{string}` class
|
|
296
|
+
- User expects `{string}` should have `{int}` count
|
|
297
|
+
- User expects `{string}` should have `{string}` CSS property with `{string}` value
|
|
298
|
+
- User expects `{string}` should have `{string}` id
|
|
299
|
+
- User expects `{string}` should have `{string}` JavaScript property with `{string}` value
|
|
300
|
+
- User expects `{string}` should have `{string}` role
|
|
301
|
+
- User expects `{string}` should have a screenshot
|
|
302
|
+
- User expects `{string}` should match `{string}` text
|
|
303
|
+
- User expects `{string}` should have `{string}` value
|
|
304
|
+
- User expects `{string}` should have `{string}` values
|
|
305
|
+
- User expects `{string}` should not be attached
|
|
306
|
+
- User expects `{string}` should not be checked
|
|
307
|
+
- User expects `{string}` should not be disabled
|
|
308
|
+
- User expects `{string}` should not be editable
|
|
309
|
+
- User expects `{string}` should not be empty
|
|
310
|
+
- User expects `{string}` should not be enabled
|
|
311
|
+
- User expects `{string}` should not be focused
|
|
312
|
+
- User expects `{string}` should not be hidden
|
|
313
|
+
- User expects `{string}` should not be on screen
|
|
314
|
+
- User expects `{string}` should not be visible
|
|
315
|
+
- User expects `{string}` should not have `{string}` text
|
|
316
|
+
- User expects `{string}` should not have `{string}` description
|
|
317
|
+
- User expects `{string}` should not have `{string}` name
|
|
318
|
+
- User expects `{string}` should not have `{string}` attribute with `{string}` value
|
|
319
|
+
- User expects `{string}` should not have `{string}` class
|
|
320
|
+
- User expects count of `{string}` should not be `{int}`
|
|
321
|
+
- User expects `{string}` should not have `{string}` CSS property with `{string}` value
|
|
322
|
+
- User expects `{string}` should not have `{string}` id
|
|
323
|
+
- User expects `{string}` should not have `{string}` JavaScript property with `{string}` value
|
|
324
|
+
- User expects `{string}` should not have `{string}` role
|
|
325
|
+
- User expects `{string}` should not match `{string}` text
|
|
326
|
+
- User expects `{string}` should not have `{string}` value
|
|
327
|
+
- User expects `{string}` should not have `{string}` values
|
|
328
|
+
- User expects the page should not have a screenshot
|
|
329
|
+
- User expects the page should not have `{string}` title
|
|
330
|
+
- User expects the page url should not be `{string}`
|
|
331
|
+
- User is not on `{string}` page
|
|
332
|
+
- The response should not be OK
|
|
333
|
+
- User expects `{string}` should be `{string}` text
|
|
334
|
+
- User expects `{string}` should be close to `{float}` with precision `{int}`
|
|
335
|
+
- User expects `{string}` should be defined
|
|
336
|
+
- User expects `{string}` should be falsy
|
|
337
|
+
- User expects `{string}` should be greater than `{float}`
|
|
338
|
+
- User expects `{string}` should be greater than or equal to `{float}`
|
|
339
|
+
- User expects `{string}` should be an instance of `{string}`
|
|
340
|
+
- User expects `{string}` should be less than `{float}`
|
|
341
|
+
- User expects `{string}` should be less than or equal to `{float}`
|
|
342
|
+
- User expects `{string}` should be NaN
|
|
343
|
+
- User expects `{string}` should be null
|
|
344
|
+
- User expects `{string}` should be truthy
|
|
345
|
+
- User expects `{string}` should be undefined
|
|
346
|
+
- User expects `{string}` should have `{string}` substring
|
|
347
|
+
- User expects `{string}` should contain equal `{string}`
|
|
348
|
+
- User expects `{string}` should equal `{int}`
|
|
349
|
+
- User expects length of `{string}` should be `{int}`
|
|
350
|
+
- User expects `{string}` should have `{string}` property
|
|
351
|
+
- User expects `{string}` should match `{string}` regex
|
|
352
|
+
- User expects `{string}` should match `{string}` object
|
|
353
|
+
- User expects `{string}` should strictly equal `{string}`
|
|
354
|
+
- The function should throw
|
|
355
|
+
- User expects `{string}` should be any instance of `{string}`
|
|
356
|
+
- User expects `{string}` may be anything
|
|
357
|
+
- User expects `{string}` should contain `{string}` array elements
|
|
358
|
+
- User expects `{string}` should be close to `{float}` with precision `{int}`
|
|
359
|
+
- User expects `{string}` should contain `{string}` object properties
|
|
360
|
+
- User expects `{string}` should have `{string}` substring
|
|
361
|
+
- User expects `{string}` should match `{string}` regex
|
|
362
|
+
- User expects `{string}` should not have `{string}` text
|
|
363
|
+
- User expects `{string}` should not be close to `{float}` with precision `{int}`
|
|
364
|
+
- User expects `{string}` should not be defined
|
|
365
|
+
- User expects `{string}` should not be falsy
|
|
366
|
+
- User expects `{string}` should not be greater than `{float}`
|
|
367
|
+
- User expects `{string}` should not be greater than or equal to `{float}`
|
|
368
|
+
- User expects `{string}` should not be instance of `{string}`
|
|
369
|
+
- User expects `{string}` should not be less than `{float}`
|
|
370
|
+
- User expects `{string}` should not be less than or equal to `{float}`
|
|
371
|
+
- User expects `{string}` should not be NaN
|
|
372
|
+
- User expects `{string}` should not be null
|
|
373
|
+
- User expects `{string}` should not be truthy
|
|
374
|
+
- User expects `{string}` should not be undefined
|
|
375
|
+
- User expects `{string}` should not have `{string}` substring
|
|
376
|
+
- User expects `{string}` should not contain equal `{string}`
|
|
377
|
+
- User expects `{string}` should not equal `{string}`
|
|
378
|
+
- User expects length of `{string}` should not be `{int}`
|
|
379
|
+
- User expects `{string}` should not have `{string}` property
|
|
380
|
+
- User expects `{string}` should not match `{string}` regex
|
|
381
|
+
- User expects `{string}` should not match `{string}` object
|
|
382
|
+
- The function should not throw
|
|
383
|
+
- User expects `{string}` should not be any instance of `{string}`
|
|
384
|
+
- User expects `{string}` may not be anything
|
|
385
|
+
- User expects `{string}` should not contain `{string}` array elements
|
|
386
|
+
- User expects `{string}` should not be close to `{float}` with precision `{int}`
|
|
387
|
+
- User expects `{string}` should not contain `{string}` object properties
|
|
388
|
+
- User expects `{string}` should not contain `{string}` substring
|
|
389
|
+
- User expects `{string}` should not match `{string}` regex
|
|
390
|
+
- User expects that response should have `{int}` status code
|
|
391
|
+
- User expects that response body should match `{string}` schema
|