Do I need to run robot framework tests without a display at all?
I am preparing several test suites for an e-commerce website, so I am using Selenium2Library, which requires a desktop browser. I can run these tests on my local machine, but I had to run them on a remote server that has no actual display. I tried to use xvfb to create a virtual display but it didn't work, tried all solutions on some answers here but nothing changed.
So, I saw the pyvirtualdisplay Python library, but it seems to be useful with tests written in Python. I would like to know that if I can run the test packages I wrote in robotframework (which are formatted .txt and can be run via pybot) via Python, so I can use pyvirtualdisplay?
Sorry for my english, thanks for your answers ...
If you want to run selenium and not open a browser window, you must use PhantomJS . It requires no display and you can take screenshots.
Yes, with Xvfb installed.
In a very short time:
/usr/bin/Xvfb :0 -screen 0 1024x768x24&
export DISPLAY=:0
robot your_selenium_test