5
5
*** Settings ***
6
6
Documentation Basic test cases for opening and saving SCL files to/from Local File and CoMPAS.
7
7
Resource ./include/general-compas.robot
8
+ Resource include/general-compas.robot
8
9
9
10
Test Setup Initialize and Start OpenSCD
10
11
Test Teardown Make screenshot and Stop OpenSCD
11
12
12
13
*** Test Cases ***
13
14
TestCase001-01
14
15
[Documentation] Open project from Local File
15
- Set Test Variable ${sclname } MiniGrid
16
- Set Test Variable ${scltype } SCD
17
-
18
16
Open Menu Open project
19
- Open local file ${ sclname } ${ scltype }
17
+ Open local file MiniGrid SCD
20
18
21
19
Select Tab Substation
22
20
Get Text ${substation-editor-selector } section > h1:has-text("Sub1")
23
21
24
22
TestCase001-02
25
23
[Documentation] Open project from Local File and Add to CoMPAS
26
- Set Test Variable ${sclname } MiniGrid
27
- Set Test Variable ${scltype } SCD
28
-
29
24
Open Menu Open project
30
- Open local file ${ sclname } ${ scltype }
25
+ Open local file MiniGrid SCD
31
26
32
27
Set Test Variable ${sclname } ${TEST NAME }
33
28
Set Test Variable ${scltype } CID
@@ -41,11 +36,8 @@ TestCase001-02
41
36
TestCase001-03
42
37
[Documentation] Open project from CoMPAS
43
38
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
44
- Set Test Variable ${sclname } MiniGrid
45
- Set Test Variable ${scltype } SCD
46
-
47
39
Open Menu Open project
48
- Open local file ${ sclname } ${ scltype }
40
+ Open local file MiniGrid SCD
49
41
50
42
Set Test Variable ${sclname } ${TEST NAME }
51
43
Set Test Variable ${scltype } CID
@@ -65,11 +57,8 @@ TestCase001-03
65
57
TestCase001-04
66
58
[Documentation] Open project from CoMPAS and Save to Local File
67
59
# First we need to add a project to CoMPAS to be able to open it from CoMPAS.
68
- Set Test Variable ${sclname } MiniGrid
69
- Set Test Variable ${scltype } SCD
70
-
71
60
Open Menu Open project
72
- Open local file ${ sclname } ${ scltype }
61
+ Open local file MiniGrid SCD
73
62
74
63
Set Test Variable ${sclname } ${TEST NAME }
75
64
Set Test Variable ${scltype } CID
@@ -81,13 +70,43 @@ TestCase001-04
81
70
Save to local file ${sclname } ${scltype }
82
71
83
72
TestCase001-05
73
+ [Documentation] Save a existing project from CoMPAS as new project
74
+ # First we need to add a project to CoMPAS to be able to open it from CoMPAS.
75
+ Open Menu Open project
76
+ Open local file MiniGrid SCD
77
+
78
+ Set Test Variable ${sclname } ${TEST NAME }
79
+ Set Test Variable ${scltype } CID
80
+
81
+ Open Menu Save project
82
+ Add to CoMPAS MiniGrid ${sclname } ${scltype } 1.0.0
83
+
84
+ Open Menu Save project as
85
+ Save as to CoMPAS ${sclname } -${current-date } -1.0.0 ${sclname } -as ${scltype } 1.0.0
86
+
87
+ TestCase001-06
88
+ [Documentation] Save local project as new version to existing project in CoMPAS
89
+ # First we need to add a project to CoMPAS to be able to open it from CoMPAS.
90
+ Open Menu Open project
91
+ Open local file MiniGrid SCD
92
+
93
+ Set Test Variable ${sclname } ${TEST NAME }
94
+ Set Test Variable ${scltype } CID
95
+
96
+ Open Menu Save project
97
+ Add to CoMPAS MiniGrid ${sclname } ${scltype } 1.0.0
98
+
99
+ Open Menu Open project
100
+ Open local file MiniGrid SCD
101
+
102
+ Open Menu Save as version
103
+ Save version to CoMPAS MINOR ${sclname } ${scltype } 1.1.0
104
+
105
+ TestCase001-10
84
106
[Documentation] Trying saving local file to CoMPAS with invalid name
85
107
# First we will open the local file to be saved.
86
- Set Test Variable ${sclname } MiniGrid
87
- Set Test Variable ${scltype } SCD
88
-
89
108
Open Menu Open project
90
- Open local file ${ sclname } ${ scltype }
109
+ Open local file MiniGrid SCD
91
110
92
111
# Try saving the file with a invalid name
93
112
Set Test Variable ${sclname } invalid/*name
@@ -107,4 +126,3 @@ TestCase001-05
107
126
# Check if the expected error message is found
108
127
Set Test Variable ${secondaryMessage } ApplicationError: Name is not a correct name to be used later as filename. (CORE-8000) (400)
109
128
Check CoMPAS Error ${secondaryMessage }
110
-
0 commit comments