@@ -10,8 +10,10 @@ Test Setup Initialize and Start OpenSCD
10
10
Test Teardown Make screenshot and Stop OpenSCD
11
11
12
12
*** 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
15
17
16
18
*** Keywords ***
17
19
Execute SCL Auto Alignment
@@ -24,10 +26,17 @@ Execute SCL Auto Alignment
24
26
Wait for dialog is closed
25
27
Close Menu
26
28
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
+
27
36
Check X/Y Coordinates
28
37
[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 }
31
40
32
41
*** Test Cases ***
33
42
TestCase004-01
@@ -44,7 +53,9 @@ TestCase004-01
44
53
Execute SCL Auto Alignment Sub1
45
54
46
55
Select Tab Single Line Diagram
56
+ Select SLD Substation ${substation1 }
47
57
Check X/Y Coordinates ${substation1VoltageLevel } 36 10
58
+ Select SLD Substation ${substation3 }
48
59
Check X/Y Coordinates ${substation3VoltageLevel } 0 0
49
60
50
61
TestCase004-02
@@ -61,6 +72,8 @@ TestCase004-02
61
72
Execute SCL Auto Alignment Sub1 Sub3
62
73
63
74
Select Tab Single Line Diagram
75
+ Select SLD Substation ${substation1 }
64
76
Check X/Y Coordinates ${substation1VoltageLevel } 36 10
77
+ Select SLD Substation ${substation3 }
65
78
Check X/Y Coordinates ${substation3VoltageLevel } 12 8
66
79
0 commit comments