Skip to content

Commit ad60b8c

Browse files
author
Dennis Labordus
committed
Fix the Robot Test for SLD Auto Alignment.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 8c2accc commit ad60b8c

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

integration-testing/TestSuite004-auto-alignment.robot

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

1212
*** Variables ***
13-
${substation1VoltageLevel} _af9a4ae3-ba2e-4c34-8e47-5af894ee20f4>S1 110kV
14-
${substation3VoltageLevel} _974565b1-ac55-4901-9f48-afc7ef5486df>S3 110kV
13+
${substation1} _af9a4ae3-ba2e-4c34-8e47-5af894ee20f4
14+
${substation1VoltageLevel} ${substation1}>S1 110kV
15+
${substation3} _974565b1-ac55-4901-9f48-afc7ef5486df
16+
${substation3VoltageLevel} ${substation3}>S3 110kV
1517

1618
*** Keywords ***
1719
Execute SCL Auto Alignment
@@ -24,10 +26,17 @@ Execute SCL Auto Alignment
2426
Wait for dialog is closed
2527
Close Menu
2628

29+
Select SLD Substation
30+
[Arguments] ${id}
31+
# 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"]
33+
# Now we can select the correct substation.
34+
Click single-line-diagram-plugin mwc-select[id="substationSelector"] > mwc-list-item[value="${id}"]
35+
2736
Check X/Y Coordinates
2837
[Arguments] ${id} ${x} ${y}
29-
Get Attribute single-line-diagram-plugin svg > g[id="${id}"] sxy:x == ${x}
30-
Get Attribute single-line-diagram-plugin svg > g[id="${id}"] sxy:y == ${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}
3140

3241
*** Test Cases ***
3342
TestCase004-01
@@ -44,7 +53,9 @@ TestCase004-01
4453
Execute SCL Auto Alignment Sub1
4554

4655
Select Tab Single Line Diagram
56+
Select SLD Substation ${substation1}
4757
Check X/Y Coordinates ${substation1VoltageLevel} 36 10
58+
Select SLD Substation ${substation3}
4859
Check X/Y Coordinates ${substation3VoltageLevel} 0 0
4960

5061
TestCase004-02
@@ -61,6 +72,8 @@ TestCase004-02
6172
Execute SCL Auto Alignment Sub1 Sub3
6273

6374
Select Tab Single Line Diagram
75+
Select SLD Substation ${substation1}
6476
Check X/Y Coordinates ${substation1VoltageLevel} 36 10
77+
Select SLD Substation ${substation3}
6578
Check X/Y Coordinates ${substation3VoltageLevel} 12 8
6679

0 commit comments

Comments
 (0)