-
Notifications
You must be signed in to change notification settings - Fork 3
/
Variables.test
114 lines (108 loc) · 5.43 KB
/
Variables.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _d8d2kKyFEeqylZAj0d4Xnw,_rNkUAMEwEeqjcPTfvO5d8Q
Element-Name: Variables
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _9cF08P1jEe6uiPAyHyMDHA
Runtime-Version: 2.5.4.202210020716
Save-Time: 4/18/24, 5:13 PM
Tags: fail
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Package Explorer" | get-tree | select test | get-menu -path "New/Other..." | click -metaKeys ""
with [get-window "Select a wizard"] {
get-tree | select "General/Folder"
get-button "Next >" | click -metaKeys ""
}
with [get-window "New Folder"] {
get-editbox -after [get-label "Folder name:"] | set-text generated
get-button Finish | click -metaKeys ""
}
get-view "Package Explorer" | get-tree | select "test/src/test/test.mtl" | double-click
get-editor "test.mtl" | get-left-ruler | get-ruler-column AnnotationColumn | double-click-ruler 11
get-view "Package Explorer" | get-tree | select "test/src/test/test.mtl" | get-menu
-path "Debug As/1 Debug Acceleo 4 generation" | click -metaKeys ""
with [get-window "Debug Configurations"] {
get-editbox -after [get-label "Create, manage, and run configurations"] | get-property text
| equals "Select a model file." | verify-true
get-group "Module file:" | get-editbox | get-property text | equals "/test/src/test/test.mtl" | verify-true
}
with [get-window "Debug Configurations"] {
get-group "Model file:" | get-button "Browse..." | click -metaKeys ""
get-window "Select the model file" | get-table | select "test.xmi - test" | double-click
}
get-window "Debug Configurations" | get-group "Model file:" | get-editbox | get-property text | equals "/test/test.xmi"
| verify-true
get-window "Debug Configurations" | get-editbox -after [get-label "Create, manage, and run configurations"]
| get-property text | equals "Select a destination folder." | verify-true
with [get-window "Debug Configurations"] {
get-group "Destination folder:" | get-button "Browse..." | click -metaKeys ""
with [get-window "Select the destination folder"] {
get-tree | select "test/generated"
get-button OK | click -metaKeys ""
}
}
with [get-window "Debug Configurations"] {
get-editbox -after [get-label "Create, manage, and run configurations"] | get-property text
| equals "Run and Debug Acceleo 4 generation" | verify-true
get-group "Destination folder:" | get-editbox | get-property text | equals "/test/generated" | verify-true
}
with [get-window "Debug Configurations"] {
get-button Apply | click -metaKeys ""
get-button Debug | click -metaKeys ""
}
get-view Debug | get-tree
| select "test.mtl [Acceleo 4]/Debug Adapter Target/Thread #.*/template myTemplate(ecore::EPackage)" -all
with [get-view Variables | get-tree | get-item -path "Variables/myVariable1Index"] {
get-property "getData().getName()" | equals myVariable1Index | verify-true
get-property "getData().getValue().getValueString()" | equals 1 | verify-true
}
with [get-view Variables | get-tree] {
with [get-item -path "Variables/myParam"] {
get-property "getData().getName()" | equals myParam | verify-true
get-property "getData().getValue().getValueString()" | equals anydsl | verify-true
}
with [get-item -path "Variables/myVariable1"] {
get-property "getData().getName()" | equals myVariable1 | verify-true
get-property "getData().getValue().getValueString()" | equals World | verify-true
}
with [get-item -path "Variables/blockOutput"] {
get-property "getItems().TreeItem[0].getData().getName()" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getData().getValue().getValueString()" | equals "some text" | verify-true
get-property "getItems().TreeItem[1].getData().getName()" | equals 2 | verify-true
get-property "getItems().TreeItem[1].getData().getValue().getValueString()" | equals World | verify-true
}
}
get-button "Resume (F8)" | click -metaKeys ""
with [get-view Variables | get-tree | get-item -path "Variables/myVariable1Index"] {
get-property "getData().getName()" | equals myVariable1Index | verify-true
get-property "getData().getValue().getValueString()" | equals 3 | verify-true
}
with [get-view Variables | get-tree] {
with [get-item -path "Variables/myParam"] {
get-property "getData().getName()" | equals myParam | verify-true
get-property "getData().getValue().getValueString()" | equals anydsl | verify-true
}
with [get-item -path "Variables/myVariable1"] {
get-property "getData().getName()" | equals myVariable1 | verify-true
get-property "getData().getValue().getValueString()" | equals NamedElement | verify-true
}
}
get-editor "test.mtl" | get-left-ruler | get-ruler-column AnnotationColumn | double-click-ruler 11
get-button "Resume (F8)" | click -metaKeys ""
get-view "Package Explorer" | get-tree | select "test/src/test/test.mtl" | get-menu
-path "Debug As/Debug Configurations..." | click -metaKeys ""
with [get-window "Debug Configurations"] {
get-tree | select "Acceleo 4/test.mtl" | get-menu -path Delete | click -metaKeys ""
get-window "Confirm Launch Configuration Deletion" | get-button Delete | click -metaKeys ""
get-button Close | click -metaKeys ""
}
with [get-view Debug] {
click
get-tree | select "<terminated><unknown>" | key-type Del
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--