blob: dc249c0a30c0ef110737206202bb55d079add1db [file] [log] [blame]
--- Q7 testcase ---
Format-Version: 1.0
Q7-vendor: www.xored.com/q7
Context-Type: com.xored.q7.ecl.context
Element-Name: GraphityAUTSetup
Element-Type: context
Element-Version: 2.0
Id: _MneVoIF5EeKinvTtsw86yA
Save-Time: 2/28/13 2:59 PM
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
Content-Type: text/ecl
Entry-Name: .ecl.context
try {
get-view Applications | get-tree | get-item Graphiti
} -catch {
get-view Applications | get-button "New..." | click
set-dialog-result Folder "C:\\Users\\bamboo\\Downloads\\Graphiti\\eclipse"
with [get-window "New Application Under Test"] {
get-button "Browse..." | click
get-editbox -after [get-label "Name:"] | set-text Graphiti
get-button Finish | click
}
}
//add if not present
/*if [get-view Applications | get-tree | get-item Graphity] {
get-view Applications | get-button "New..." | click
set-dialog-result Folder "C:\\Users\\bamboo\\Downloads\\Graphity\\eclipse"
with [get-window "New Application Under Test"] {
get-button "Browse..." | click
get-editbox -after [get-label "Name:"] | set-text Graphity
get-button Finish | click
}
}*/
//launch if not launched
if [get-view Applications | get-tree | get-item Graphiti | get-property "getData().getClassName()" -raw | eq "com.xored.q7.ui.launching.aut.AutElement"] {
get-view Applications | get-tree | select Graphiti | get-menu Run | click
}
------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--