Skip to content

Commit e13da7c

Browse files
author
Rob Tjalma
authored
Merge pull request #63 from com-pas/nsdoc-loading
Update Docker Images to support NSDoc Loading + Added Validator Test
2 parents e0da717 + 5e4d809 commit e13da7c

File tree

6 files changed

+278
-6
lines changed

6 files changed

+278
-6
lines changed

RELEASE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ For information about CoMPAS go to this [site](https://com-pas.github.io/).
1010

1111
## Release notes
1212

13+
### Release 0.6.0
14+
15+
Next release for testing the CoMPAS System with all components.
16+
- [SCL Validator Service](https://github.com/com-pas/compas-scl-validator) (Version 0.1.1):
17+
- Validation using OCL Files;
18+
- Facilitate automatic loading of NSDoc Files in OpenSCD;
19+
- Updated libraries to the latest versions;
20+
- [OpenSCD CoMPAS Edition](https://github.com/com-pas/compas-open-scd) (Version 0.12.0.2):
21+
- Automatic loading of NSDoc Files from SCL Validator Service;
22+
- Added CoMPAS Validation using the SCL Validator Service;
23+
1324
### Release 0.5.0
1425

1526
Next release for testing the CoMPAS System with all components.
@@ -20,7 +31,7 @@ Next release for testing the CoMPAS System with all components.
2031
- [CIM Mapping Service](https://github.com/com-pas/compas-cim-mapping) (Version 0.8.3):
2132
- Updated libraries to the latest versions;
2233
- [OpenSCD CoMPAS Edition](https://github.com/com-pas/compas-open-scd) (Version 0.12.0.0):
23-
- See details in [Release notes](https://github.com/openscd/open-scd/releases/tag/v0.12.0)
34+
- See details in [Release notes](https://github.com/openscd/open-scd/releases/tag/v0.12.0);
2435

2536
### Release 0.3.0
2637

compas/docker-compose-basex.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ services:
111111
scl-validator:
112112
labels:
113113
compas: true
114-
image: "lfenergy/compas-scl-validator:0.1.0"
114+
image: "lfenergy/compas-scl-validator:0.1.1"
115115
ports:
116116
- "9093:8080"
117117
environment:
@@ -138,7 +138,7 @@ services:
138138
open-scd:
139139
labels:
140140
compas: true
141-
image: "lfenergy/compas-open-scd:v0.12.0.1"
141+
image: "lfenergy/compas-open-scd:v0.12.0.2"
142142
healthcheck:
143143
test: ["CMD", "curl", "-f", "http://localhost/"]
144144
interval: 30s

compas/docker-compose-postgresql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ services:
118118
scl-validator:
119119
labels:
120120
compas: true
121-
image: "lfenergy/compas-scl-validator:0.1.0"
121+
image: "lfenergy/compas-scl-validator:0.1.1"
122122
ports:
123123
- "9093:8080"
124124
environment:
@@ -145,7 +145,7 @@ services:
145145
open-scd:
146146
labels:
147147
compas: true
148-
image: "lfenergy/compas-open-scd:v0.12.0.1"
148+
image: "lfenergy/compas-open-scd:v0.12.0.2"
149149
healthcheck:
150150
test: ["CMD", "curl", "-f", "http://localhost/"]
151151
interval: 30s
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
*** Settings ***
6+
Documentation Basic test cases for executing the SCL Validator Service.
7+
Resource ./include/general-compas.robot
8+
9+
Test Setup Initialize and Start OpenSCD
10+
Test Teardown Make screenshot and Stop OpenSCD
11+
12+
*** Keywords ***
13+
Execute SCL Validator
14+
Open Menu Validate using OCL
15+
Wait until executed
16+
Close Menu
17+
18+
*** Test Cases ***
19+
TestCase005-01
20+
[Documentation] Execute the SCL Validator for a Simple Configuration.
21+
Set Test Variable ${sclname} SingleSubstation
22+
Set Test Variable ${scltype} SCD
23+
24+
Open Menu Open project
25+
Open local file ${sclname} ${scltype}
26+
27+
Execute SCL Validator
28+
29+
Open Menu View diagnostics
30+
Get Text mwc-dialog#diagnostic mwc-list-item:nth-child(4) == Validate using OCL
31+
Get Attribute mwc-dialog#diagnostic abbr:nth-child(6) title *= [SCD File] DataTypeTemplates section is mandatory (line 1)
32+
Get Element Count mwc-dialog#diagnostic abbr == 333

integration-testing/include/general-openscd.robot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,12 @@ Check Title Filename
9595
Get Text open-scd > mwc-drawer div#title == ${filename}.${scltype.lower()}
9696

9797
Wait for dialog is closed
98-
Wait For Function element => element.style.opacity==0 open-scd > mwc-circular-progress-four-color > div[role="progressbar"]
98+
Wait until executed
9999
Wait For Elements State ${dialog-selector} hidden
100100

101+
Wait until executed
102+
Wait For Function element => element.className.indexOf('mdc-circular-progress--closed') >= 0 open-scd > mwc-circular-progress-four-color > div[role="progressbar"] timeout=30s
103+
101104
Close Issues Snackbar
102105
${snackbar}= Get Element State mwc-snackbar#issue > mwc-icon-button[slot="dismiss"] > button
103106
IF ${snackbar} == 'visible'

0 commit comments

Comments
 (0)