wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701594] |
Tue, 14 July 2015 06:46  |
Eclipse User |
|
|
|
Consider this ECL as example
get-menu "Help/Install New Software..." | click
with [get-window Install] {
get-link "Find more software by working with the <a>\"Available Software Sites\"</a> preferences." | click-link
with [get-window Preferences] {
get-editbox -after [get-label "Available Software Sites"] | set-focus
get-button "Add..." | click
with [get-window "Add Site"] {
with [get-editbox -after [get-label "Location:"]] {
set-text $edk
}
get-button OK | click
}
get-button OK | click
}
get-button "Add..." | click
with [get-window "Add Repository"] {
with [get-editbox -after [get-label "Location:"]] {
set-text $p2DataApp
}
get-button OK | click
}
get-button "Select All" | click
get-button "Next >" | click
}
get-window Install | get-tree | get-item "DataApp Feature" | get-property caption | equals "DataApp Feature"
| verify-true
with [get-window Install] {
get-tree | select "DataApp Feature"
get-button "Next >" | click
get-button "I accept the terms of the license agreement" | click
get-button Finish | click
}
get-window "Security Warning" | get-button OK | click
get-window "Software Updates" | get-button Yes | click
wait-until-eclipse-is-ready
get-menu "File/New..." | click
get-window New | get-tree | get-item DataApp | get-property caption | equals DataApp | verify-true
get-window New | get-button Cancel | click
get-about-menu | click
get-window "About MyApp" | get-button "Installation Details" | click
get-window "About MyApp" | get-window "MyApp Installation Details" | get-tree | get-item "DataApp Feature"
| get-property caption | equals "DataApp Feature" | verify-true
with [get-window "About MyApp" | get-window "MyApp Installation Details"] {
get-tree | select "DataApp Feature"
get-button "Uninstall..." | click
}
get-window Uninstall | get-button Finish | click
get-window "Software Updates" | get-button Yes | click
wait-until-eclipse-is-ready
get-menu "File/New..." | click
get-window New | get-tree | get-item DataApp | get-property caption | equals DataApp | verify-false
get-window New | get-button Cancel | click
A part of this code will be
wait-until-eclipse-is-ready
get-menu "File/New..." | click
It throws an error here as it is unable to find the menu. This is because it is trying to do this even before my AUT properly restarts. I tried simple restart using
and it works fine. But in this scenario even if I put restart-aut, it isn't working. This condition is happening when I test switch workspace also.
How can I solve this, kindly help me.
Thanks
Jeevan
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04713 seconds