Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot tests under buckminster
SWTBot tests under buckminster [message #536448] Fri, 28 May 2010 06:02 Go to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
Hi

I'm trying to convert our builds from pde build to buckminster. But
there's a problem with the SWTBot tests. It's not possible to launch
these tests with the buckminster junit or launch command since
buckminster doesn't know the swtbot launcher type. For this to work one
should be able to install part of the swtbot infrastructure into
buckminster. In particular, the code containing the launcher should be
included in buckminster.

Buckminster itself can launch junit tests in its headless mode only
since https://bugs.eclipse.org/bugs/show_bug.cgi?id=243293 was solved.
In order to launch junit tests headlessly the jdt team had to separate
some UI stuff from the rest
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=278844).

What's the situation in SWTBot? Is someone working on creating a
headless launcher? (I remember seeing a blog entry relating to this but
cannot find it anymore). Is it difficult to create my own headless
SWTBot launcher that I could install in buckminster?

Thanks for any hints/pointers
Peter
Re: SWTBot tests under buckminster [message #536455 is a reply to message #536448] Fri, 28 May 2010 06:36 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,
There is already a headless test launcher. Its id is org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion and it works in a similar way as the org.eclipse.test.uitestapplication.
This wiki page may be helpful: http://wiki.eclipse.org/SWTBot/Ant You'll probably find a link to the blog entry that interested you from the following page http://wiki.eclipse.org/SWTBot/Articles

HTH

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: SWTBot tests under buckminster [message #536459 is a reply to message #536455] Fri, 28 May 2010 06:57 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
Hi Mickael

Thanks for the info. I'm aware of the swtbottestapplication and how to
use it when launnching an eclipse instance. This is in fact what we are
currently using to run our swtbot tests.

The beauty of the buckminster junit, emma or launch commands is that you
can launch a "*.launch" configuration as you would do in the IDE. When
using buckminster headless, buckminster itself is the IDE and to launch
SWTBot tests, one obviously has to install swtbot first.

Now, the problem is that the launch type
org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig is included in
the plugin org.eclipse.swtbot.eclipse.ui with dependencies to ui stuff.
It is not usable in a headless buckminster. To solve a similar problem,
the JDT team has separated the ui stuff from the rest.

Peter


Mickael Istria schrieb:
> Hi,
> There is already a headless test launcher. Its id is
> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion and it
> works in a similar way as the org.eclipse.test.uitestapplication.
> This wiki page may be helpful: http://wiki.eclipse.org/SWTBot/Ant
> You'll probably find a link to the blog entry that interested you from
> the following page http://wiki.eclipse.org/SWTBot/Articles
>
> HTH
>
> --
> Mickael Istria - BonitaSoft S.A.
> http://www.bonitasoft.com/products/downloads.php
Re: SWTBot tests under buckminster [message #536463 is a reply to message #536459] Fri, 28 May 2010 07:51 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
Ok, I did not correctly understand your question, sorry ;)
I can't help you on that topic.

Cheers

Peter Kullmann a écrit :
> Hi Mickael
>
> Thanks for the info. I'm aware of the swtbottestapplication and how to
> use it when launnching an eclipse instance. This is in fact what we are
> currently using to run our swtbot tests.
>
> The beauty of the buckminster junit, emma or launch commands is that you
> can launch a "*.launch" configuration as you would do in the IDE. When
> using buckminster headless, buckminster itself is the IDE and to launch
> SWTBot tests, one obviously has to install swtbot first.
>
> Now, the problem is that the launch type
> org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig is included in
> the plugin org.eclipse.swtbot.eclipse.ui with dependencies to ui stuff.
> It is not usable in a headless buckminster. To solve a similar problem,
> the JDT team has separated the ui stuff from the rest.
>
> Peter
>
>
> Mickael Istria schrieb:
>> Hi,
>> There is already a headless test launcher. Its id is
>> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion and
>> it works in a similar way as the org.eclipse.test.uitestapplication.
>> This wiki page may be helpful: http://wiki.eclipse.org/SWTBot/Ant
>> You'll probably find a link to the blog entry that interested you from
>> the following page http://wiki.eclipse.org/SWTBot/Articles
>>
>> HTH
>>
>> --
>> Mickael Istria - BonitaSoft S.A.
>> http://www.bonitasoft.com/products/downloads.php


--

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: SWTBot tests under buckminster [message #536517 is a reply to message #536459] Fri, 28 May 2010 10:09 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi Peter,

SWTBot launcher merely launches tests in the non-ui thread.

If buckminister can already consume .launch files which can launch
pde-junit tests you are in luck!

PDE-JUnit launcher[0] has since 3.5 had a launch option[1] to do just this.

Tycho leverages this launch property[2] to launch tests in a non-ui thread.

You may try creating a launch config of type 'pde-junit' with the
run-in-ui-thread option turned off and see what mileage you get.

Let us know if that works well for you. I'm at best a noob with
buckminister. It'd be great if you could document any steps at
http://wiki.eclipse.org/SWTBot/Buckminister

Cheers!

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

[0] - http://goo.gl/gitF
[1] - http://goo.gl/X5Ke
[2] - http://goo.gl/uy8I

On 5/28/10 3:57 AM, Peter Kullmann wrote:
> Hi Mickael
>
> Thanks for the info. I'm aware of the swtbottestapplication and how to
> use it when launnching an eclipse instance. This is in fact what we are
> currently using to run our swtbot tests.
>
> The beauty of the buckminster junit, emma or launch commands is that you
> can launch a "*.launch" configuration as you would do in the IDE. When
> using buckminster headless, buckminster itself is the IDE and to launch
> SWTBot tests, one obviously has to install swtbot first.
>
> Now, the problem is that the launch type
> org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig is included in
> the plugin org.eclipse.swtbot.eclipse.ui with dependencies to ui stuff.
> It is not usable in a headless buckminster. To solve a similar problem,
> the JDT team has separated the ui stuff from the rest.
>
> Peter
>
>
> Mickael Istria schrieb:
>> Hi,
>> There is already a headless test launcher. Its id is
>> org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplica tion and
>> it works in a similar way as the org.eclipse.test.uitestapplication.
>> This wiki page may be helpful: http://wiki.eclipse.org/SWTBot/Ant
>> You'll probably find a link to the blog entry that interested you from
>> the following page http://wiki.eclipse.org/SWTBot/Articles
>>
>> HTH
>>
>> --
>> Mickael Istria - BonitaSoft S.A.
>> http://www.bonitasoft.com/products/downloads.php
Re: SWTBot tests under buckminster [message #537024 is a reply to message #536517] Tue, 01 June 2010 00:34 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi Peter,

I'd be curious to know if this solved your problem or made it worse!

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 5/28/10 7:39 PM, Ketan Padegaonkar wrote:
> Hi Peter,
>
> SWTBot launcher merely launches tests in the non-ui thread.
>
> If buckminister can already consume .launch files which can launch
> pde-junit tests you are in luck!
>
> PDE-JUnit launcher[0] has since 3.5 had a launch option[1] to do just this.
>
> Tycho leverages this launch property[2] to launch tests in a non-ui thread.
>
> You may try creating a launch config of type 'pde-junit' with the
> run-in-ui-thread option turned off and see what mileage you get.
>
> Let us know if that works well for you. I'm at best a noob with
> buckminister. It'd be great if you could document any steps at
> http://wiki.eclipse.org/SWTBot/Buckminister
>
> Cheers!
>
Re: SWTBot tests under buckminster [message #537320 is a reply to message #536448] Tue, 01 June 2010 19:32 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2498
Registered: July 2009
Senior Member
Did you look at the SWTBot presentation from EclipseCon 2010 - there it was demonstrated how to use SWTBot and Buckminster - "runs out of the box" was a comment that stuck with me.
Re: SWTBot tests under buckminster [message #538253 is a reply to message #537320] Mon, 07 June 2010 02:34 Go to previous messageGo to next message
speedracer  is currently offline speedracer
Messages: 19
Registered: August 2009
Junior Member
I can't find the link to the document of the presentation. I found only the pdf for eclipse con 2009 but not 2010
Where can I find the pdf document of the presentation of this year?
Re: SWTBot tests under buckminster [message #550653 is a reply to message #537024] Wed, 04 August 2010 01:04 Go to previous message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
Hi Ketan

The normal pde-junit launch works perfectly well with SWTBot and
buckminster. I also tried to launch with the buckminster emma command
and this worked as well. I am quite happy with the combination of
hudson, buckminster and SWTBot.

Peter


Ketan Padegaonkar schrieb:
> Hi Peter,
>
> I'd be curious to know if this solved your problem or made it worse!
>
Previous Topic:view the result in HTML format
Next Topic:Scroll in an editor
Goto Forum:
  


Current Time: Wed Jul 30 05:23:56 EDT 2014

Powered by FUDForum. Page generated in 0.02678 seconds