-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path200_Model_modification.robot
1328 lines (1287 loc) · 68.6 KB
/
200_Model_modification.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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
*** Settings ***
Documentation Test Suite for basic functionality of Data Vocabularies application
Suite Teardown Close All Browsers
Test Teardown Close All Browsers
Library SeleniumLibrary
Library Collections
Resource resources/Datamodel_Resources.robot
Resource resources/Terminologies_Resources.robot
*** Variables ***
${class} Maksu
${class_2} auto
${namespace} Julkishallinnon tietokomponentit
${attribute} Entinen nimi
${association} Jäsen
${classification} Asuminen
${contributor} Testiorganisaatio
${vocabulary} Verotussanasto
${external_uri} http://uri.suomi.fi/datamodel/ns/jhs#Maksu
${class_property_po_box} id=select_property_attribute_Postilokero-osoite_checkbox
${class_property_post_code} id=select_property_attribute_Postinumero_checkbox
${class_property_post_name} id=select_property_attribute_Postitoimipaikka_checkbox
${class_item_1} Rooli
${class_item_2} Maksu
${class_item_3} Ajanjakso
${predicate_change_error} Predikaatin tyyppiä ei voida muuttaa koska seuraavat resurssit käyttävät sitä
${class_json_ld_frame} blob:https://tietomallit.dev.yti.cloud.vrk.fi/46f77ed0-82b6-4d57-b771-fc9a92bf1f17
${class_json_ld_frame_test} blob:https://tietomallit.dev.yti.cloud.vrk.fi/a93dc0f7-ee66-48ea-8723-85c89ea28e9c
${class_framed_json_ld} blob:https://tietomallit.dev.yti.cloud.vrk.fi/61658254-be26-4815-a168-a9f4325d8d15
${class_framed_json_ld_test} blob:https://tietomallit.dev.yti.cloud.vrk.fi/cad2b19c-faee-4aca-942c-2775ef13e268
*** Test Cases ***
200. Modify profile
[Documentation] Modify existing profile
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Wait Until Page Contains Element ${MODEL_LABEL_INPUT} timeout=30
Input Text ${MODEL_LABEL_INPUT} Uusi nimi
Wait Until Page Contains Element ${MODEL_DESCRIPTION_INPUT} timeout=30
Input Text ${MODEL_DESCRIPTION_INPUT} Uusi kuvaus
Wait Until Page Contains Element ${REMOVE_Asuminen} timeout=30
Click Element ${REMOVE_Asuminen}
Log To Console Classification removed
Sleep 1
Add Information Domain Kulttuuri
Log To Console New classification added
Wait Until Page Contains Element ${REMOVE_Testiorganisaatio} timeout=30
Click Element ${REMOVE_Testiorganisaatio}
Log To Console Contributor removed
Sleep 1
Add Contributor Automaatiotestaus
Wait Until Element Is Enabled ${MODEL_CONTACT_INPUT} timeout=30
Input Text ${MODEL_CONTACT_INPUT} Tähän yhteystiedot
Wait Until Page Contains Element ${ADD_LINK} timeout=30
Click Element ${ADD_LINK}
Wait Until Page Contains Element ${LINK_URL_INPUT} timeout=30
Input Text ${LINK_URL_INPUT} https://www.suomi.fi/etusivu/
Wait Until Page Contains Element ${LINK_NAME_INPUT} timeout=30
Input Text ${LINK_NAME_INPUT} www.suomi.fi/etusivu/
Wait Until Page Contains Element ${LINK_DESCRIPTION_INPUT} timeout=30
Input Text ${LINK_DESCRIPTION_INPUT} Tämä on suomi.fi linkki
Wait Until Page Contains Element ${CREATE_NEW_LINK} timeout=30
Click Element ${CREATE_NEW_LINK}
Log To Console New link added
Save Model
Log To Console Modifications saved
Wait Until Page Contains Uusi nimi timeout=30
Wait Until Page Contains Uusi kuvaus timeout=30
Wait Until Page Contains Kulttuuri timeout=30
Wait Until Page Contains Automaatiotestaus timeout=30
Wait Until Page Contains www.suomi.fi/etusivu/ timeout=30
Wait Until Page Contains Yhteydenotto timeout=30
Wait Until Page Contains Tähän yhteystiedot timeout=30
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile Uusi nimi
201. Add new class to profile
[Documentation] Add new class to profile
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Add Class Rooli ${NAMESPACE_1}
Confirm All Properties For Class And Save
Log To Console Class "Rooli" added
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
202. Add new class to Core Vocabulary
[Documentation] Add new Core Vocabulary and add new class
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Core Vocabulary ${CORE_VOCABULARY_1} ${PREFIX_2}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${CORE_VOCABULARY_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Add Class Rooli ${NAMESPACE_1}
Log To Console Class "Rooli" added
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${CORE_VOCABULARY_1}
203. Modify Core Vocabulary
[Documentation] Modify Core Vocabulary and delete Core Vocabulary
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Core Vocabulary ${CORE_VOCABULARY_1} ${PREFIX_2}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${CORE_VOCABULARY_1}
Wait Until Page Contains Element ${CORE_VOCABULARY_LABEL_INPUT} timeout=30
Input Text ${CORE_VOCABULARY_LABEL_INPUT} Uusi nimi
Wait Until Page Contains Element ${CORE_VOCABULARY_DESCRIPTION_INPUT} timeout=30
Input Text ${CORE_VOCABULARY_DESCRIPTION_INPUT} Uusi kuvaus
Wait Until Page Contains Element ${REMOVE_Asuminen} timeout=30
Click Element ${REMOVE_Asuminen}
Log To Console Information domain removed
Sleep 1
Add Information Domain Kulttuuri
Wait Until Page Contains Element ${REMOVE_Testiorganisaatio} timeout=30
Click Element ${REMOVE_Testiorganisaatio}
Log To Console Contributor removed
Sleep 1
Add Contributor Automaatiotestaus
Add Link https://www.suomi.fi/etusivu/ www.suomi.fi/etusivu/ Tämä on suomi.fi linkki
Save Model
Wait Until Page Contains Uusi nimi timeout=30
Wait Until Page Contains Uusi kuvaus timeout=30
Wait Until Page Contains Kulttuuri timeout=30
Wait Until Page Contains Automaatiotestaus timeout=30
Wait Until Page Contains www.suomi.fi/etusivu/ timeout=30
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile Uusi nimi
204. Add new attribute and association
[Documentation] Add new attribute and association for class
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Add Class Rooli ${NAMESPACE_1}
Sleep 2
Confirm All Properties For Class And Save
Log To Console Class "Rooli" added
Add Attribute Entinen nimi
Save Class
Log To Console Attribute "Entinen nimi" added to class "Rooli"
Add Association Jäsen
Save Class
Log To Console Association "Jäsen" added to class "Rooli"
Wait Until Page Contains Entinen nimi timeout=30
Wait Until Page Contains Jäsen timeout=30
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
205. Add association between two classes
[Documentation] Add association between two classes
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Add Class Rooli ${NAMESPACE_1}
Sleep 2
Confirm All Properties For Class And Save
Log To Console Class "Rooli" added
Add Class Maksu ${NAMESPACE_1}
Sleep 2
Confirm All Properties For Class And Save
Log To Console Class "Maksu" added
Sleep 1
Add Association Rekisteröinti
Log To Console Association "Rekisteröinti" added
Wait Until Page Contains Element ${VALUE_CLASS_BTN} timeout=30
Click Element ${VALUE_CLASS_BTN}
Wait Until Page Contains Element ${SEARCH_CLASS_INPUT} timeout=30
Input Text ${SEARCH_CLASS_INPUT} Rooli
Wait Until Element Is Enabled //*[contains(@id, 'Rooli_search_result_link')] timeout=30
Click Element //*[contains(@id, 'Rooli_search_result_link')]
Sleep 2
Wait Until Page Contains Element ${SPECIALIZE_CLASS} timeout=30
Click Element ${SPECIALIZE_CLASS}
Sleep 2
Save Class
Page Should Contain Rekisteröinti
Page Should Contain autom:Rooli
Log To Console Association "Rekisteröinti" added between "Rooli" and "Maksu"
Sleep 3
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
206. Create new class without referencing concept
[Documentation] Create new class without referencing concept
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept automobiili
Save Class
Wait Until Page Contains Automobiili timeout=30
Log To Console Class "Automobiili" added without referencing concept
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
207. Create new shape by referencing external uri
[Documentation] Create new shape by referencing external uri
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Create New Shape By Referencing External Uri ${external_uri} ${class}
Confirm All Properties For Class And Save
Wait Until Page Contains Maksu timeout=30
Log To Console Shape "Maksu" added by referencing external uri
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
208. Add new class to profile and remove properties
[Documentation] Add new class to profile and remove properties
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Add Class Postiosoite ${NAMESPACE_1}
Sleep 2
Deselect properties for class and save ${class_property_po_box} ${class_property_post_code} ${class_property_post_name}
Wait Until Page Does Not Contain Element //*[contains(text(), "Postilokero-osoite")] timeout=30
Wait Until Page Does Not Contain Element //*[contains(text(), "Postinumero")] timeout=30
Wait Until Page Does Not Contain Element //*[contains(text(), "Postitoimipaikka")] timeout=30
Log To Console PO box, post code and post name properties removed from class
Log To Console Class "Postiosoite" added
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
209. Create new class and add referencing concept and vocabulary
[Documentation] Create new class and add referencing concept and vocabulary
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Add vocabulary ${vocabulary}
Save Model
Log To Console Namespace "Julkishallinnon tietokomponentit" added
Log To Console Vocabulary "Verotussanasto" added
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept liksa
Page Should Contain Liksa
Log To Console Class "Liksa" added without referencing concept
Sleep 1
Change concept for class ansiotulo
Save Class
Wait Until Page Contains Käsitteen määritelmä timeout=30
Wait Until Page Contains muu tulo kuin pääomatulo timeout=30
Log To Console Concept definition "ansiotulo" added for "liksa"
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
210. Add several classes to profile, check history and remove one class
[Documentation] Add several classes to profile, check class history information and remove one class
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Wait Until Page Contains Element ${MODEL_DATA_TAB} timeout=30
Click Element ${MODEL_DATA_TAB}
Add several classes ${class_item_1} ${class_item_2} ${class_item_3}
Wait Until Page Contains Element //*[contains(@id, 'Ajanjakso_tabset_link')] timeout=30
Wait Until Page Contains Element //*[contains(@id, 'Rooli_tabset_link')] timeout=30
Wait Until Page Contains Element //*[contains(@id, 'Maksu_tabset_link')] timeout=30
Log To Console Class "Rooli" added
Log To Console Class "Maksu" added
Log To Console Class "Ajanjakso" added
Wait Until Page Contains Element //*[contains(@id, 'Ajanjakso_tabset_link')] timeout=30
Click Element //*[contains(@id, 'Ajanjakso_tabset_link')]
Wait Until Page Contains Element ${SHOW_CLASS_HISTORY_BTN} timeout=30
Click Element ${SHOW_CLASS_HISTORY_BTN}
Wait Until Page Contains Historialliset versiot timeout=10
Log To Console History for class "Ajanjakso" opened
Wait Until Page Contains Element ${CLOSE_HISTORY_BTN} timeout=30
Click Element ${CLOSE_HISTORY_BTN}
Wait Until Page Contains Element ${REMOVE_CLASS_BTN} timeout=30
Click Element ${REMOVE_CLASS_BTN}
Wait Until Page Contains Element ${CONFIRM_REMOVE_MODEL_BTN} timeout=30
Click Element ${CONFIRM_REMOVE_MODEL_BTN}
Wait Until Page Does Not Contain Element //*[contains(@id, 'Ajanjakso_tabset_link')] timeout=30
Log To Console Class "Ajanjakso" removed
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
211. Add reference data for profile
[Documentation] Create profile and add reference data for that profile
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Wait Until Page Contains Element ${ADD_REF_DATA_BTN} timeout=30
Click Element ${ADD_REF_DATA_BTN}
Wait Until Element Is Visible ${REF_DATA_FILTER_DDL} timeout=30
Click Element ${REF_DATA_FILTER_DDL}
Wait Until Page Contains Element //*[contains(text(), "Voimassa oleva")] timeout=30
Click Element //*[contains(text(), "Voimassa oleva")]
Wait Until Page Contains Element ${SEARCH_REF_DATA_INPUT} timeout=30
Input Text ${SEARCH_REF_DATA_INPUT} Kunnat 2018
Wait Until Element Is Enabled //*[contains(@id,'kunta_1_20180101_search_result_link')] timeout=60
Click Element //*[contains(text(), "Kunnat 2018")]
Sleep 2
Wait Until Page Contains Element ${REF_DATA_FILTER_DDL} timeout=30
Click Element ${REF_DATA_FILTER_DDL}
Wait Until Page Contains Element //*[contains(text(), "Kaikki tilat")] timeout=30
Click Element //*[contains(text(), "Kaikki tilat")]
Wait Until Page Contains Koodiston URI timeout=30
Wait Until Page Contains Koodiston tila timeout=30
Wait Until Page Contains Voimassa oleva timeout=30
Wait Until Page Contains Koodiston nimi timeout=30
Wait Until Page Contains Tunniste timeout=30
Wait Until Page Contains 005 timeout=30
Wait Until Page Contains Alajärvi timeout=30
Wait Until Page Contains Element ${USE_SELCTION_BTN} timeout=30
Click Element ${USE_SELCTION_BTN}
Save Model
Wait Until Page Contains Kunnat 2018 timeout=30
Log To Console Reference data "Kunnat 2018" added for profile
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
212. Remove INCOMPLETE status profile, class, attribute and association
[Documentation] Create new profile, class, attribute and association.
... Change status as INCOMPLETE and check that deletion of profile, class,
... attribute and association is possible.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Page Contains Testiluokka timeout=30
Log To Console Class "Testiluokka" added without referencing concept
Create New Attribute Testiattribuutti
Create new association Testiassosiaatio
Wait Until Element Is Enabled ${PREDICATE_EDIT_BTN} timeout=60
Click Element ${PREDICATE_EDIT_BTN}
Wait Until Element Is Enabled //*[@id="predicateState"]/div/div/iow-selection-transclude/span timeout=30
Click Element //*[@id="predicateState"]/div/div/iow-selection-transclude/span
Wait Until Element Is Enabled ${PREDICATE_STATE_INCOMPLETE} timeout=30
Click Element ${PREDICATE_STATE_INCOMPLETE}
Wait Until Element Is Enabled ${PREDICATE_EDIT_SAVE_BTN} timeout=30
Click Element ${PREDICATE_EDIT_SAVE_BTN}
Wait Until Page Contains Keskeneräinen timeout=30
Sleep 1
Wait Until Element Is Enabled ${PREDICATE_REMOVE_BTN} timeout=30
Click Element ${PREDICATE_REMOVE_BTN}
Wait Until Element Is Enabled ${CONFIRM_REMOVE_MODEL_BTN} timeout=30
Click Element ${CONFIRM_REMOVE_MODEL_BTN}
Log To Console Incomplete state association removed
Select Tab ${ATTRIBUTE_TAB}
Sleep 1
Wait Until Element Is Enabled //*[contains(@id,'testiattribuutti_tabset_link')] timeout=60
Click Element //*[contains(@id,'testiattribuutti_tabset_link')]
Wait Until Element Is Enabled ${PREDICATE_EDIT_BTN} timeout=60
Click Element ${PREDICATE_EDIT_BTN}
Wait Until Element Is Enabled //*[@id="predicateState"]/div/div/iow-selection-transclude/span timeout=30
Click Element //*[@id="predicateState"]/div/div/iow-selection-transclude/span
Wait Until Element Is Enabled ${PREDICATE_STATE_INCOMPLETE} timeout=30
Click Element ${PREDICATE_STATE_INCOMPLETE}
Wait Until Element Is Enabled ${PREDICATE_EDIT_SAVE_BTN} timeout=30
Click Element ${PREDICATE_EDIT_SAVE_BTN}
Wait Until Page Contains Keskeneräinen timeout=30
Wait Until Element Is Enabled ${PREDICATE_REMOVE_BTN} timeout=30
Click Element ${PREDICATE_REMOVE_BTN}
Wait Until Element Is Enabled ${CONFIRM_REMOVE_MODEL_BTN} timeout=30
Click Element ${CONFIRM_REMOVE_MODEL_BTN}
Log To Console Incomplete state attribute removed
Sleep 1
Select And Edit Class Testiluokka
Sleep 1
Wait Until Element Is Enabled //*[@id="classState"]/div/div/iow-selection-transclude/span timeout=30
Click Element //*[@id="classState"]/div/div/iow-selection-transclude/span
Sleep 1
Wait Until Element Is Enabled ${CLASS_STATE_INCOMPLETE} timeout=30
Click Element ${CLASS_STATE_INCOMPLETE}
Save Class
Sleep 1
Wait Until Element Is Enabled ${REMOVE_CLASS_BTN} timeout=60
Click Element ${REMOVE_CLASS_BTN}
Wait Until Element Is Enabled ${CONFIRM_REMOVE_MODEL_BTN} timeout=30
Click Element ${CONFIRM_REMOVE_MODEL_BTN}
Wait Until Page Does Not Contain Element //*[contains(@id,'Testiluokka_tabset_link')] timeout=60
Modify Profile
Wait Until Element Is Enabled //*[@id="modelState"]/div/div/iow-selection-transclude/span timeout=30
Click Element //*[@id="modelState"]/div/div/iow-selection-transclude/span
Wait Until Element Is Enabled ${MODEL_STATE_INCOMPLETE} timeout=30
Click Element ${MODEL_STATE_INCOMPLETE}
Save Model
Wait Until Page Contains Keskeneräinen timeout=30
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
213. Convert attribute to association
[Documentation] Create new profile, attribute and association.
... Check that converting attribute to association and vice versa is successful.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Page Contains Testiluokka timeout=30
Create New Attribute Testiattribuutti
Create new association Testiassosiaatio
Wait Until Element Is Enabled ${PREDICATE_EDIT_BTN} timeout=60
Click Element ${PREDICATE_EDIT_BTN}
Wait Until Element Is Enabled ${CONVERT_TO_ATTRIBUTE} timeout=30
Click Element ${CONVERT_TO_ATTRIBUTE}
Save Predicate
Select Tab ${ASSOCIATION_TAB}
Wait Until Page Does Not Contain Element //*[contains(@id,'testiassosiaatio_tabset_link')] timeout=60
Select Tab ${ATTRIBUTE_TAB}
Wait Until Element Is Enabled //*[contains(@id,'testiattribuutti_tabset_link')] timeout=30
Click Element //*[contains(@id,'testiattribuutti_tabset_link')]
Wait Until Element Is Enabled ${PREDICATE_EDIT_BTN} timeout=60
Click Element ${PREDICATE_EDIT_BTN}
Wait Until Element Is Enabled ${CONVERT_TO_ASSOCIATION} timeout=30
Click Element ${CONVERT_TO_ASSOCIATION}
Save Predicate
Select Tab ${ATTRIBUTE_TAB}
Wait Until Page Does Not Contain Element //*[contains(@id,'testiattribuutti_tabset_link')] timeout=60
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
214. Convert attribute to association when it is used by a resource
[Documentation] Create new profile and attribute and check that converting attribute
... to association is not possible when it is used by the profile.
... Check that error message is displayed.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Page Contains Testiluokka timeout=30
Create New Attribute Testiattribuutti
Select Tab ${CLASS_TAB}
Wait Until Element Is Enabled //*[contains(@id,'Testiluokka_tabset_link')] timeout=60
Click Element //*[contains(@id,'Testiluokka_tabset_link')]
Add Existing Attribute Testiattribuutti
Save Class
Select Tab ${ATTRIBUTE_TAB}
Wait Until Element Is Enabled //*[contains(@id,'testiattribuutti_tabset_link')] timeout=30
Click Element //*[contains(@id,'testiattribuutti_tabset_link')]
Wait Until Element Is Enabled ${PREDICATE_EDIT_BTN} timeout=60
Click Element ${PREDICATE_EDIT_BTN}
Wait Until Page Contains Element ${CONVERT_TO_ASSOCIATION} timeout=30
Click Element ${CONVERT_TO_ASSOCIATION}
Wait Until Page Contains ${predicate_change_error} timeout=30
Sleep 1
Click Element ${CLOSE_BTN}
Wait Until Element Is Enabled ${PREDICATE_EDIT_CANCEL_BTN} timeout=30
Click Element ${PREDICATE_EDIT_CANCEL_BTN}
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
215. Add new attribute for unsaved class
[Documentation] Create new profile and two classes. Add new attribute for class before saving the class.
... Check that new class is created.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Element Is Enabled //*[contains(@id,'Testiluokka_tabset_link')] timeout=60
Click Element //*[contains(@id,'Testiluokka_tabset_link')]
Create New Class Without Referencing Concept Testiluokka2
Wait Until Element Is Visible ${ADD_PROPERTY_DDL} timeout=30
Click Element ${ADD_PROPERTY_DDL}
Wait Until Element Is Visible ${ADD_PROPERTY_BTN} timeout=30
Click Element ${ADD_PROPERTY_BTN}
Wait Until Element Is Enabled ${TEXT_FILTER_SEARCH_INPUT} timeout=30
Input Text ${TEXT_FILTER_SEARCH_INPUT} testiattribuutti
Wait Until Element Is Visible ${CREATE_NEW_ATTRIBUTE_LINK} timeout=30
Click Element ${CREATE_NEW_ATTRIBUTE_LINK}
Wait Until Element Is Enabled ${CREATE_NEW_ATTRIBUTE_WITHOUT_REF_LINK} timeout=30
Click Element ${CREATE_NEW_ATTRIBUTE_WITHOUT_REF_LINK}
Wait Until Element Is Enabled ${CREATE_NEW_ATTRIBUTE_BTN} timeout=30
Click Element ${CREATE_NEW_ATTRIBUTE_BTN}
Wait Until Element Is Enabled ${CREATE_AND_USE_ATTRIBUTE} timeout=30
Click Element ${CREATE_AND_USE_ATTRIBUTE}
Sleep ${SLEEP_TIMEOUT}
Save Class
Wait Until Page Contains Testiluokka2 timeout=30
Wait Until Page Contains Element //*[contains(@id,'Testiluokka_tabset_link')] timeout=60
Wait Until Page Contains Element //*[contains(@id,'Testiluokka2_tabset_link')] timeout=60
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
216. Create new class and suggest concept to Terminologies tool
[Documentation] Create new class to profile and suggest concept to Terminologies tool.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup Terminologies
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Add vocabulary Testiautomaatiosanasto
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create new class and suggest concept to terminologies Testiluokka Testiluokan määritelmä
Save Class
Wait Until Page Contains Testiluokka timeout=30
Wait Until Page Contains Käsitteen määritelmä timeout=30
Wait Until Page Contains Testiluokan määritelmä timeout=30
Wait Until Page Contains Sanasto timeout=30
Wait Until Page Contains Testiautomaatiosanasto timeout=30
Go Back To Data Vocabularies Frontpage
Close All Browsers
Terminology Test Case Setup
Wait Until Element Is Visible ${FRONTPAGE_SEARCH_BOX_TERMINOLOGIES} timeout=30
Input Text ${FRONTPAGE_SEARCH_BOX_TERMINOLOGIES} ${VOCABULARY_1}
Wait Until Page Contains Element //*[contains(text(), "${VOCABULARY_1}")] timeout=30
Click Element //*[contains(text(), "${VOCABULARY_1}")]
Wait Until Page Contains ${VOCABULARY_1} timeout=30
Wait Until Page Contains Element ${CONCEPTS_TAB} timeout=30
Click Element ${CONCEPTS_TAB}
Wait Until Element Is Enabled //*[contains(@id,'concept-4_concept_list_listitem')] timeout=30
Click Element //*[contains(@id,'concept-4_concept_list_listitem')]
Wait Until Page Contains Testiluokka timeout=30
Close All Browsers
[Teardown] Test Case Teardown Terminologies
217. Create new attribute and association and suggest concepts to Terminologies tool
[Documentation] Create new attribute and association for profile and suggest concepts to Terminologies tool.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup Terminologies
Maximize Browser Window
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Add vocabulary Testiautomaatiosanasto
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka1
Wait Until Element Is Visible ${ADD_PROPERTY_DDL} timeout=30
Click Element ${ADD_PROPERTY_DDL}
Wait Until Element Is Visible ${ADD_PROPERTY_BTN} timeout=30
Click Element ${ADD_PROPERTY_BTN}
Wait Until Page Contains Element ${TEXT_FILTER_SEARCH_INPUT} timeout=30
Input Text ${TEXT_FILTER_SEARCH_INPUT} Testiattribuutti
Wait Until Element Is Enabled ${CREATE_NEW_ATTRIBUTE_LINK} timeout=30
Click Element ${CREATE_NEW_ATTRIBUTE_LINK}
Wait Until Element Is Enabled ${SUGGEST_ATTRIBUTE_TO_TERMINOLOGIES} timeout=30
Click Element ${SUGGEST_ATTRIBUTE_TO_TERMINOLOGIES}
Wait Until Element Is Enabled ${CONCEPT_DEFINITION_INPUT} timeout=30
Input Text ${CONCEPT_DEFINITION_INPUT} Testiattribuutin määritelmä
Wait Until Element Is Enabled ${CREATE_NEW_ATTRIBUTE_BTN} timeout=30
Click Element ${CREATE_NEW_ATTRIBUTE_BTN}
Sleep 1
Wait Until Element Is Enabled ${CREATE_AND_USE_ATTRIBUTE} timeout=30
Click Element ${CREATE_AND_USE_ATTRIBUTE}
Sleep 2
Save Class
Wait Until Element Is Enabled //*[contains(text(), "Testiattribuutti")] timeout=30
Click Element //*[contains(text(), "Testiattribuutti")]
Sleep 1
Wait Until Page Contains Element //*[contains(text(), "autom:testiattribuutti")] timeout=30
Click Element //*[contains(text(), "autom:testiattribuutti")]
Wait Until Page Contains Testiattribuutti timeout=30
Wait Until Page Contains Käsitteen määritelmä timeout=30
Wait Until Page Contains Testiattribuutin määritelmä timeout=30
Wait Until Page Contains Sanasto timeout=30
Wait Until Page Contains Testiautomaatiosanasto timeout=30
Wait Until Page Contains Element ${MODIFY_CLASS} timeout=30
Click Element ${MODIFY_CLASS}
Wait Until Element Is Visible ${ADD_PROPERTY_DDL} timeout=30
Click Element ${ADD_PROPERTY_DDL}
Wait Until Element Is Visible ${ADD_PROPERTY_BTN} timeout=30
Click Element ${ADD_PROPERTY_BTN}
Wait Until Page Contains Element ${TEXT_FILTER_SEARCH_INPUT} timeout=30
Input Text ${TEXT_FILTER_SEARCH_INPUT} Testiassosiaatio
Wait Until Element Is Enabled ${CREATE_NEW_ASSOCIATION_LINK} timeout=30
Click Element ${CREATE_NEW_ASSOCIATION_LINK}
Wait Until Page Contains Element ${SUGGEST_ASSOCIATION_TO_TERMINOLOGIES} timeout=30
Click Element ${SUGGEST_ASSOCIATION_TO_TERMINOLOGIES}
Wait Until Page Contains Element ${CONCEPT_DEFINITION_INPUT} timeout=30
Input Text ${CONCEPT_DEFINITION_INPUT} Testiassosiaation määritelmä
Wait Until Page Contains Element ${CREATE_NEW_ASSOCIATION_BTN} timeout=30
Click Element ${CREATE_NEW_ASSOCIATION_BTN}
Sleep 1
Wait Until Element Is Enabled ${CREATE_AND_USE_ASSOCIATION} timeout=30
Click Element ${CREATE_AND_USE_ASSOCIATION}
Sleep 2
Wait Until Page Contains Element //*[contains(text(), "autom:testiassosiaatio")] timeout=30
Click Element //*[contains(text(), "autom:testiassosiaatio")]
Wait Until Page Contains Testiassosiaatio timeout=30
Wait Until Page Contains Käsitteen määritelmä timeout=30
Wait Until Page Contains Testiassosiaation määritelmä timeout=30
Wait Until Page Contains Sanasto timeout=30
Wait Until Page Contains Testiautomaatiosanasto timeout=30
Save Class
Sleep 1
Go Back To Data Vocabularies Frontpage
Close All Browsers
Terminology Test Case Setup
Wait Until Element Is Visible ${FRONTPAGE_SEARCH_BOX_TERMINOLOGIES} timeout=30
Input Text ${FRONTPAGE_SEARCH_BOX_TERMINOLOGIES} ${VOCABULARY_1}
Wait Until Page Contains Element //*[contains(text(), "${VOCABULARY_1}")] timeout=30
Click Element //*[contains(text(), "${VOCABULARY_1}")]
Wait Until Page Contains ${VOCABULARY_1} timeout=30
Wait Until Page Contains Element ${CONCEPTS_TAB} timeout=30
Click Element ${CONCEPTS_TAB}
Wait Until Element Is Enabled //*[contains(@id,'concept-4_concept_list_listitem')] timeout=30
Click Element //*[contains(@id,'concept-4_concept_list_listitem')]
Wait Until Page Contains Testiattribuutti timeout=30
Sleep 1
Wait Until Element Is Enabled //*[contains(@id,'concept-5_concept_list_listitem')] timeout=30
Click Element //*[contains(@id,'concept-5_concept_list_listitem')]
Wait Until Page Contains Testiassosiaatio timeout=30
Sleep 1
Close All Browsers
[Teardown] Test Case Teardown Terminologies
218. Create new namespace
[Documentation] Create new profile and create new namespace. Check that namespace prefix can not be
... "example" or same as the model prefix. Check that namespace can be added only once. Add two classes.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Wait Until Element Is Enabled ${IMPORT_NAMESPACE} timeout=30
Click Element ${IMPORT_NAMESPACE}
Wait Until Element Is Enabled ${CREATE_NEW_NAMESPACE} timeout=30
Click Element ${CREATE_NEW_NAMESPACE}
Wait Until Element Is Enabled ${NAMESPACE_LABEL} timeout=30
Input Text ${NAMESPACE_LABEL} autom1
Wait Until Element Is Enabled ${NAMESPACE_VALUE} timeout=30
Input Text ${NAMESPACE_VALUE} http://uri.suomi.fi/datamodel/ns/autom1/
Wait Until Element Is Enabled ${NAMESPACE_PREFIX} timeout=30
Input Text ${NAMESPACE_PREFIX} autom
Wait Until Page Contains ${error_reserved_namespace_prefix} timeout=30
Sleep 1
Input Text ${NAMESPACE_PREFIX} example
Wait Until Page Contains ${error_reserved_namespace_prefix} timeout=30
Sleep 1
Input Text ${NAMESPACE_PREFIX} autom1
Wait Until Element Is Enabled ${NAMESPACE_CREATE} timeout=30
Click Element ${NAMESPACE_CREATE}
Sleep 2
Wait Until Element Is Enabled ${IMPORT_NAMESPACE} timeout=30
Click Element ${IMPORT_NAMESPACE}
Wait Until Element Is Enabled ${CREATE_NEW_NAMESPACE} timeout=30
Click Element ${CREATE_NEW_NAMESPACE}
Wait Until Element Is Enabled ${NAMESPACE_LABEL} timeout=30
Input Text ${NAMESPACE_LABEL} autom2
Wait Until Element Is Enabled ${NAMESPACE_VALUE} timeout=30
Input Text ${NAMESPACE_VALUE} http://uri.suomi.fi/datamodel/ns/autom1/
Wait Until Page Contains ${namespace_in_use} timeout=30
Wait Until Element Is Enabled ${CANCEL_NAMESPACE_CREATION} timeout=30
Click Element ${CANCEL_NAMESPACE_CREATION}
Wait Until Element Is Enabled ${CANCEL_SEARCH_NAMESPACE} timeout=30
Click Element ${CANCEL_SEARCH_NAMESPACE}
Save Model
Wait Until Page Contains http://uri.suomi.fi/datamodel/ns/autom1/ timeout=30
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept uusiluokka10
Save Class
Wait Until Element Is Enabled //*[contains(@id,'Uusiluokka10_tabset_link')] timeout=30
Add Class Rooli ${NAMESPACE_1}
Sleep 2
Confirm All Properties For Class And Save
Wait Until Page Contains Element //*[contains(@id,'Rooli_tabset_link')] timeout=30
Log To Console Class "Rooli" added
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
219. Export class in different formats
[Documentation] Create new profile and class.
... Check that export for class is succesfull in all formats.
[Tags] regression test tietomallit 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Page Contains Testiluokka timeout=30
Log To Console Class "Testiluokka" added without referencing concept
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_JSON_LD} timeout=30
Click Element ${EXPORT_JSON_LD}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=application%2Fld%2Bjson&lang=fi&raw=true
Wait Until Page Contains "@id" : "autom:Testiluokka", timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Sleep 1
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_Turtle} timeout=30
Click Element ${EXPORT_Turtle}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=text%2Fturtle&lang=fi&raw=true
Wait Until Page Contains "Testiluokka"@fi timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_RDF} timeout=30
Click Element ${EXPORT_RDF}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=application%2Frdf%2Bxml&lang=fi&raw=true
Wait Until Page Contains xmlns:autom="http://uri.suomi.fi/datamodel/ns/autom#" timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_XML} timeout=30
Click Element ${EXPORT_XML}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=application%2Fxml&lang=fi&raw=true
Wait Until Page Contains sawsdl:modelReference="http://uri.suomi.fi/datamodel/ns/autom#Testiluokka"> timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_JSON_Schema} timeout=30
Click Element ${EXPORT_JSON_Schema}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=application%2Fschema%2Bjson&lang=fi&raw=true
Wait Until Page Contains "id":"http://uri.suomi.fi/datamodel/ns/autom#Testiluokka.jschema", timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Sleep 1
Wait Until Page Contains Element ${EXPORT_CLASS_DDL} timeout=30
Click Element ${EXPORT_CLASS_DDL}
Wait Until Element Is Visible ${EXPORT_JSON_LD_Context} timeout=30
Click Element ${EXPORT_JSON_LD_Context}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportResource?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom%23Testiluokka&content-type=application%2Fld%2Bjson%2Bcontext&lang=fi&raw=true
Wait Until Page Contains "@context":{ timeout=30
Wait Until Page Contains "Testiluokka":"http://uri.suomi.fi/datamodel/ns/autom#Testiluokka" timeout=30
Page Should Not Contain {"errorMessage":"Not found"}
Page Should Not Contain Whitelabel Error Page
Close Window
Sleep 1
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
220. Deactivate class and export class in JSON Schema format
[Documentation] Create new profile and class.
... Deactivate class and check that deactivated class is not used in JSON Schema generation.
[Tags] regression tietomallit 200 test
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Wait Until Element Is Enabled ${DEACTIVATED_CHECKBOX} timeout=30
Click Element ${DEACTIVATED_CHECKBOX}
Save Class
Sleep 5
Wait Until Page Contains Testiluokka timeout=30
Wait Until Page Contains Deaktivoitu timeout=30
Wait Until Page Contains Kyllä timeout=30
Log To Console Class "Testiluokka" deactivated
Sleep 1
Wait Until Page Contains Element ${EXPORT_MODEL_DDL} timeout=30
Click Element ${EXPORT_MODEL_DDL}
Wait Until Element Is Visible ${EXPORT_MODEL_JSON_Schema} timeout=30
Click Element ${EXPORT_MODEL_JSON_Schema}
Select Window url=${DATA_VOCABULARIES_ENVIRONMENT_URL}datamodel-api/api/v1/exportModel?graph=http%3A%2F%2Furi.suomi.fi%2Fdatamodel%2Fns%2Fautom&content-type=application%2Fschema%2Bjson&lang=fi&raw=true
Page Should Not Contain "@id":"http://uri.suomi.fi/datamodel/ns/autom#Testiluokka"
Page Should Not Contain Whitelabel Error Page
Page Should Not Contain {"errorMessage":"Not found"}
Close Window
Select Window title=${ENVIRONMENT_IDENTIFIER} - Tietomallit
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
221. Create namespace with certain prefix
[Documentation] Create new profile and create new namespace. Check that namespace URI is set
... correctly with certain prefix. Add two classes.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Wait Until Element Is Enabled ${IMPORT_NAMESPACE} timeout=30
Click Element ${IMPORT_NAMESPACE}
Wait Until Element Is Enabled ${CREATE_NEW_NAMESPACE} timeout=30
Click Element ${CREATE_NEW_NAMESPACE}
Wait Until Element Is Enabled ${NAMESPACE_PREFIX} timeout=30
Input Text ${NAMESPACE_PREFIX} httpv
Wait Until Page Contains http://www.w3.org/2011/http# timeout=30
Wait Until Page Contains Element ${NAMESPACE_PREFIX} timeout=30
Input Text ${NAMESPACE_PREFIX} rdf
Wait Until Page Contains http://www.w3.org/1999/02/22-rdf-syntax-ns# timeout=30
Wait Until Element Is Enabled ${CANCEL_NAMESPACE_CREATION} timeout=30
Click Element ${CANCEL_NAMESPACE_CREATION}
Wait Until Element Is Enabled ${CREATE_NEW_NAMESPACE} timeout=30
Click Element ${CREATE_NEW_NAMESPACE}
Wait Until Page Contains Element ${NAMESPACE_VALUE} timeout=30
Input Text ${NAMESPACE_PREFIX} iow
Wait Until Page Contains http://uri.suomi.fi/datamodel/ns/iow# timeout=30
Wait Until Element Is Enabled ${NAMESPACE_LABEL} timeout=30
Input Text ${NAMESPACE_LABEL} namesapce_iow
Wait Until Element Is Enabled ${NAMESPACE_CREATE} timeout=30
Click Element ${NAMESPACE_CREATE}
Save Model
Wait Until Page Contains http://uri.suomi.fi/datamodel/ns/iow# timeout=30
Wait Until Page Contains namesapce_iow timeout=30
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept uusiluokka10
Save Class
Wait Until Page Contains Element //*[contains(@id,'Uusiluokka10_tabset_link')] timeout=30
Add Class Rooli ${NAMESPACE_1}
Sleep 2
Confirm All Properties For Class And Save
Wait Until Page Contains Element //*[contains(@id,'Rooli_tabset_link')] timeout=30
Log To Console Class "Rooli" added
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
222. Change ID for class and predicate
[Documentation] Create new profile, class, attribute and association.
... Check that changing ID for class, attribute and association is successful. YTI-821.
[Tags] regression tietomallit 200 test
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Testiluokka
Save Class
Wait Until Page Contains Testiluokka timeout=30
Log To Console Class "Testiluokka" added without referencing concept
Select And Edit Class Testiluokka
Wait Until Element Is Enabled ${CLASS_ID} timeout=60
Input Text ${CLASS_ID} Testiluokka_123
Sleep 3
Save Class
Wait Until Page Contains Element //*[contains(text(), "autom:Testiluokka_123")] timeout=60
Create New Attribute testiattribuutti
Select And Edit Predicate ${ATTRIBUTE_TAB} testiattribuutti
Wait Until Element Is Enabled ${PREDICATE_ID} timeout=60
Input Text ${PREDICATE_ID} testiattribuutti_123
Sleep 3
Save Predicate
Wait Until Page Contains Element //*[contains(text(), "autom:testiattribuutti_123")] timeout=60
Create new association testiassosiaatio
Select And Edit Predicate ${ASSOCIATION_TAB} testiassosiaatio
Wait Until Element Is Enabled ${PREDICATE_ID} timeout=60
Input Text ${PREDICATE_ID} testiassosiaatio_123
Sleep 3
Save Predicate
Wait Until Page Contains Element //*[contains(text(), "autom:testiassosiaatio_123")]
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
223. Add property pairs
[Documentation] Create new profile and class. Add three new attributes for class and
... add property pairs for attribute. Delete one attribute and check that removed attribute
... can not be added as property pair.
[Tags] regression tietomallit test 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept Vertailuluokka1
Add Property For Class testi arvo
Sleep 1
Add Property For Class max arvo
Sleep 1
Add Property For Class min arvo
Sleep 1
Add Property Pair ${PROPERTY_EQUALS_BTN} autom#maxarvo
Add Property Pair ${PROPERTY_LESS_THAN_BTN} autom#maxarvo
Add Property Pair ${PROPERTY_LESS_THAN_OR_EQUALS_BTN} autom#maxarvo
Wait Until Element Is Enabled id=class_property_TestiArvo_accordion_button timeout=60
Click Element id=class_property_TestiArvo_accordion_button
Wait Until Element Is Enabled //*[contains(text(), "Poista attribuutti")]
Click Element //*[contains(text(), "Poista attribuutti")]
Wait Until Element Is Enabled id=class_property_MinArvo_accordion_button timeout=60
Click Element id=class_property_MinArvo_accordion_button
Wait Until Element Is Enabled ${PROPERTY_DISJOINT_BTN} timeout=30
Click Element ${PROPERTY_DISJOINT_BTN}
Page Should Not Contain Element //*[contains(@id,'autom#testiarvo_search_result_link')] timeout=30
Wait Until Element Is Enabled //*[contains(@id,'autom#maxarvo_search_result_link')] timeout=30
Click Element //*[contains(@id,'autom#maxarvo_search_result_link')]
Wait Until Element Is Enabled //*[contains(text(), "Käytä attribuuttia")]
Click Element //*[contains(text(), "Käytä attribuuttia")]
Sleep 1
Save Class
Wait Until Element Is Enabled //*[contains(text(), "Min arvo")] timeout=30
Click Element //*[contains(text(), "Min arvo")]
Wait Until Page Contains Pienempi kuin timeout=30
Wait Until Page Contains Eri kuin timeout=30
Wait Until Page Contains Yhtä kuin timeout=30
Wait Until Page Contains Pienempi tai yhtä suuri kuin timeout=30
Wait Until Page Contains Element //*[contains(text(), "autom:maxarvo")] timeout=30
Wait Until Page Contains Element //*[contains(@id,'Vertailuluokka1_tabset_link')] timeout=60
Go Back To Data Vocabularies Frontpage
[Teardown] Delete profile ${MODEL_1}
224. Add equivalent class from URN namespace
[Documentation] Create new profile and create urn namespace. Add equivalent class from URN namespace for
... class and check that equivalent class is displayed correctly. YTI-732.
[Tags] regression test tietomallit 200
[Setup] Test Case Setup ${TEST_ADMIN_ID} ${TEST_ADMIN_NAME}
Create Profile ${MODEL_1} ${PREFIX_1}
Go Back To Data Vocabularies Frontpage
Select And Edit Profile ${MODEL_1}
Import Namespace Julkishallinnon tietokomponentit
Create New Namespace testi urn urn:testurn:testi urn1
Save Model
Select Model Tab ${MODEL_DATA_TAB}
Create New Class Without Referencing Concept uusiluokka10
Save Class
Wait Until Element Is Enabled //*[contains(@id,'Uusiluokka10_tabset_link')] timeout=30
Select And Edit Class Uusiluokka10
Wait Until Element Is Enabled //input[contains(@id,"equivalentClass")] timeout=30
Input Text //input[contains(@id,"equivalentClass")] urn1:esimerkki
Save Class
Wait Until Page Contains Vastaavat luokat timeout=30
Wait Until Page Contains urn1:esimerkki timeout=30