[almighty] Testing with Firefox on the CI

Michael Kleinhenz kleinhenz at redhat.com
Mon Oct 17 15:03:06 UTC 2016


Hi all,

as we had some problems with Firefox and phantomJS is WebKit only, we
are currently looking for ways of running Firefox on the Jenkins. The
challenge are not the tests itself, they are running fine on Firefox,
but the "physical" running of Firefox (which is not available in a
"headless" version) on the Jenkins server in a "batch mode".

@KB: do you know if that is even a problem? So maybe Jenkins or the
setup of our Jenkins already has something in place that enables to
run x applications in the background?

As an alternative, I used a headless x server before. In that setup,
the "headlessness" is delegated to the whole x environment and the
Firefox just runs as normal. xorg provides a "virtual framebuffer"
version of xorg for that case:

  xorg-x11-server-Xvfb.x86_64 : A X Windows System virtual framebuffer X server

In an ideal case, something like that should be sufficient before
running the tests:

  Xvfb :99 &
  export DISPLAY=:99
  ./run_functional_tests.sh (or something else)

What I don't know yet is if this requires root or any other resource
that is not available in the docker / Jenkins environment.

Anyone has experience with that?

-- Michael

-- 
Michael Kleinhenz
Principal Software Engineer

Red Hat Deutschland GmbH
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany

RED HAT | TRIED. TESTED. TRUSTED.
Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht München,
HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill




More information about the almighty-public mailing list