Truth be told it's been a while since I had a headless machine (even my Ubuntu "servers" nowadays have X, though I almost never use it).
But, in the past (pre GWT days for other stuff) I just created an init script to start it, and export the DISPLAY variable, and keep it running in the background. I don't think you have to set the DISPLAY on the same line, you just have to refer to the correct one where you know Xvfb is running. You can try it without the init script first, just start it manually, export the DISPLAY, and then see if your tests work. If they do, then it's just a matter of getting it running without the "manually" part. For automating the starting with an init script, something like the one on this page (tweaked for your purposes with DISPLAY 0:0 and so on) should do it: https://www.labkey.org/wiki/home/Documentation/page.view?name=configVirtualFrame. Then link it in the correct runlevel so that it's always there when the machine starts. On Oct 20, 9:02 pm, Arthur Kalmenson <[EMAIL PROTECTED]> wrote: > Hi Charlie, I don't mind running Xvfb all the time, but I don't know > which command to run.... I tried to run it in the background but I > have to set the display on the same line as I run the GWTTestCase > shell script runner. How do you run Xvfb? > > Regards, > -- > Arthur Kalmenson > > On 20-Oct-08, at 8:05 PM, Charlie Collins <[EMAIL PROTECTED]> > wrote: > > > > > Typically I just leave Xvfb running on the cruise/hudson CI box? Now, > > if you really need to start and stop it before and after your tests > > you might be able to use AntRun or something. I had never heard of > > the Selenium plugin Xvfb goal before this thread, but just checked it > > out, and it looks like it might work too - but it probably shuts it > > down when it completes whatever phase it's bound to. I imagine it > > would work though if you get the phases and such right (our GwtTest > > mojo is bound to the test phase). > > > On Oct 20, 10:20 am, Arthur Kalmenson <[EMAIL PROTECTED]> wrote: > >> So I tried the Selenium Maven plugin route and it didn't work. Is > >> there a way to launch Xvfb during the GWTTestCase phase? > > >> On Oct 20, 9:23 am, Arthur Kalmenson <[EMAIL PROTECTED]> wrote: > > >>> I've posted the similar question on the GWT Group > >>> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa > >>> ... > > >>> Manuel Carrasco and John Tamplin gave me the correct commands to get > >>> the GWTTestCase shell script to run. However, I'm not entirely sure > >>> how to integrate this with GWT Maven and Hudson. Should I use the > >>> Selenium Maven plugin to start Xvfb (http://mojo.codehaus.org/selenium- > >>> maven-plugin/examples/headless-with-xvfb.html)? Will that work in > >>> GWT > >>> Maven's execution of test cases? > > >>> Thank you in advance. > > >>> Regards, > >>> Arthur Kalmenson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
