5
5
*** Settings ***
6
6
Documentation Basic test cases for opening and saving SCL files to/from Local File and CoMPAS.
7
7
Resource ./include/general-compas.robot
8
- Resource include/general-compas.robot
9
8
10
9
Test Setup Initialize and Start OpenSCD
11
10
Test Teardown Make screenshot and Stop OpenSCD
@@ -20,7 +19,7 @@ TestCase001-01
20
19
Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
21
20
22
21
TestCase001-02
23
- [Documentation] Open project from Local File and Add to CoMPAS
22
+ [Documentation] Open project from Local File and Add to CoMPAS (Rest)
24
23
Open Menu Open project
25
24
Open local file MiniGrid SCD
26
25
@@ -34,7 +33,7 @@ TestCase001-02
34
33
Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
35
34
36
35
TestCase001-03
37
- [Documentation] Open project from CoMPAS
36
+ [Documentation] Open project from CoMPAS (Rest)
38
37
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
39
38
Open Menu Open project
40
39
Open local file MiniGrid SCD
@@ -47,6 +46,7 @@ TestCase001-03
47
46
48
47
Close OpenSCD
49
48
Open OpenSCD and Login
49
+ Change Websockets setting False
50
50
51
51
Open Menu Open project
52
52
Open from CoMPAS ${sclname } ${scltype } 1.0.0
@@ -55,7 +55,7 @@ TestCase001-03
55
55
Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
56
56
57
57
TestCase001-04
58
- [Documentation] Open project from CoMPAS and Save to Local File
58
+ [Documentation] Open project from CoMPAS (Rest) and Save to Local File
59
59
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
60
60
Open Menu Open project
61
61
Open local file MiniGrid SCD
@@ -70,7 +70,7 @@ TestCase001-04
70
70
Save to local file ${sclname } ${scltype }
71
71
72
72
TestCase001-05
73
- [Documentation] Save a existing project from CoMPAS as new project
73
+ [Documentation] Save a existing project from CoMPAS (Rest) as new project
74
74
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
75
75
Open Menu Open project
76
76
Open local file MiniGrid SCD
@@ -85,7 +85,7 @@ TestCase001-05
85
85
Save as to CoMPAS ${sclname } -${current-date } -1.0.0 ${sclname } -as ${scltype } 1.0.0
86
86
87
87
TestCase001-06
88
- [Documentation] Save local project as new version to existing project in CoMPAS
88
+ [Documentation] Save local project as new version to existing project in CoMPAS (Rest)
89
89
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
90
90
Open Menu Open project
91
91
Open local file MiniGrid SCD
@@ -102,14 +102,14 @@ TestCase001-06
102
102
Open Menu Save as version
103
103
Save version to CoMPAS MINOR ${sclname } ${scltype } 1.1.0
104
104
105
- TestCase001-10
106
- [Documentation] Trying saving local file to CoMPAS with invalid name
105
+ TestCase001-11
106
+ [Documentation] Trying saving local file to CoMPAS (Rest) with invalid name
107
107
# First we will open the local file to be saved.
108
108
Open Menu Open project
109
109
Open local file MiniGrid SCD
110
110
111
111
# Try saving the file with a invalid name
112
- Set Test Variable ${sclname } invalid/*name
112
+ Set Test Variable ${sclname } ${ TEST NAME } - invalid/*name
113
113
Set Test Variable ${scltype } CID
114
114
115
115
Open Menu Save project
@@ -124,5 +124,69 @@ TestCase001-10
124
124
Close Menu
125
125
126
126
# Check if the expected error message is found
127
- Set Test Variable ${secondaryMessage } ApplicationError: Name is not a correct name to be used later as filename. (CORE-8000) (400)
127
+ Set Test Variable ${secondaryMessage } ApplicationError: Name is not a correct name to be used later as filename. (CORE-8000)
128
+ Check CoMPAS Error ${secondaryMessage }
129
+
130
+ TestCase001-51
131
+ [Documentation] Open project from Local File and Add to CoMPAS (Websocket)
132
+ Change Websockets setting True
133
+ Open Menu Open project
134
+ Open local file MiniGrid SCD
135
+
136
+ Set Test Variable ${sclname } ${TEST NAME }
137
+ Set Test Variable ${scltype } CID
138
+
139
+ Open Menu Save project
140
+ Add to CoMPAS MiniGrid ${sclname } ${scltype } 1.0.0
141
+
142
+ Select Tab Substation
143
+ Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
144
+
145
+ TestCase001-52
146
+ [Documentation] Open project from CoMPAS (Websocket)
147
+ # First we need to add a project to CoMPAS to be able to open it from CoMPAS.
148
+ Change Websockets setting True
149
+ Open Menu Open project
150
+ Open local file MiniGrid SCD
151
+
152
+ Set Test Variable ${sclname } ${TEST NAME }
153
+ Set Test Variable ${scltype } CID
154
+
155
+ Open Menu Save project
156
+ Add to CoMPAS MiniGrid ${sclname } ${scltype } 1.0.0
157
+
158
+ Close OpenSCD
159
+ Open OpenSCD and Login
160
+ Change Websockets setting True
161
+
162
+ Open Menu Open project
163
+ Open from CoMPAS ${sclname } ${scltype } 1.0.0
164
+
165
+ Select Tab Substation
166
+ Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
167
+
168
+ TestCase001-61
169
+ [Documentation] Trying saving local file to CoMPAS (Websocket) with invalid name
170
+ # First we will open the local file to be saved.
171
+ Change Websockets setting True
172
+ Open Menu Open project
173
+ Open local file MiniGrid SCD
174
+
175
+ # Try saving the file with a invalid name
176
+ Set Test Variable ${sclname } ${TEST NAME } -invalid/*name
177
+ Set Test Variable ${scltype } CID
178
+
179
+ Open Menu Save project
180
+ Get Text mwc-dialog#compas-save-dlg > compas-save mwc-textfield#name label > input == MiniGrid
181
+ Fill Text mwc-dialog#compas-save-dlg > compas-save mwc-textfield#name label > input ${sclname }
182
+ Click mwc-dialog#compas-save-dlg > compas-save compas-scltype-select mwc-select
183
+ Click mwc-dialog#compas-save-dlg > compas-save compas-scltype-select mwc-select > mwc-list-item[value="${scltype } "]
184
+ Click mwc-dialog#compas-save-dlg > mwc-button[slot="primaryAction"] > button
185
+ Wait until executed
186
+ Click mwc-dialog#compas-save-dlg > mwc-button[slot="secondaryAction"] > button
187
+ Wait for dialog is closed
188
+ Close Menu
189
+
190
+ # Check if the expected error message is found
191
+ Set Test Variable ${secondaryMessage } ApplicationError: Name is not a correct name to be used later as filename. (CORE-8000)
128
192
Check CoMPAS Error ${secondaryMessage }
0 commit comments