blob: 4e1005b58e19dd0bf2652682e54cfb415ff545b0 (
plain)
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
|
#ip正向用例
apns_data:
#创建apns
-
-
operatingType: create
Name: test_apn_创建单个apn对象
AddressItemButton: null
Items:
-
ItemData: $www.ss.com
-
ItemData: $a.bc
Description: test_apn_创建单个apn对象
searchCriteria: Name
-
-
#含有一层group的apn对象,apn对象为直接创建
operatingType: createGroup
Name: test_apn_含有一层group的apn对象_1
GroupItemButton: null
SubObjects:
-
NoGroup:
-
Name: 第二层-2
-
AddressItemButton: click
-
Items:
-
ItemData: $www.aaaa.com
-
OkButton: click
Description: test_apn_含有一层group的apn对象_1_description
searchCriteria: Name
#创建单个apn对象并修改添加item
-
-
operatingType: create
Name: test_apn_创建单个apn对象,全匹配、含有最少字符全匹配
AddressItemButton: null
Items:
-
ItemData: $www.ss.com
-
ItemData: '*.ru'
Description: test_apn_创建单个apn对象,左匹配、含有最少字符全匹配_description
searchCriteria: Name
-
operatingType: edit
Name: test_apn_edit
EditAddItems:
-
ItemData: $www.test.com
searchCriteria: Name
#含有一层group的apn对象修改添加item (TSG-14478bug导致)
-
-
operatingType: createGroup
Name: test_apn_含有一层group的apn对象_1
GroupItemButton: null
SubObjects:
-
NoGroup:
-
Name: 第二层-2
-
AddressItemButton: click
-
Items:
-
ItemData: $www.aaaa.com
-
OkButton: click
Description: test_apn_含有一层group的apn对象_1_description
searchCriteria: Name
-
operatingType: edit
Name: test_apn_含有一层group的apn对象_1_修改名字
EditGroupAddItem: click
SubObjects:
-
NoGroup:
-
Name: 第二层-2
-
AddressItemButton: click
-
Items:
-
ItemData: $www.aaaa.com
-
OkButton: click
searchCriteria: Name
#创建单个apn对象最少字符
-
-
operatingType: create
Name: test
AddressItemButton: null
Items:
-
ItemData: $www.sa
searchCriteria: Name
#创建单个apn对象最多字符
-
-
operatingType: create
Name: testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest
AddressItemButton: null
Items:
-
ItemData: "*testtesttesttsesttesttesttesttesttesttesttesttesttesttesttestss"
searchCriteria: Name
# 特殊字符
-
-
operatingType: create
Name: '1!@#$%^&*():{}|?><,./中文русскийEnglish'
AddressItemButton: null
Items:
-
ItemData: $a.b
-
ItemData: '*.rt'
searchCriteria: Name
#五层-左匹配
-
-
operatingType: createGroup
Name: test_apns_1
GroupItemButton: null
SubObjects:
-
Group:
-
Name: 第二层-2
-
GroupItemButton: click
-
SubObjects:
-
Group:
-
Name: 第三层-3
-
GroupItemButton: click
-
SubObjects:
-
Group:
-
Name: 第四层-4
-
GroupItemButton: click
-
SubObjects:
-
NoGroup:
-
Name: 第五层-5
-
AddressItemButton: click
-
Items:
-
ItemData: $aa.bb
-
OkButton: click
-
OkButton: click
-
OkButton: click
-
OkButton: click
Description: test_fqdn__1
searchCriteria: Name
#创建页面item搜索框测试
-
-
operatingType: create
Name: test_itemsearch
AddressItemButton: null
Items:
-
ItemData: $aaaa.com
-
ItemData: $vvvv.com
ItemSearch: aaaa
PageAssert: aaaa
searchCriteria: Name
#查看引用计数
-
-
operatingType: open
search: 自动化测试勿动
ReferenceCount: click
PageAssert: 自动化测试_test
- #根据Catagory搜索
-
operatingType: create
Name: test_Catagory_Type
AddressItemButton: null
Items:
-
ItemData: $www.ss.com
-
ItemData: $aa.bb
Description: test_Catagory_Type
searchCriteria: Name
-
operatingType: open
SearchCatagory: APN Group
PagetNotContain: test_Catagory_Type
-
operatingType: open
SearchCatagory: APN
PageAssert: test_Catagory_Type
-
operatingType: open
search: test_Catagory_Type
Delete: del
-
- #导入正确文件
operatingType: open
ImportButton:
-
Import:
-
Name: apn_Inpot_test
-
UploadFile: objects/apn_1.txt
-
OkButton: click
search: apn_Inpot_test
Delete: click
# -
# - #导出数据
# operatingType: open
# search: 自动化测试数据勿动
# Export: 自动化测试数据勿动
-
-
#翻页
operatingType: open
turnPage: click
#创建页面total测试
-
-
operatingType: create
Name: test_itemsearch
AddressItemButton: null
Items:
-
ItemData: $aaaa.com
-
ItemData: $vvvv.com
PageAssert: Total:2
searchCriteria: Name
# Item增量导入 (TSG-14373bug导致)
-
-
operatingType: create
Name: test_ItemUpload
ImportItem:
-
UploadFile: objects/apns_item.txt
-
OkButtonUpload: click
-
ItemOkButton: click
searchCriteria: Name
-
operatingType: edit
Name: test_ItemUpload
PageAssert: $aabb.com
searchCriteria: Name
# Item增量导入在侧滑框修改Item (TSG-14373bug导致)
-
-
operatingType: create
Name: test_ItemUpload
ImportItem:
-
UploadFile: objects/apns_item.txt
-
OkButtonUpload: click
-
EditItemBtn: click
-
UploadEditItem: '*aabb.com'
-
SaveItem: click
-
ItemOkButton: click
searchCriteria: Name
-
operatingType: edit
Name: test_ItemUpload
PageAssert: '*aabb.com'
searchCriteria: Name
-
- # 导入无item的txt文件
operatingType: open
ImportButton:
-
Import:
-
Name: Acconunt_Inpot_test
-
UploadFile: objects/blank_file.txt
-
OkButton: click
PageAssert: Format Error:APN string should start with
-
- # 导入错误格式数据 长度小于3
operatingType: open
ImportButton:
-
Import:
-
Name: Acconunt_Inpot_test
-
UploadFile: objects/account_error.txt
-
OkButton: click
PageAssert: Suffix matching and exactly matching only.
#导入错误的匹配方式
-
-
operatingType: open
ImportButton:
-
Import:
-
Name: Acconunt_Inpot_test
-
UploadFile: objects/apn_error_matching.txt
-
OkButton: click
PageAssert: Suffix matching and exactly matching only.
#创建修改数据并验证数据正确性
-
-
operatingType: create
Name: test_apn
AddressItemButton: null
Items:
-
ItemData: $www.ss.com
-
ItemData: $aa.ba
searchCriteria: Name
-
operatingType: edit
Name: test_apn_修改
PageAssertList:
- $www.ss.com
- $aa.ba
EditAddItems:
-
ItemData: $www.test.co
searchCriteria: Name
-
operatingType: edit
Name: test_apn_验证数据
PageAssertList:
- $www.ss.com
- $aa.ba
- $www.test.co
searchCriteria: Name
-
-
#列设置
operatingType: open
ColumnSetup:
-
Column:
-
Modified Time: click
-
OkButton: click
ColumnAssert:
-
Modified Time: Modified Time
apns_negative_data:
# Item增量导入 错误文件
-
-
operatingType: createNoOKButton
Name: test_ItemUpload
ImportItem:
-
UploadFile: objects/keywords_error.txt
-
OkButtonUpload: click
-
ItemOkButton: click
assertText:
- Require at least 3 bytes for any single substring , the total length of string can not exceed 1024 bytes.
# name长度为3
-
-
operatingType: create
Name: 123
assertText:
- The length of the name is at most 128 characters and cannot be less than 4 characters
-
-
# 不输入name
operatingType: create
assertText:
- The length of the name is at most 128 characters and cannot be less than 4 characters
-
-
# 不输入item
operatingType: create
Name: AutomatedTesting_NoItem
assertText:
- Item of policy object and referenced sub-objects cannot be empty at the same time
# item小于三个字符
-
-
operatingType: create
Name: test_item——2
AddressItemButton: null
Items:
-
ItemData: "*a"
assertText:
- There is a empty value in Items
|