blob: 86bb9d293f0b03272659306c0f716b60fa39db17 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _d8d2kKyFEeqylZAj0d4Xnw,_rNkUAMEwEeqjcPTfvO5d8Q
Element-Name: LaunchShortcutDebug
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _azpG8MEqEeqjcPTfvO5d8Q
Save-Time: 6/1/21, 9:33 AM
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/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-group "Model file:" | get-button "Browse..." | click -metaKeys ""
get-window "Select the model file" | get-table | select "test.xmi - test" | double-click
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 ""
}
get-button Apply | click -metaKeys ""
get-button Debug | click -metaKeys ""
}
with [get-view Variables | get-tree] {
select "Variables" | double-click
get-property "getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getText()" | equals Variables | verify-true
get-property "getItems().TreeItem[0].getItems().length" | equals 2 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals myParam | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getItems().length" | equals 0 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals myVariable1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getItems().length" | equals 0 | verify-true
}
get-button "Step Into (F5)" | click -metaKeys ""
with [get-view "Package Explorer"] {
click
with [get-button "Link with Editor"] {
click -metaKeys ""
click -metaKeys ""
}
}
get-view Variables | get-tree | select Variables | double-click
with [get-view "Package Explorer" | get-tree] {
get-property "selection[0].path[0]" | equals test | verify-true
get-property "selection[0].path[1]" | equals src | verify-true
get-property "selection[0].path[2]" | equals test | verify-true
get-property "selection[0].path[3]" | equals "otherModule.mtl" | verify-true
}
with [get-view Variables | get-tree] {
get-property "getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getText()" | equals Variables | verify-true
get-property "getItems().TreeItem[0].getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals myParam | verify-true
}
get-button "Step Return (F7)" | click -metaKeys ""
with [get-view "Package Explorer"] {
click
with [get-button "Link with Editor"] {
click -metaKeys ""
click -metaKeys ""
}
}
with [get-view "Package Explorer" | get-tree] {
get-property "selection[0].path[0]" | equals test | verify-true
get-property "selection[0].path[1]" | equals src | verify-true
get-property "selection[0].path[2]" | equals test | verify-true
get-property "selection[0].path[3]" | equals "test.mtl" | verify-true
}
with [get-view Variables | get-tree] {
get-property "getItems().length" | equals 1 | verify-true
get-property "getItems().TreeItem[0].getText()" | equals Variables | verify-true
get-property "getItems().TreeItem[0].getItems().length" | equals 2 | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[0].getText()" | equals myParam | verify-true
get-property "getItems().TreeItem[0].getItems().TreeItem[1].getText()" | equals myVariable1 | verify-true
}
with [get-view Debug] {
click
get-tree | select "test.mtl [Acceleo 4]" | key-type Del
}
get-window "Terminate and Remove" | get-button Yes | click -metaKeys ""
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-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" | key-type Del
get-window "Confirm Launch Configuration Deletion" | get-button Delete | click -metaKeys ""
get-button Close | click -metaKeys ""
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--