Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19006

Add option to start a program/windowmanager with Xvfb

      Currently, the xvfb plugin always starts without a window manager. This causes errors/problems with the focus change in some test libraries like Fest (using the java.awt.robot).

      If you start a window manager yourself between xvfb and the surefire plugin, the errors are gone.

      It would be great if you would have a textfield in the global configuration of the plugin, where you can execute a program/window manager after xvfb is started. I am not sure that the display variable has to be exported for it to work.

      Currently, running this before our tests and after xvfb has started prevents the errors:

      export DISPLAY=:99
      twm &

          [JENKINS-19006] Add option to start a program/windowmanager with Xvfb

          Julian M. created issue -

          zregvart added a comment -

          Similar requirement

          zregvart added a comment - Similar requirement
          zregvart made changes -
          Link New: This issue is duplicated by JENKINS-17308 [ JENKINS-17308 ]

          zregvart added a comment - - edited

          The xvfb plugin shies away from doing anything more than controlling the Xvfb. This kind of requirement is better handled by Execute shell build step in a freestyle project. If you feel that this needs to be a feature of the xvfb plugin, please reopen the JENKINS-17308 issue that speaks broadly about launching any program after Xvfb is started.

          zregvart added a comment - - edited The xvfb plugin shies away from doing anything more than controlling the Xvfb. This kind of requirement is better handled by Execute shell build step in a freestyle project. If you feel that this needs to be a feature of the xvfb plugin, please reopen the JENKINS-17308 issue that speaks broadly about launching any program after Xvfb is started.
          zregvart made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          zregvart added a comment -

          Closing resloved issues

          zregvart added a comment - Closing resloved issues
          zregvart made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150453 ] New: JNJira + In-Review [ 206837 ]

            zregvart zregvart
            7bit Julian M.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: