Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » metacity sometimes makes SWTBot tests fail in Jenkins
metacity sometimes makes SWTBot tests fail in Jenkins [message #1405974] Fri, 08 August 2014 17:05 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1751
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

in all my Jenkins job that use SWTBot I have a preliminary build step
executing

metacity --replace --sm-disable &

(The jobs also start Xvnc)

This is an old machine and so it's slow.

Sometimes, the log of the job shows something like

+ metacity --replace --sm-disable<main build steps>

or

+ metacity --replace<main build steps>

and NOT

+ metacity --replace --sm-disable
<main build steps>

Thus, it looks like metacity does not correctly start, and of course,
all SWTBot tests that require a Shell (e.g., accessing a menu) fail...

Has anyone experienced a similar behavior?
Or has anyone have suggestions to avoid such behavior?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Re: metacity sometimes makes SWTBot tests fail in Jenkins [message #1409577 is a reply to message #1405974] Mon, 18 August 2014 12:50 Go to previous messageGo to next message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 833
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

I think you can configure the .xsession of the Jenkins user to start a
window manager (can be metacity, or unity, or whatever known to work
well with SWT) as it starts a X server.
So just starting Xvnc would automatically start the window manager and
you can get rid of the step to start the window manager.

HTH
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: metacity sometimes makes SWTBot tests fail in Jenkins [message #1411121 is a reply to message #1409577] Fri, 22 August 2014 12:51 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1751
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 18/08/2014 14:50, Mickael Istria wrote:
> Hi,
>
> I think you can configure the .xsession of the Jenkins user to start a
> window manager (can be metacity, or unity, or whatever known to work
> well with SWT) as it starts a X server.
> So just starting Xvnc would automatically start the window manager and
> you can get rid of the step to start the window manager.
>
> HTH

Thanks for the suggestion, I'll investigate that and keep you posted.

cheers
LOrenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:Difference of click() in the test thread vs. wrapping its execution in syncExec()?
Next Topic:How to test NatTable using swtbot?
Goto Forum:
  


Current Time: Fri Nov 16 13:33:13 GMT 2018

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

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

Back to the top