It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Gui tests on xvfb, initialisation and cleanup

Hello,

I'm investigating Bamboo to build a standalone java desktop application, where I'm struggling is we have some component tests that test the GUI via Junit and FEST as part of the standard maven cycle.

When running on a server / build machine there is obviously no screen so we use Xvfb / a virtual frame buffer to provide a virtual one.  This needs to be brought up and killed for each build run.

Is there an easy way of doing this in bamboo? and having the cleanup on builds failing, stopping, completing etc?

Currently we use Jenkins and a plugin called Xvfb Plugin that manages everything. I cant see anything similar in bamboo, nor any plugins to help.

At the moment I am thinking starting Xvfb via a command defined in a job but cleanup is a little more tricky, especially as I read if the build stops/fails before an attempted cleanup stages later on.  

I see a HungBuildKiller that may help but thats more of a last resort / would be nice for the builds to clean up cleanly.

So any established / easy ways of doing this?

Thanks,

Robert

 

 

1 answer

You could run the gui tests and the build itself with a Docker container with support for Xvfb, eg: http://linuxmeerkat.wordpress.com/2014/10/17/running-a-gui-application-in-a-docker-container/

Bamboo 5.7 announced support for Docker support as build agent so you can use that for the build which should be an option for you requirements to be auto-managed on build completion: https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+Docker+and+Bamboo

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Off-topic

Friday Fun: Virtual dance party!

Do dance parties help you relieve stress? How about *virtual dance parties*? My team holds virtual dance parties to brighten the mood of a tough day or celebrate an upcoming weekend.  Want t...

184 views 22 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you