Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » wait-until-eclipse-is-ready isn't waiting properly in some scenario
wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701594] Tue, 14 July 2015 10:46 Go to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
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
restart-aut 

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
Re: wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701599 is a reply to message #1701594] Tue, 14 July 2015 11:16 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Jeevan,

Just in case: isn't this code placed inside a procedure?
Because AUT-restart doesn't work properly from inside a procedures.

Kind regards,
Ulyana.
Re: wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701604 is a reply to message #1701599] Tue, 14 July 2015 11:48 Go to previous messageGo to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Yes, I need some environment variable in this. The code I have given above is inside this
let [val edk "ABC_link "]
[val p2datashare "DEF_link"]	 {
// Code given above
}

Is there any other way to get the variables?
Re: wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701608 is a reply to message #1701604] Tue, 14 July 2015 12:22 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Jeevan,

I'm afraid you need to split your procedure to leave AUT restart in a Test Case script outside the procedure block.

Kind regards,
Ulyana.
Re: wait-until-eclipse-is-ready isn't waiting properly in some scenario [message #1701609 is a reply to message #1701608] Tue, 14 July 2015 12:35 Go to previous message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi Ulyana,
I will try to split this test case, but there are a number of scenario which that is not practically possible. I need both variables and restart. How shall I do that?
Please let me know.
Is this a bug in the current RCPTT which will be fixed some time sooner?
Thank you
Jeevan
Previous Topic:How to edit global time limit?
Next Topic:[Not an Issue] Test cases runs correctly on IDE but fails on the test runner
Goto Forum:
  


Current Time: Fri Apr 26 20:49:48 GMT 2024

Powered by FUDForum. Page generated in 0.03189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top