Skip to main content


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 DubauskiFriend
Messages: 38
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 FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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 DubauskiFriend
Messages: 38
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 PieczFriend
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:Fileupload Incubator for RAP 2.2
Next Topic:tableviewer can not be scolled by mouse, but keyboard
Goto Forum:
  


Current Time: Tue Apr 16 19:44:16 GMT 2024

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

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

Back to the top