On Mon, Feb 3, 2020 at 3:42 PM Gajanan Mahajan <gajanan.for...@gmail.com>
wrote:

> I was having problems running Selenium tests through Jenkins on Open SUSE
> node. I got it working with [Xvfb plugin][1] by installing, configuring
> plugin on Jenkins server and updating pipeline by wrapping Selenium
> execution code with -
>
>     wrap([$class: 'Xvfb', ....]) {
>       //Selenium execution code goes here
>     }
>
> I've Jenkins master on Windows machine and nodes are Linux machines. Is
> there a way with which if I can configure master and nodes so I don't need
> Xvfb plugin?
>
>
Yes, you can configure master and nodes so that you won't need the Xvfb
plugin.  The plugin creates a virtual frame buffer where your Selenium
tests display the web browser while they are running tests.  After the
tests are complete, it destroys the virtual frame buffer.

If you don't want to use that plugin, you could perform the creation and
the deletion of the virtual frame buffer yourself.  That seems like a lot
of work to me, but it should be possible to provide an environment like the
Xvfb plugin provides.

Windows nodes need to run in a desktop session, or then need to run from a
service that has been granted desktop access.

Mark Waite


> Please suggest what are alternative ways to achieve what Xvfb is doing.
>
> **NOTE:**
>
> We've multiple pipelines and if we decide to use this plugin, in every
> pipeline we'll have to make the change. Hence to avoid that looking for an
> alternate way which can help to make change at one place or changes on
> nodes or master.
>
> Or any other way to make change in framework except following which runs
> tests in headless mode -
>
>     chromeOptions.addArguments("--headless");
>   [1]: https://wiki.jenkins.io/display/JENKINS/Xvfb+Plugin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c8facd02-ddf9-4107-86a8-30c51c527fe9%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c8facd02-ddf9-4107-86a8-30c51c527fe9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHqH8JDbVHC4kZgX4O9vkCXaWKnrL0r6DWQbfx1ds8D0w%40mail.gmail.com.

Reply via email to