chrome browser test on Linux Soatest Server
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?
Comments
-
Did you follow the instructions in the documentation here: https://docs.parasoft.com/display/SOA9105/Running+Web+Scenarios+in+Headless+Mode?
0 -
Yes, I created this file on my redhat server
#!/bin/sh # Use $@ to pass along any argument specified by SOAtest. # The $@ 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 \ $@
When I execute this file it gives error of unrecognised option
0 -
Can you share the exact error message?
0 -
Hi Below are my detailed observation:
- I am using SoaTest/Virtulize war on tomcat and rhel 7
- I fixed the problem when I switched to the parasoft native browser in headless mode.
- 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.
0 -
Thanks for the update. My apologies - I missed that you are using WebDriver. Headless mode is not currently supported for WebDriver. From the documentation - https://docs.parasoft.com/display/SOA9105/About+the+Selenium+WebDriver+Engine:
"Selenium does not support playing back scenarios in headless mode. If headless mode is selected, the scenarios will still play back in visible mode."1