Skip to content

Commit 7fd4326

Browse files
author
Dennis Labordus
committed
Updated OpenSCD and some Robot Tests.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 3227f81 commit 7fd4326

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

compas/docker-compose-basex.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ services:
144144
open-scd:
145145
labels:
146146
compas: true
147-
image: "lfenergy/compas-open-scd:v0.18.0.0"
147+
image: "lfenergy/compas-open-scd:v0.18.0.1"
148148
healthcheck:
149149
test: ["CMD", "curl", "-f", "http://localhost/"]
150150
interval: 30s

compas/docker-compose-postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ services:
151151
open-scd:
152152
labels:
153153
compas: true
154-
image: "lfenergy/compas-open-scd:v0.18.0.0"
154+
image: "lfenergy/compas-open-scd:v0.18.0.1"
155155
healthcheck:
156156
test: ["CMD", "curl", "-f", "http://localhost/"]
157157
interval: 30s

integration-testing/TestSuite002-versions-compas.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Resource ./include/general-compas.robot
99
Test Setup Initialize and Start OpenSCD
1010
Test Teardown Make screenshot and Stop OpenSCD
1111

12+
*** Variables ***
13+
# Variables of Selectors commonly used.
14+
${compas-versions-editor-selector} oscd-plugin932e8e83a469de68
15+
1216
*** Keywords ***
1317
Upload new version
1418
[Arguments] ${changeType} ${name} ${type}
@@ -42,6 +46,7 @@ Initialize Versions
4246
IF ${create-multiple-versions} == True
4347
Open Menu Save project
4448
Update in CoMPAS MAJOR ${sclname} ${scltype} 2.0.0
49+
Select Tab CoMPAS Versions
4550
Get Element Count ${compas-versions-editor-selector} mwc-list > mwc-check-list-item == 2
4651
END
4752

integration-testing/TestSuite004-auto-alignment.robot

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ Test Setup Initialize and Start OpenSCD
1010
Test Teardown Make screenshot and Stop OpenSCD
1111

1212
*** Variables ***
13-
${substation1} _af9a4ae3-ba2e-4c34-8e47-5af894ee20f4
14-
${substation1VoltageLevel} ${substation1}>S1 110kV
15-
${substation3} _974565b1-ac55-4901-9f48-afc7ef5486df
16-
${substation3VoltageLevel} ${substation3}>S3 110kV
13+
${single-line-diagram-selector} oscd-plugin631642fb644970bc
14+
15+
${substation1} _af9a4ae3-ba2e-4c34-8e47-5af894ee20f4
16+
${substation1VoltageLevel} ${substation1}>S1 110kV
17+
${substation3} _974565b1-ac55-4901-9f48-afc7ef5486df
18+
${substation3VoltageLevel} ${substation3}>S3 110kV
1719

1820
*** Keywords ***
1921
Execute SCL Auto Alignment
@@ -29,14 +31,14 @@ Execute SCL Auto Alignment
2931
Select SLD Substation
3032
[Arguments] ${id}
3133
# First click on the selectbox to open the dropdown box, to make the values visible.
32-
Click single-line-diagram-plugin mwc-select[id="substationSelector"]
34+
Click ${single-line-diagram-selector} mwc-select[id="substationSelector"]
3335
# Now we can select the correct substation.
34-
Click single-line-diagram-plugin mwc-select[id="substationSelector"] > mwc-list-item[value="${id}"]
36+
Click ${single-line-diagram-selector} mwc-select[id="substationSelector"] > mwc-list-item[value="${id}"]
3537

3638
Check X/Y Coordinates
3739
[Arguments] ${id} ${x} ${y}
38-
Get Attribute single-line-diagram-plugin svg g[id="${id}"] sxy:x == ${x}
39-
Get Attribute single-line-diagram-plugin svg g[id="${id}"] sxy:y == ${y}
40+
Get Attribute ${single-line-diagram-selector} svg g[id="${id}"] sxy:x == ${x}
41+
Get Attribute ${single-line-diagram-selector} svg g[id="${id}"] sxy:y == ${y}
4042

4143
*** Test Cases ***
4244
TestCase004-01

integration-testing/include/general-compas.robot

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ Documentation Generic variables and Keywords to work with the OpenSCD CoMPAS C
77
Resource ./general-config.robot
88
Resource ./general-openscd.robot
99

10-
*** Variables ***
11-
# Variables of Selectors commonly used.
12-
${compas-versions-editor-selector} compas-versions-plugin
13-
1410
*** Keywords ***
1511
Open from CoMPAS
1612
[Arguments] ${name} ${type} ${expectedVersion}

0 commit comments

Comments
 (0)