Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP UI Testing(having trouble running the example on eclipsepedia)
RAP UI Testing [message #1112549] Thu, 19 September 2013 21:34 Go to next message
Barys Dubauski is currently offline Barys Dubauski
Messages: 33
Registered: July 2009
Member
We are looking at various technologies to arrange automated testing of end user UI for our RAP based eclipse application. It looks like Selenium is one of the first choices picked for web ui testing and I located http://wiki.eclipse.org/RapUITesting and I tried to follow its directions.

I was able to setup everything as explained on the wiki but the actual test execution fails due to timeout during an attempt to locate a button widget by its ID. I tried using different web browsers (Firefox 17.0.9 - firebug, IE8 - dev tools) to inspect the DOM tree produced by RAP and I couldn't find any DOM element with 'id' attribute set on it.

I ran my application with and without -Dorg.eclipse.rwt.enableUITests=true argument with the same outcome.

I even tried http://rap.eclipsesource.com/controlsdemo/controls to inspect its DOM and still all 'id' attributes were empty.

Am I looking at the wrong places? Did RAP implementation changed in 2.0 to no longer set 'id' attributes?

P.S. I searched older threads and it looks like in the past RAP produced DOM elements representing widgets which have 'id' attributes with values "w1", "w2", etc.
P.P.S. We are on RAP 2.0 at the moment.
Re: RAP UI Testing [message #1112799 is a reply to message #1112549] Fri, 20 September 2013 07:18 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1816
Registered: July 2009
Senior Member
Hi,
please note that the argument was renamed to
"org.eclipse.rap.rwt.enableUITests" (added "rap" segment) in RAP 2.0.
This should fix your problem.
Best,
Ivan

On 9/20/2013 12:34 AM, Barys Dubauski wrote:
> We are looking at various technologies to arrange automated testing of
> end user UI for our RAP based eclipse application. It looks like
> Selenium is one of the first choices picked for web ui testing and I
> located http://wiki.eclipse.org/RapUITesting and I tried to follow its
> directions.
>
> I was able to setup everything as explained on the wiki but the actual
> test execution fails due to timeout during an attempt to locate a
> button widget by its ID. I tried using different web browsers (Firefox
> 17.0.9 - firebug, IE8 - dev tools) to inspect the DOM tree produced by
> RAP and I couldn't find any DOM element with 'id' attribute set on it.
> I ran my application with and without
> -Dorg.eclipse.rwt.enableUITests=true argument with the same outcome.
> I even tried http://rap.eclipsesource.com/controlsdemo/controls to
> inspect its DOM and still all 'id' attributes were empty.
> Am I looking at the wrong places? Did RAP implementation changed in
> 2.0 to no longer set 'id' attributes?
> P.S. I searched older threads and it looks like in the past RAP
> produced DOM elements representing widgets which have 'id' attributes
> with values "w1", "w2", etc.
> P.P.S. We are on RAP 2.0 at the moment.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP UI Testing [message #1113222 is a reply to message #1112799] Fri, 20 September 2013 20:38 Go to previous messageGo to next message
Barys Dubauski is currently offline Barys Dubauski
Messages: 33
Registered: July 2009
Member
Thank you, Ivan! That was it. Also thank you for fixing the wiki Smile
Re: RAP UI Testing [message #1122265 is a reply to message #1113222] Tue, 01 October 2013 11:37 Go to previous message
Damian Piecz is currently offline Damian Piecz
Messages: 1
Registered: October 2013
Junior Member
Hi i was trying to add to RAP 2.0, an AOP, for setting this custom widgets id automatic ( like in this example... thomaskratz.blogspot.com/2012/08/eclipse-rap-ui-testing-contd.html)
did someone using it like that? or any other suggestion how to add change this "w1" to some change this to something more user friendly ? I made a test runner with nodejs ( jasmine-node, webdriverjs selenium ) and have some existing app i want to make this scenario faster sometimes adding custom id don't work..,.
Previous Topic:Size Perspectives
Next Topic:Error: AnimationRenderer failed: Cannot read property 'length' of null
Goto Forum:
  


Current Time: Fri Sep 19 15:56:08 GMT 2014

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

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