Skip to content

Commit 4397c57

Browse files
author
Dennis Labordus
committed
Add extra test.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 0ed56fb commit 4397c57

File tree

5 files changed

+34
-6
lines changed

5 files changed

+34
-6
lines changed

integration-testing/TestSuite001-basic-compas.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ TestCase001-05
104104
Close Menu
105105

106106
# Check if the expected error message is found
107-
Set Test Variable ${secondaryMessage} Name is not a correct name to be used later as filename. (CORE-8000) (400)
107+
Set Test Variable ${secondaryMessage} ApplicationError: Name is not a correct name to be used later as filename. (CORE-8000) (400)
108108
Check CoMPAS Error ${secondaryMessage}
109109

integration-testing/TestSuite003-cim-mapping.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ TestCase003-02
4141
Close Menu
4242

4343
# Check if the expected error message is found
44-
Set Test Variable ${secondaryMessage} Invalid name used for this cim data file. (CORE-8000) (400)
44+
Set Test Variable ${secondaryMessage} ApplicationError: Invalid name used for this cim data file. (CORE-8000) (400)
4545
Check CoMPAS Error ${secondaryMessage}
4646

integration-testing/TestSuite004-auto-alignment.robot

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,19 @@ TestCase004-02
7777
Select SLD Substation ${substation3}
7878
Check X/Y Coordinates ${substation3VoltageLevel} 12 10
7979

80+
TestCase004-03
81+
[Documentation] Failing SCL Auto Alignment with incompleet configuration
82+
Set Test Variable ${sclname} Incompleet_Substation
83+
Set Test Variable ${scltype} SCD
84+
85+
Enable Extension Single Line Diagram
86+
Enable Extension Auto Align SLD
87+
88+
Open Menu Open project
89+
Open local file ${sclname} ${scltype}
90+
91+
Execute SCL Auto Alignment Substation 1
92+
93+
# Check if the expected error message is found
94+
Set Test Variable ${secondaryMessage} ServerError: Unknown exception occurred. (CORE-9999) (500)
95+
Check CoMPAS Error ${secondaryMessage}

integration-testing/include/general-compas.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Open from CoMPAS
1919
Wait for dialog is closed
2020
Close Menu
2121
# check if the title (filename) changed to the new expected one.
22-
Check Title Filename ${sclname}-${current-date}-${expectedVersion} ${scltype}
22+
Check Title Filename ${name}-${current-date}-${expectedVersion} ${type}
2323

2424
Add to CoMPAS
2525
[Arguments] ${initialValue} ${name} ${type} ${expectedVersion}
@@ -31,7 +31,7 @@ Add to CoMPAS
3131
Wait for dialog is closed
3232
Close Menu
3333
# check if the title (filename) changed to the new expected one.
34-
Check Title Filename ${sclname}-${current-date}-${expectedVersion} ${scltype}
34+
Check Title Filename ${name}-${current-date}-${expectedVersion} ${type}
3535

3636
Update in CoMPAS
3737
[Arguments] ${changeType} ${name} ${type} ${expectedVersion}
@@ -40,7 +40,7 @@ Update in CoMPAS
4040
Wait for dialog is closed
4141
Close Menu
4242
# check if the title (filename) changed to the new expected one.
43-
Check Title Filename ${sclname}-${current-date}-${expectedVersion} ${scltype}
43+
Check Title Filename ${name}-${current-date}-${expectedVersion} ${type}
4444

4545
Change Websockets setting
4646
[Arguments] ${checked}
@@ -57,4 +57,4 @@ Change Websockets setting
5757
Check CoMPAS Error
5858
[Arguments] ${secondaryMessage}
5959
Set Test Variable ${primaryMessage} Error communicating with CoMPAS Ecosystem
60-
Check Log ${primaryMessage} ApplicationError: ${secondaryMessage}
60+
Check Log ${primaryMessage} ${secondaryMessage}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<SCL xmlns="http://www.iec.ch/61850/2003/SCL" version="2007" revision="B" release="4">
3+
<Header id="project"/>
4+
<Substation name="Substation 1">
5+
<VoltageLevel name="Voltage 110kV" nomFreq="50" numPhases="3">
6+
<Voltage unit="V" multiplier="k">110</Voltage>
7+
<Bay name="Bay 1">
8+
<ConductingEquipment name="CB1" type="CBR"/>
9+
</Bay>
10+
</VoltageLevel>
11+
</Substation>
12+
</SCL>

0 commit comments

Comments
 (0)