I'm myself not familiar with Bamboo, but you'd need a plugin to startup
vncserver before a test that sets the DISPLAY environment variable and
kills the vncserver after it is done (See the wiki page on setting up a CI
Sever <http://wiki.eclipse.org/SWTBot/CI_Server> with SWTBot) on how this
is done.

It seems that the plugin is not implemented by Bamboo, but there's a workaround
available<http://osi.fotap.org/2008/10/29/running-an-x-server-during-a-bamboo-or-other-sort-of-automated-build/>
for
it.

- Ketan

2011/12/20 邢云 <mouzonhe...@163.com>

> Another similar case is to run selenium test in Bamboo.
>
> Test automation with selenium will launch a browser and perform tests with
> the browser. Bamboo is able to do it.
>
> I guess Selenium Team has made a bamboo plugin for this. I wonder if there
> is a SWTBot Plugin for Bamboo yet?
>
> Regards
> Charlie
> At 2011-12-20 14:58:57,"邢云" <mouzonhe...@163.com> wrote:
>
> Hi guys:
>    We have our test automation uses SWTHeadless and runs very well.
>
>    When tests starts, SWTHeadless will automatically starts an Eclipse
> workbench, run tests and exit the workbench. In short, SWTHeadless needs OS
> have GUI.
>
>    We have problem when we run the test automation in Bamboo. It fails to
> launch the eclipse instance and therefore the test fails.
>
>    I think the key point is the way we trigger the ant build file:
>                    1. We manually run the ant command in a linux shell or
> windows command shell, it succeeds.
>                    2.  It fails with bamboo because bamboo doesn't trigger
> it with the real linux console
>
>     Based on this, I've 2 questions:
>            1. Is there any way to let SWTHeadless not start an Eclipse
> workbench?
>            2. Do you guys have any solution about Bamboo + SWTHeadless
> Regards
> Charlie
>
>
>
>
>
>
> _______________________________________________
> swtbot-dev mailing list
> swtbot-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/swtbot-dev
>
>
_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to