chrome browser test on Linux Soatest Server

asinghasingh Posts: 14

Hi Facing difficulties running my browser tests on SoaTest Server running as war on tomcat.
The document I read was not very clear with servers.

I tried Starting Xvfb buffers in the beginning, but it did not work

export DISPLAY=:0
Xvfb :0 &

and stated the execution but no luck.

Can you please guide me with proper steps?



  • jakubiakjakubiak Posts: 517 admin

    Did you follow the instructions in the documentation here:

  • asinghasingh Posts: 14

    Yes, I created this file on my redhat server

        # Use [email protected] to pass along any argument specified by SOAtest.
        # The [email protected] will include the display on which to run the server.
        # Currently this is always display :32.  You can override this
        # by adding another display number as the last argument.
        # There can be problems with graphics libraries if you do
        # not set the display depth to greater than 8 using the
        # -screen argument.
        # Make sure to run Xvfb with 'exec' so that SOAtest will
        # kill the correct process.
        XVFB_DIR=`dirname $0`
        exec ${XVFB_DIR}/Xvfb_Linux.bin \
          -ac \
          -sp /usr/lib/xserver/SecurityPolicy \   -fp /usr/share/X11/fonts/misc \
          -co /usr/share/X11/rgb \
          -screen 0 1024x768x24 \
          [email protected]

    When I execute this file it gives error of unrecognised option

  • jakubiakjakubiak Posts: 517 admin

    Can you share the exact error message?

  • asinghasingh Posts: 14
    edited August 2018

    Hi Below are my detailed observation:

    1. I am using SoaTest/Virtulize war on tomcat and rhel 7
    2. I fixed the problem when I switched to the parasoft native browser in headless mode.
    3. When I swichted back to selenium web driver in headless mode it does not even calls the Xvfb_Linux

    Looks like this is a problem of headless browser with selenium web driver.

  • jakubiakjakubiak Posts: 517 admin

    Thanks for the update. My apologies - I missed that you are using WebDriver. Headless mode is not currently supported for WebDriver. From the documentation -
    "Selenium does not support playing back scenarios in headless mode. If headless mode is selected, the scenarios will still play back in visible mode."

Sign In or Register to comment.