Ok I found the logs of the guy who successfully configured headless jenkins
with selenium. He used the svfb plugin and the envInject plugin to set the
DISPLAY environment variable. If you want the conversation, I can send it
to you directly, just tell me.

On Tue, Feb 7, 2012 at 3:15 PM, Michael Higgins <mhigg...@puppetlabs.com>wrote:

> On Mon, 6 Feb 2012 18:51:28 -0500
> Richard Lavoie <lavoie.rich...@gmail.com> wrote:
>
> > Ar eyou using the xvfb plugin for jenkins as well ?
>
> No, I'm not. But I did just try it, as it would make setting up these
> jobs easier. It didn't work immediately. Or on several subsequent
> attempts. The error is:
>
> Error forwarding the new session new session request for webdriver
> should contain a location header with the session.
> (org.openqa.grid.common.exception.GridException)
>
> Which, IIRC, is the same error I got before setting up Xvfb yesterday. I
> have to conclude this plugin just doesn't work as expected... even
> though it appears to do what it should. :(
>
>
I've seen that error when it can't find the DISPLAY environment variable to
start the browser. Which plugin doesn't do what it appers that it should ?
xvfb or selenium ?


> >
> > IIRC, someone made it work with xvfb plugin, I'd hav eto search my IRC
> > logs, but we debugged one case where jenkins selenium was used with
> > xvfb jenkins...
>
> If you find any more info... it may be helpful.
>
> >
> > Maybe it would be just a matter of setting the DISPLAY variable so
> > xvfb can set that up on the machine...
>
> Not sure what you mean here. Should I have to set $DISPLAY manually
> with Xvfb plugin? Seems it picks one at random, but that selenium-grid
> isn't finding it.
>
> So I export DISPLAY in .profile and set it the same in the plugin.
> Restart Jenkins. No difference. So far this seems like a dead end. :-/
>
>
With envInject plugin you can export the DISPLAY variable in the prebuild
step of any build from jenkins. You can set it to the xvfb screen the
latter will use (you can specify one manually with advanced config of xvfb
plugin).


> >
> > Just a thought as I didn't use it myself, in the end iirc it was only
> > a matter of driver problems or something like that ... I'll check if
> > I can't find the logs.
> >
> > Richard
>
> Thanks again,
>
> --
> Michael Higgins
> QA Intern, PuppetLabs
> mhigg...@puppetlabs.com
>

I'm currently working on a forked version, but I'll try to set an
environment so I can reproduce it and better assist you with that.

Hope these small informations will help you.

-- 
Richard Lavoie
IT consultant / consultant en informatique

Reply via email to