Thanks so much!  I got the solution yesterday exactlly the same as you 
provided. I works!
 
It's so hard to make it...
 
I'm not quite sure if it is the final solution. VNC works only when linux has X 
window, right?  Several machines can serve as agents of Bamboo, and Bamboo 
radomly picks up one of themto trigger the build. Some of the machines don't 
have X window stuff.
 
I heard Xvfb is the solution. Selenium + Bamboo used to choose VNC solution but 
they have switched to Xvfb.
 
 
I'm not sure if my work is valuable to contribute to SWTBot or not..
 
Charlie
At 2011-12-21 01:56:23,"Ketan Padegaonkar" <ketanpadegaon...@gmail.com> wrote:
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 with 
SWTBot) on how this is done.


It seems that the plugin is not implemented by Bamboo, but there's a workaround 
available 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