Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot with Tycho in Travis CI(Getting WidgetNotFoundException)
icon5.gif  SWTBot with Tycho in Travis CI [message #1227226] Fri, 03 January 2014 22:53 Go to next message
Satyagraha 1956 is currently offline Satyagraha 1956Friend
Messages: 8
Registered: January 2010
Junior Member
I have recently extended my Tycho-managed Eclipse plugin project with SWTBot UI tests, and it all works fine locally (under Win7-64). However, when run in Travis-CI it seems no widgets are found at all, i.e. the above exception is thrown. I was wondering if anyone has a working configuration for this setup?

For information:
- the codebase: https://github.com/satyagraha/gfm_viewer/tree/release/1.8.1
- there are plugin.tests and plugin.ui.tests modules, the latter is the problem
- the failing Travis-CI run: https://travis-ci.org/satyagraha/gfm_viewer/builds/16341002 (you may need a GitHub sign-in to see details)

There is a log message Xlib: extension "RANDR" missing on display ":99.0" however a post suggests this is immaterial.

Thanks for any input!
Re: SWTBot with Tycho in Travis CI [message #1227392 is a reply to message #1227226] Sat, 04 January 2014 10:57 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Can you try your build on a local Linux machine (or VM) ?
Do you know which window manager is used by Travis? Some are known to
have bugs, it's recommended to use metacity.
http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_Jenkins
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTBot with Tycho in Travis CI [message #1227458 is a reply to message #1227392] Sat, 04 January 2014 15:32 Go to previous messageGo to next message
Satyagraha 1956 is currently offline Satyagraha 1956Friend
Messages: 8
Registered: January 2010
Junior Member
Thanks, that was the problem.

Here is a working Travis configuration file: https://github.com/satyagraha/gfm_viewer/blob/release/1.8.1/.travis.yml

Cheers!
Re: SWTBot with Tycho in Travis CI [message #1228020 is a reply to message #1227458] Mon, 06 January 2014 08:05 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Cool,

It would be nice if you could add a note about Travis on the wiki,
explaining this issue and linking to this travis configuration file. It
will for sure help some other people in the future.
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:How to test native dialog withswtbot
Next Topic:Load saved workspace preferences at SWTBot test launch
Goto Forum:
  


Current Time: Thu Apr 25 15:40:36 GMT 2024

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

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

Back to the top