Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 4 user interface testing with SWTBot
Eclipse 4 user interface testing with SWTBot [message #986756] Wed, 21 November 2012 14:45 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Did someone already used SWTBot to test Eclipse 4 applications? Any special setup required or should it just work out of the box?
Re: Eclipse 4 user interface testing with SWTBot [message #987286 is a reply to message #986756] Sun, 25 November 2012 17:24 Go to previous messageGo to next message
Eclipse UserFriend
I remember Mickael Istria opened a thread about this and I was able to dig it up. Not sure if it is much of help.
http://www.eclipse.org/forums/index.php/mv/msg/368846/899578/#msg_899578
Re: Eclipse 4 user interface testing with SWTBot [message #987601 is a reply to message #987286] Tue, 27 November 2012 10:08 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Thanks. I try to follow up on this with Mickael.
Re: Eclipse 4 user interface testing with SWTBot [message #987603 is a reply to message #987286] Tue, 27 November 2012 10:10 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Thanks Sopot. Looks like SWTBot does currently not support Eclipse 4.

Bug 385527
Re: Eclipse 4 user interface testing with SWTBot [message #992459 is a reply to message #986756] Fri, 21 December 2012 17:30 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi Lars, Sopot,

SWTBot works just fine on SWT 4.x. It's good enough with application
using the compatibility layer (we use it for future versions on JBoss
Tools, based on 4.2.x, and expeiment no issue).
A few corner cases are known but I don't consider them as blocking. They
have there bugzilla entries and won't be forgotten.

But I'm currently trying to work on the most critical one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=391802
I can't have the test application to run the tests. Actually, I can't
have any pure E4 application to run any test, I don't think it's related
to SWTBot.

Is there something special to know to run automated tests in E4? I'm
wondering whether this is possible or not.

Cheers,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Eclipse 4 user interface testing with SWTBot [message #994062 is a reply to message #992459] Wed, 26 December 2012 09:36 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Addendum: I'm speaking here about PDE tests inside IDE. It seems like the "Junit Test Plugin" lauch configuration fails to run tests when the target application is based on the E4 application model.
See comments and example on https://bugs.eclipse.org/bugs/show_bug.cgi?id=391802

Did anyone successfully run a test case on an E4 application from PDE?
Re: Eclipse 4 user interface testing with SWTBot [message #996964 is a reply to message #986756] Thu, 03 January 2013 09:50 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Using SWTBot to test an Eclipse 4 applications with PDE is blocked by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296599
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Eclipse 4 user interface testing with SWTBot [message #997087 is a reply to message #996964] Thu, 03 January 2013 15:20 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 01/03/2013 10:50 AM, Mickael Istria wrote:
> Using SWTBot to test an Eclipse 4 applications with PDE is blocked by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=296599

Also FYI, I've successfully run a (dummy) SWTBot test against a (dummy)
Eclipse4-based application with Tycho.

So I think that SWTBot may have some minor troubles with Eclipse 4, but
it works the same way it works for Eclipse 3 applications.

I now think that the big issue to fix is 296599 in PDE.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Eclipse 4 user interface testing with SWTBot [message #997094 is a reply to message #997087] Thu, 03 January 2013 15:49 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

@Mickael can you document, e.g. via a blog entry, how to run SWTBot against Eclipse4 with Tycho? Would be nice to know how to do this.
Previous Topic:How to set/modify the style of the application window
Next Topic:Injection of multiple service instances
Goto Forum:
  


Current Time: Thu Mar 28 23:04:48 GMT 2024

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

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

Back to the top