| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _qy4DwH_5EeK9FdRInrmHdQ,_DyPzwH_sEeKzh4ksbY4F-Q,_zhzhEIrhEeKFictDEDHejA |
| Element-Name: QS-1130_Cannot assert gef-selection in equipment build |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _E-qyAIYrEeKI6L5Mk5N07A |
| Save-Time: 7/15/13 5:04 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Q7 Explorer" | get-tree | select [get-item Q7Project | get-item ActivityDiagram -index 1] | double-click |
| get-editor ActivityDiagram | get-button Record | click |
| |
| get-aut "Papyrus" | eval{ |
| |
| with [get-editor "model.di"] { |
| with [get-diagram -index 1 | get-edit-part -name Activity1] { |
| with [get-edit-part -name Activity1 | get-edit-part |
| -className CustomActivityActivityContentCompartmentEditPart] { |
| mouse-move 337 208 -height 736 -width 857 |
| with [get-edit-part -name OpaqueAction2 | get-edit-part -name OpaqueAction2] { |
| mouse-move 14 20 button1 -height 58 -width 140 |
| mouse-press 14 20 button1 -height 58 -width 140 |
| mouse-release 14 20 button1 524288 -height 58 -width 140 |
| } |
| } |
| |
| } |
| |
| } |
| } |
| |
| get-window "Q7 Control Panel.*" |
| | get-button "Switch to Assertion Mode" | click |
| wait 50 |
| //exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args "-r \"C:\\Users\\bamboo\\Documents\\SikuliTests\\SelectGEF.sikuli\" -s" -ignoreExitCode |
| //exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args [substitute-variables "-r \"${resource_loc:sikuli/SelectGEF.sikuli}\" -s"] -ignoreExitCode |
| exec-process "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"""-r" [substitute-variables "\"${resource_loc:sikuli/SelectGEF.sikuli}\""]"-s"-ignoreExitCode |
| |
| with [get-window "Q7 Control Panel.*"] { |
| |
| with [get-window Assertion] { |
| get-tree | select "DiagramItem \\(Basic Properties\\)" | get-item "DiagramItem \\(Basic Properties\\)/selected" |
| | check |
| get-button Add | click |
| } |
| get-button Record | click |
| } |
| get-window "Q7 Control Panel.*" | get-editbox | get-property text |
| | equals "with [get-editor \"model.di\" | get-diagram -index 1 | get-edit-part -name Activity1 | get-edit-part -name Activity1 \n" |
| + " | get-edit-part -className CustomActivityActivityContentCompartmentEditPart] {\n" |
| + " mouse-move 337 207 -height 736 -width 857\n" |
| + " with [get-edit-part -name OpaqueAction2 | get-edit-part -name OpaqueAction2] {\n" |
| + " mouse-move 14 20 button1 -height 58 -width 140\n" |
| + " mouse-press 14 20 button1 -height 58 -width 140\n" |
| + " mouse-release 14 20 button1 524288 -height 58 -width 140\n" |
| + " }\n}\n" |
| + "get-editor \"model.di\" | get-diagram -index 1 | get-edit-part -name Activity1 | get-edit-part -name Activity1 \n" |
| + " | get-edit-part -className CustomActivityActivityContentCompartmentEditPart | get-edit-part -name OpaqueAction2 \n" |
| + " | get-property selected | equals true | verify-true" | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |