Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] After using get-control Browser, AUT hangs
[SOLVED] After using get-control Browser, AUT hangs [message #1710307] Mon, 05 October 2015 19:46 Go to next message
Eclipse UserFriend
Hello,

I am using this piece of code:

get-menu "Help/Welcome" | click
with [get-view "Anypoint Studio Welcome Page" | get-control Browser] {
get-object | invoke evaluate "document.getElementById('sidebar-link-create').click();"
}
get-window "New project"| get-button Ok | click

Everything is working fine until the click action (javascript line ) is processed. That click opens the "New project" windows but nothing happens. I mean, RCCPT seems to be processing but never finishs. I have to kill the AUT.

I am wondering if I have to call a specific function to retrieve the AUT control from the browser.

Regards,

Agustín.

[Updated on: Wed, 21 October 2015 21:10] by Moderator

Re: After using get-control Browser, AUT hangs [message #1710472 is a reply to message #1710307] Tue, 06 October 2015 23:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Agustin,

Please let me try to reproduce it on our side.
We have an example RCP Browser application, but it would be better if I can do it using your AUT, is is possible?

Kins regards,
Ulyana.
Re: After using get-control Browser, AUT hangs [message #1710548 is a reply to message #1710472] Wed, 07 October 2015 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ulyana,

Yes, you can download out AUT from:

https://www.mulesoft.com/platform/studio


This is the test:

get-menu "Help/Welcome" | click
with [get-view "Anypoint Studio Welcome Page" | get-control Browser] {
get-object | invoke evaluate "document.getElementById('sidebar-link-create').click();"
}
get-window "New project"| get-button Ok | click

Regards.

Agustin
Re: After using get-control Browser, AUT hangs [message #1710759 is a reply to message #1710548] Fri, 09 October 2015 00:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Agustin,

I've successfully reproduced the behaviour.
Escalating the issue to our dev team, will let you know once I have a reply from them.

Kind regards,
Ulyana.
Re: After using get-control Browser, AUT hangs [message #1711098 is a reply to message #1710759] Mon, 12 October 2015 21:02 Go to previous messageGo to next message
Eclipse UserFriend
Perfect,

Please let me know if there are any news.

Kind regards,
Agustin
Re: After using get-control Browser, AUT hangs [message #1712124 is a reply to message #1711098] Wed, 21 October 2015 08:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Agustin,

Could you please try the following RCPTT build: https://hudson.eclipse.org/rcptt/job/rcptt-all-gerrit/1013/artifact/repository/full/target/products/

And modify your code to add -noResult argument:

get-menu "Help/Welcome" | click
with [get-view "Anypoint Studio Welcome Page" | get-control Browser] {
get-object | invoke evaluate "document.getElementById('sidebar-link-create').click();" -noResult
}

with [get-window "New Mule Project"] {
get-group "" | get-editbox -after [get-label "Project Name:"] | set-text asd
get-button Finish | click
}

Kind regards,
Ulyana.
Re: After using get-control Browser, AUT hangs [message #1712168 is a reply to message #1712124] Wed, 21 October 2015 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ulyana,

It has worked perfectly. Smile. Will you included this fix in your next release?. When is the next rcptt release?. Do you recommend to use this build ?

Thanks a lot!.

Agustin Celentano
Re: After using get-control Browser, AUT hangs [message #1712205 is a reply to message #1712168] Wed, 21 October 2015 21:09 Go to previous message
Eclipse UserFriend
Hi Augustin,

Yes, the fix will be included in 2.0.2 release which will be 1st of November.
It will be also merged into master shortly and will be available in 2.1.0 nightly builds.

Kind regards,
Ulyana.
Previous Topic:Do you know if in RCP TT exists something like javadoc ?
Next Topic:How to get details when injected plugin is not found
Goto Forum:
  


Current Time: Fri Jun 13 19:31:39 EDT 2025

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

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

Back to the top