| --- Q7 testcase --- |
| Format-Version: 1.0 |
| Q7-vendor: www.xored.com/q7 |
| Contexts: _qy4DwH_5EeK9FdRInrmHdQ,_DyPzwH_sEeKzh4ksbY4F-Q,_m4508IrjEeKFictDEDHejA |
| Element-Name: QS-2148_When cell editor opens modal dialog, Q7 records a script which cannot be replayed |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: http://jira4.xored.com/browse/QS-2148 |
| Id: _GEBEIIGDEeKinvTtsw86yA |
| Save-Time: 7/15/13 5:08 PM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Customer has a table with cell editors with a ... button, which opens modal dialog. |
| Recording cell change produces script like this (very roughly, don't have an original script): |
| |
| ... | activate-cell-edit |
| ... | get-button "..." | click |
| ... | apply-cell-edit |
| |
| get-window "Select whatever" | get-tree | select item |
| get-window "Select whatever" | get-button OK | click |
| So execution fails to apply cell edit as there is an active modal dialog |
| ------=_.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 [get-item Q7Project | get-item ActivityDiagram -index 1] | double-click |
| get-editor ActivityDiagram | get-button Record | click |
| wait 50 |
| //exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args "-r \"C:\\Users\\bamboo\\Documents\\SikuliTests\\CellEditing.sikuli\" -s" -ignoreExitCode |
| //exec-process -command "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"" -args [substitute-variables "-r \"${resource_loc:sikuli/CellEditing.sikuli}\" -s"] -ignoreExitCode |
| exec-process "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"""-r" [substitute-variables "\"${resource_loc:sikuli/CellEditing.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-tree] {\n" |
| + " select \"UML/Incoming\" | activate-cell-edit -column 1\n" |
| + " get-button \"...\" | click\n" |
| + " }\n}\n" |
| + "with [get-window \"Incoming -- <Opaque Action> OpaqueAction1\"] {\n" |
| + " get-table | select \"<Control Flow> ControlFlow1\"\n" |
| + " get-button Add | click\n" |
| + " get-button OK | click\n}\n" |
| + "get-view Properties | get-tree | apply-cell-edit\n" | verify-true |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |