Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Avoid dependencies for headless tests
Avoid dependencies for headless tests [message #659672] Tue, 15 March 2011 08:05 Go to next message
Ovidio Mallo is currently offline Ovidio MalloFriend
Messages: 35
Registered: July 2009
Member
Hi all,

when trying to run SWTBot tests headlessly as described e.g. in

http://richardadams606blog.blogspot.com/2010/04/headless-swt bot-testing-for-eclipse-rcp.html

it seems that I have to include the following features in my product in order to
get the tests running:
org.eclipse.platform
org.eclipse.pde
org.eclipse.jdt

Thereby, those features introduce a lot of new dependencies and lead to the
problem that the plugins included in those features contribute UI elements like
menu and toolbar actions to the RCP application under test which is undesirable in
our case.

I wanted to ask whether those features are strictly necessary when running SWTBot
tests headlessly or whether it can be avoided to include all of them?

Thanks in advance for any help!

Kind regards,
Ovidio
Re: Avoid dependencies for headless tests [message #659677 is a reply to message #659672] Tue, 15 March 2011 08:35 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,

You'd rather create your own test feature that includes SWTBot, its deps, and your tests. You'll have better control on the bundles you include.
See http://www.bonitasoft.org/blog/eclipse/swtbot-my-new-friend/

HTH

--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Avoid dependencies for headless tests [message #660113 is a reply to message #659677] Wed, 16 March 2011 21:30 Go to previous message
Ovidio Mallo is currently offline Ovidio MalloFriend
Messages: 35
Registered: July 2009
Member
Mickael,

thanks a lot for the hint! Creating a separate feature which lists the
individual bundles or even creating a product definition which directly
lists the required bundles indeed works fine.

Thanks again for your help & kind regards,
Ovidio


On 15.03.2011 09:35, Mickael Istria wrote:
> Hi,
>
> You'd rather create your own test feature that includes SWTBot, its
> deps, and your tests. You'll have better control on the bundles you
> include.
> See http://www.bonitasoft.org/blog/eclipse/swtbot-my-new-friend/
>
> HTH
>
Previous Topic:Next button remains disabled
Next Topic:delete the topic
Goto Forum:
  


Current Time: Fri Apr 19 01:27:17 GMT 2024

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

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

Back to the top