-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path700_DPM_extensions.robot
470 lines (456 loc) · 26.5 KB
/
700_DPM_extensions.robot
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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
*** Settings ***
Documentation Test Suite for DPM extensions
Suite Teardown Close All Browsers
Test Teardown Close All Browsers
Library SeleniumLibrary
Resource resources/Generic_resources.robot
Resource resources/Terminologies_resources.robot
Resource resources/Extension_resources.robot
*** Test Cases ***
700. Create DPM Metric extension and update code extensions
[Documentation] Import new code list and create DPM Metric extension.
... Update code extensions with Excel import and export Excel and CSV.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Create DPM extension ${CREATE_DPM_METRIC_BTN} False ${DRAFT_STATUS}
Wait Until Page Contains DPM Metric (en) timeout=20
Return to Koodistot frontpage
Upload codelist in excel format ${Modify_dpm_metric} ${CODE_LIST_16}
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Debit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Isin timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Contains Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Contains eee timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled ${EXTENSIONS_TAB} timeout=20
Click Element ${EXTENSIONS_TAB}
Wait Until Element Is Enabled ${EXPORT_DDL} timeout=20
Click Element ${EXPORT_DDL}
Click Element ${EXPORT_TYPE_EXCEL}
Sleep 2
Wait Until Element Is Enabled ${EXPORT_DDL} timeout=20
Click Element ${EXPORT_DDL}
Click Element ${EXPORT_TYPE_CSV}
Sleep 2
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
701. Update DPM Metric extension with invalid Excel sheet
[Documentation] Import new code list and try to update DPM Metric extension
... with invalid Excel sheet with two DMP Metric values defined. Check error message.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Return to Koodistot frontpage
Import code list in Excel format
Choose File ${FILE_UPLOAD_BTN} ${2_dpms_should_fail}
Wait Until Element Is Enabled ${UPLOAD_FILE_BTN} timeout=20
Click Element ${UPLOAD_FILE_BTN}
Wait Until Page Contains ${Error_2_dpms} timeout=20
Cancel code list import
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
702. Create DPM Metric extension
[Documentation] Import new code list and create DPM Metric extension.
... set DPM Metric values for code.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Create DPM extension ${CREATE_DPM_METRIC_BTN} False ${DRAFT_STATUS}
Wait Until Page Contains DPM Metric (en) timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode28 - Testcode 28")] timeout=20
Click Element //*[contains(text(), "testcode28 - Testcode 28")]
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=20
Click Element ${MODIFY_CODE_BTN}
Wait Until Element Is Enabled ${DPM_BALANCE_TYPE_INPUT} timeout=20
Input Text ${DPM_BALANCE_TYPE_INPUT} Credit
Wait Until Element Is Enabled ${DPM_METRIC_DATA_TYPE_INPUT} timeout=20
Input Text ${DPM_METRIC_DATA_TYPE_INPUT} Integer
Wait Until Element Is Enabled ${DPM_DOMAIN_REFERENCE_INPUT} timeout=20
Input Text ${DPM_DOMAIN_REFERENCE_INPUT} ccc
Wait Until Element Is Enabled ${DPM_FLOW_TYPE_INPUT} timeout=20
Input Text ${DPM_FLOW_TYPE_INPUT} Duration
Wait Until Element Is Enabled ${DPM_HIERARCHY_REFERENCE_INPUT} timeout=20
Input Text ${DPM_HIERARCHY_REFERENCE_INPUT} eee
Wait Until Element Is Enabled ${SAVE_CODE_MOD_BTN} timeout=20
Click Element ${SAVE_CODE_MOD_BTN}
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=60
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Credit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Integer timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Contains Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Contains eee timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
703. Create DPM explicit domain extension
[Documentation] Import new code list and Create DPM explicit domain extension.
... Set Member XBRL code prefix value for code. Update all code extensions in code list with Excel import and export Excel and CSV.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Create DPM extension ${CREATE_DPM_EXPLICIT_DOMAIN_BTN} False ${DRAFT_STATUS}
Wait Until Page Contains dpmExplicitDomain timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=60
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=20
Click Element ${MODIFY_CODE_BTN}
Wait Until Element Is Enabled ${DPM_EXPLICIT_DOMAIN_INPUT} timeout=20
Input Text ${DPM_EXPLICIT_DOMAIN_INPUT} yyy
Sleep 1
Wait Until Element Is Enabled ${SAVE_CODE_MOD_BTN} timeout=20
Click Element ${SAVE_CODE_MOD_BTN}
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=60
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Contains yyy timeout=20
Return to Koodistot frontpage
Import code list in Excel format
Upload codelist ${Modify_DPM_explicit_domain} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled //*[contains(text(), "testcode28 - Testcode 28")] timeout=20
Click Element //*[contains(text(), "testcode28 - Testcode 28")]
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Contains yyy timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled ${EXTENSIONS_TAB} timeout=20
Click Element ${EXTENSIONS_TAB}
Wait Until Element Is Enabled ${EXPORT_DDL} timeout=20
Click Element ${EXPORT_DDL}
Click Element ${EXPORT_TYPE_EXCEL}
Sleep 2
Wait Until Element Is Enabled ${EXPORT_DDL} timeout=20
Click Element ${EXPORT_DDL}
Click Element ${EXPORT_TYPE_CSV}
Sleep 2
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
704. Create DPM Dimension extension
[Documentation] Import new code list and create DPM Dimension extension.
... set DPM Dimension values for code.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Create DPM extension ${CREATE_DPM_DIMENSION_BTN} False ${DRAFT_STATUS}
Wait Until Page Contains dpmDimension timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode28 - Testcode 28")] timeout=20
Click Element //*[contains(text(), "testcode28 - Testcode 28")]
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=20
Click Element ${MODIFY_CODE_BTN}
Wait Until Element Is Enabled ${DPM_DIMENSION_DOMAIN_REFERENCE_INPUT} timeout=20
Input Text ${DPM_DIMENSION_DOMAIN_REFERENCE_INPUT} aaa
Sleep 1
Wait Until Element Is Enabled ${SAVE_CODE_MOD_BTN} timeout=20
Click Element ${SAVE_CODE_MOD_BTN}
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=60
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains aaa timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
705. Import DPM Dimension extension
[Documentation] Import new code list with codes and DPM Dimension extension.
... Check Domain reference values for codes.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_codes_DPM_Dimension_extension} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled //*[contains(text(), "testcode28 - Testcode 28")] timeout=20
Click Element //*[contains(text(), "testcode28 - Testcode 28")]
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains yyy timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains yyy timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
706. Import all DPM extensions
[Documentation] Import new code list with codes and all DPM extensions.
... Check extension values for codes.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_codes_DPM_extension_all} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains yyy timeout=20
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Boolean timeout=20
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Debit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Isin timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Contains Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Contains eee timeout=20
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Contains xxx timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled ${EXTENSIONS_TAB} timeout=20
Click Element ${EXTENSIONS_TAB}
Wait Until Element Is Visible //*[contains(text(), "dpmDimension")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmExplicitDomain")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmMetric")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmTypedDomain")] timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
707. Import DPM extensions when members contain relations to other members
[Documentation] Import new code list with codes and all DPM extensions.
... Check error message when code extension members contain relations to other members.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Admin
Import code list in Excel format
Choose File ${FILE_UPLOAD_BTN} ${DPM_extension_relations_to_other_members}
Wait Until Element Is Enabled ${UPLOAD_FILE_BTN} timeout=20
Click Element ${UPLOAD_FILE_BTN}
Wait Until Page Contains ${Error_relations_to_other_members} timeout=20
Cancel code list import
Sleep 1
Return to Koodistot frontpage
708. Create DPM Typed Domain extension with automatic member creation
[Documentation] Import new code list and create Typed Domain extension with automatic member creation.
... Check and modify Typed Domain value for code.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_30_Codes} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Create DPM extension ${CREATE_DPM_TYPED_DOMAIN_BTN} True ${DRAFT_STATUS}
Wait Until Page Contains dpmTypedDomain timeout=20
Sleep 3
Wait Until Element Is Enabled ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode28 - Testcode 28")] timeout=20
Click Element //*[contains(text(), "testcode28 - Testcode 28")]
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains - timeout=20
Sleep 3
Wait Until Element Is Enabled ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled //*[contains(text(), "testcode54 - Testcode 54")] timeout=20
Click Element //*[contains(text(), "testcode54 - Testcode 54")]
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains - timeout=20
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=20
Click Element ${MODIFY_CODE_BTN}
Wait Until Element Is Enabled ${DPM_DATA_TYPE_INPUT} timeout=20
Input Text ${DPM_DATA_TYPE_INPUT} Boolean
Wait Until Element Is Enabled ${SAVE_CODE_MOD_BTN} timeout=20
Click Element ${SAVE_CODE_MOD_BTN}
Wait Until Element Is Enabled ${MODIFY_CODE_BTN} timeout=60
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Boolean timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
709. Remove code with code extension member
[Documentation] Import new code list with codes and all DPM extensions. Check that removing code
... with code extension member is successful.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_codes_DPM_extension_all} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains yyy timeout=20
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Boolean timeout=20
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Debit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Isin timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Contains Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Contains eee timeout=20
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Contains xxx timeout=20
Remove code testcode57 - Testcode 57
Wait Until Page Does Not Contain Element //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Wait Until Element Is Enabled ${EXTENSIONS_TAB} timeout=20
Click Element ${EXTENSIONS_TAB}
Wait Until Element Is Visible //*[contains(text(), "dpmDimension")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmExplicitDomain")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmMetric")] timeout=20
Wait Until Element Is Visible //*[contains(text(), "dpmTypedDomain")] timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
710. Update DPM Metric members with and without sequence ID values
[Documentation] Import new code list with DPM Metric extension.
... Check that correct error message is displayed when trying to import members without sequence IDs,
... Check that updating DPM Metric values is successful with correct sequence ID values in Excel sheet. YTI-612.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_with_DPM_Metric_extension} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled ${CODE_LIST_DDL} timeout=20
Click Element ${CODE_LIST_DDL}
Wait Until Element Is Enabled ${UPDATE_CODE_LIST_FROM_FILE_BTN} timeout=20
Click Element ${UPDATE_CODE_LIST_FROM_FILE_BTN}
Wait Until Element Is Enabled ${FILE_FORMAT_BTN} timeout=20
Click Element ${FILE_FORMAT_BTN}
Wait Until Element Is Enabled ${FILE_FORMAT_Excel} timeout=20
Click Element ${FILE_FORMAT_Excel}
Wait Until Element Is Enabled ${FILE_UPLOAD_BTN} timeout=20
Choose File ${FILE_UPLOAD_BTN} ${Code_list_DPM_Metric_Credit_no_member_id}
Wait Until Element Is Enabled ${UPLOAD_FILE_BTN} timeout=20
Click Element ${UPLOAD_FILE_BTN}
Wait Until Page Contains ${Error_duplicate_members_for_same_code} timeout=20
Cancel code import
Sleep 3
Update code list ${Code_list_DPM_Metric_Credit} ${CODE_LIST_16} ${FILE_FORMAT_Excel}
Wait Until Element Is Enabled //*[contains(text(), "testcode29 - Testcode 29")] timeout=60
Click Element //*[contains(text(), "testcode29 - Testcode 29")]
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Credit timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
711. Import DPM extension with invalid PROPERTYTYPE
[Documentation] Import DPM extension with invalid PROPERTYTYPE and check error message. YTI-682.
[Tags] regression test 700
[Setup] Test Case Setup Admin
Import code list in Excel format
Choose File ${FILE_UPLOAD_BTN} ${Code_list_codes_DPM_all_invalid_propertytype}
Wait Until Page Contains Element ${IMPORT_CODE_LIST_BTN} timeout=20
Click Button ${UPLOAD_FILE_BTN}
Wait Until Page Contains ${Error_invalid_propertytype} timeout=20
Cancel code list import
Return to Koodistot frontpage
712. Import all DPM extensions and remove extension values with update
[Documentation] Import all DPM extensions and remove extension values with Update code list function.
... Check that extension values are removed from code information.
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Upload codelist in excel format ${Code_list_codes_DPM_extension_all} ${CODE_LIST_16}
Wait Until Page Contains 30 koodia timeout=20
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains yyy timeout=20
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Boolean timeout=20
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Contains Debit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Contains Isin timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Contains ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Contains Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Contains eee timeout=20
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Contains xxx timeout=20
Sleep 2
Wait Until Element Is Visible ${2_BREADCRUMB_LINK} timeout=30
Click Element ${2_BREADCRUMB_LINK}
Update code list ${Code_list_codes_DPM_all_no_values} ${CODE_LIST_16} ${FILE_FORMAT_Excel}
Wait Until Element Is Enabled //*[contains(text(), "testcode57 - Testcode 57")] timeout=20
Click Element //*[contains(text(), "testcode57 - Testcode 57")]
Wait Until Page Contains Koodin arvo timeout=20
Wait Until Page Contains Koodin nimi timeout=20
Wait Until Page Contains dpmDimension timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Does Not Contain yyy timeout=20
Wait Until Page Contains dpmTypedDomain timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Does Not Contain Boolean timeout=20
Wait Until Page Contains dpmMetric timeout=20
Wait Until Page Contains Balance type (en) timeout=20
Wait Until Page Does Not Contain Debit timeout=20
Wait Until Page Contains Data type (en) timeout=20
Wait Until Page Does Not Contain Isin timeout=20
Wait Until Page Contains Domain reference (en) timeout=20
Wait Until Page Does Not Contain ccc timeout=20
Wait Until Page Contains Flow type (en) timeout=20
Wait Until Page Does Not Contain Duration timeout=20
Wait Until Page Contains Hierarchy reference (en) timeout=20
Wait Until Page Does Not Contain eee timeout=20
Wait Until Page Contains dpmExplicitDomain timeout=20
Wait Until Page Contains Member XBRL code prefix (en) timeout=20
Wait Until Page Does Not Contain xxx timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_16}
713. Create DPM Metric extension and create new code for code list
[Documentation] Create DPM Metric extension and create new code for code list.
... Check that code creation is successful. YTI-1307
[Tags] koodistot regression 700 test
[Setup] Test Case Setup Superuser
Create code list ${REGISTRY_1} notCumulative ${CODE_LIST_VALUE_1} ${ORGANIZATION_1} ${CODE_LIST_8} Asuminen
Create new code to code list NewCode001 newCode001 ${DRAFT_STATUS} ${EMPTY}
Click Breadcrumb2 Link
Create new code to code list NewCode002 newCode002 ${DRAFT_STATUS} ${EMPTY}
Click Breadcrumb2 Link
Create new code to code list NewCode003 newCode003 ${DRAFT_STATUS} ${EMPTY}
Click Breadcrumb2 Link
Sleep 2
Create DPM extension ${CREATE_DPM_METRIC_BTN} True ${DRAFT_STATUS}
Wait Until Page Contains DPM Metric (en) timeout=20
Click Breadcrumb2 Link
Create new code to code list NewCode004 newCode004 ${DRAFT_STATUS} ${EMPTY}
Click Breadcrumb2 Link
Wait Until Page Contains 4 koodia timeout=20
Return to Koodistot frontpage
[Teardown] Remove code lists ${CODE_LIST_8}