[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] swtbottestapplication in Tycho

Thx for the hint. We´re running Bamboo as a service (which is allowed to interact with desktop, but I´m not sure if that is sufficient) on a Windows Server 2008 R2 machine.

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@eclipse.org] On Behalf Of Mickael Istria
Sent: Wednesday, September 12, 2012 9:43 AM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] swtbottestapplication in Tycho

 

On 09/12/2012 09:39 AM, Hansen, Alexander wrote:

Hi!

 

I´m struggling with letting my SWTBot Tests run on our (bamboo) CI Server. Currently I´m a little confused on how this should be done. The tests run well launched from maven on the dev machine, but running on the CI server causes a TimeOutException with “The shell 'Save Resource' did not activate.” – so it seems to me, no Shell is available for the tests.
 
I read about the swtbottestapplication used to launch from ANT – as far as I figured out the tycho-surefire-plugin uses an other application to start the tests? Should I even care about this? I also find a screenshot from SWTBot in my project that is entirely white.


Hi
,

You don't need the swtbottestapplication to run SWTBot test. The surefire test application in Tycho works perfectly.
Instead, when running SWTBot tests on CI, you should verify that you CI server is able to run correctly UI applications. If you're on Linux, it means verifying you have a DISPLAY set to a valid X session for your tests, and that you have a Window Manager started.
http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_Jenkins

HTH

--

Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets