| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _g1CYYY-hEeK_GsTYGlxpVQ,_ilbtEI-jEeK_GsTYGlxpVQ,_Xzr9sJCTEeKN_d0eVNGMgg |
| Element-Name: QS-500_Key events recorded against canvas, not diagram |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _5sb2QJCSEeKN_d0eVNGMgg |
| Save-Time: 7/15/13 6:00 PM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| For GEF/GMF events are recorded against canvas, but not diagram. |
| |
| with [get-editor DefaultName] { |
| with [get-diagram | get-edit-part 0] { |
| with [get-edit-part "2/0"] { mouse-move 13 7 button1 -height 17 -width 110 mouse-press 13 7 button1 -height 17 -width 110 mouse-release 13 7 button1 524288 -height 17 -width 110 } |
| with [get-edit-part "0/0"] { mouse-move 9 8 button1 -height 17 -width 110 mouse-press 9 8 button1 -height 17 -width 110 mouse-release 9 8 button1 524288 -height 17 -width 110 } |
| } |
| get-canvas -index 3 | key-type DEL |
| } |
| |
| It will be more correct to record key-type against diagram. |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| get-view "Q7 Explorer" | get-tree | select "Vozone/SO2" | double-click |
| get-editor SO2 | get-button Record | click |
| |
| //exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args [substitute-variables "-r \"${resource_loc:sikuli/DiagramKeyActions.sikuli}\" -s"] -ignoreExitCode |
| exec-process "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"""-r" [substitute-variables "\"${resource_loc:sikuli/DiagramKeyActions.sikuli}\""]"-s"-ignoreExitCode |
| |
| get-window "Q7 Control Panel.*" | get-button Stop | click |
| get-window "Q7 Control Panel.*" | get-editbox | get-property text |
| | contains "with [get-diagram]" | verify-true |
| get-window "Q7 Control Panel.*" | get-editbox | get-property text |
| | contains "with [get-canvas]" | verify-false |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |