Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Running SWTBot with RCP4.2(Automation Tests)
Running SWTBot with RCP4.2 [message #991016] Mon, 17 December 2012 02:40 Go to next message
Eugene Brobby is currently offline Eugene BrobbyFriend
Messages: 2
Registered: December 2012
Junior Member
I need you guys to get behind me on this one. I need constructive comments and help with SWTBot. I wrote a simple RCP4.2 application as a plugin and then a feature.

Anyway, I ran the application as a Product (Selected the .product extension). I created a separate SWTBot Test Plugin to test this (i.e. a separate project) and in the run config I selected this file. I wrote a simple assertTrue to see if the test will run. The application gets called but the test never runs. Something is blocking the test. There isn't clarity on this framework's ability to support RCP4.

I would appreciate a very clear and concise set of steps, tested for RCP4 specifically (please, not the theoretical "It should work"), assuming RCP4 is supported. I found out that the recording feature of SWTBot it broken and its a shame because it was recommended to me because of that. I would also appreciate info on testing Nebula components which appear not to be on the SWTBot list.

Thanking you all for your patience in advance.
Re: Running SWTBot with RCP4.2 [message #991048 is a reply to message #991016] Mon, 17 December 2012 07:58 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 771
Registered: July 2009
Location: Grenoble, France
Senior Member
On 12/17/2012 05:07 AM, Eugene Brobby wrote:
> I need you guys to get behind me on this one. I need constructive
> comments and help with SWTBot. I wrote a simple RCP4.2 application as a
> plugin and then a feature.
> Anyway, I ran the application as a Product (Selected the .product
> extension). I created a separate SWTBot Test Plugin to test this (i.e. a
> separate project) and in the run config I selected this file. I wrote a
> simple assertTrue to see if the test will run. The application gets
> called but the test never runs. Something is blocking the test.

I think that could be related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=391802

> There isn't clarity on this framework's ability to support RCP4.

This bugs dependencies show current limitation with 4.2-based
application https://bugs.eclipse.org/bugs/show_bug.cgi?id=385527 ,
mainly because of API changes
- Some menus can't be resolved
- The Toolbar doesn't work
- The framework cannot start an application that does not use the
compatibiltiy layer.

> I would appreciate a very clear and concise set of steps, tested for
> RCP4 specifically (please, not the theoretical "It should work"),
> assuming RCP4 is supported.

There are no such steps. Eclipse 4 is not yet fully supported. SWT
concepts are still working, but some Eclipse ones are broken.
We need more contributors to work on this.


> I found out that the recording feature of
> SWTBot it broken and its a shame because it was recommended to me
> because of that.

The recording feature has never worked actually. But I'm currently
working on a new one. I'll keep the community in touch (hopefully by the
end of the week).

> I would also appreciate info on testing Nebula
> components which appear not to be on the SWTBot list.

SWTBot does not have yet support for Nebula specific components. Some
Nebula widgets directly rely on SWT widget, so they don't need
additional stuff in SWTBot. For the other ones, once again,
contributions are hightly welcome

The project is very open to feedback and contributions. So if you can
find some time to fix some of the blocking issues, it will help the
project to release an Eclipse4-friendly version.
http://wiki.eclipse.org/SWTBot/Contributing

Cheers.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:'Click' at given coordinates inside a RCP View
Next Topic:Null control ids in SWTBot
Goto Forum:
  


Current Time: Mon Dec 22 17:06:13 GMT 2014

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

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