blob: fd14cd44ac7ae78b168e4d585941144f34706968 [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Contexts: _Lv5cQH_rEeKzh4ksbY4F-Q,_ffbh0IFzEeKinvTtsw86yA,_bulVQO3CEeKKgP-A1FQsXg
Element-Name: QS-2761_Inconsistent 'with' behavior
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _1a3qEe2-EeKKgP-A1FQsXg
Save-Time: 7/22/13 2:00 PM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
get-view "Q7 Explorer" | get-tree | select "MyProject/TC1" | double-click
get-editor TC1 | get-button Record | click
get-window "Q7 Control Panel.*" | minimize
get-aut selfQ7 | eval{ get-view "Q7 Explorer" | get-tree | select "Q7Project/TestCase" | double-click
with [get-editor TestCase | get-section Description] {
click
get-text-viewer | type-text aaabbbccc
}}
exec-process "\"C:\\Program Files\\Sikuli X\\Sikuli-IDE.exe\"""-r" [substitute-variables "\"${resource_loc:sikuli/QS-2761.sikuli}\""]"-s"-ignoreExitCode
get-aut selfQ7 | eval{
get-editor TestCase | get-section Description | get-text-viewer| click
}
with [get-window "Q7 Control Panel.*"] {
with [get-window Assertion] {
with [get-tree] {
select "Control \\(Advanced Properties\\)"
| get-item "Control \\(Advanced Properties\\)/getCaret\\(\\)/getLocation\\(\\)/x" | check
get-item "Control \\(Advanced Properties\\)/getCaret\\(\\)/getLocation\\(\\)/y" | check
}
get-button Add | click
}
get-tab-folder | key-type ESC
}
get-aut selfQ7 | eval{
get-editor TestCase | get-section Description | get-text-viewer| click
}
get-window "Q7 Control Panel.*" | get-text-viewer | get-property "getText()"
| equals "get-view \"Q7 Explorer\" | get-tree | select \"Q7Project/TestCase\" | double-click\n"
+ "with [get-editor TestCase | get-section Description | get-text-viewer] {\n"
+ " type-text aaabbbccc\n"
+ " set-caret-pos 1 6\n}\n"
+ "with [get-editor TestCase | get-section Description | get-text-viewer] {\n"
+ " get-property \"getCaret().getLocation().x\" | equals 34 | verify-true\n"
+ " get-property \"getCaret().getLocation().y\" | equals 0 | verify-true\n}\n"
+ "get-editor TestCase | get-section Description | get-text-viewer | select-range 1 1 1 10" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--