"WebDriver ChromeDriver Selenium Jenkins Integration"
I have a selenium script written in eclipse that calls chromerever and launches the url, reads the title and closes the browser. I'm capable of doing this successfully in eclpise as well as the command line.
However, when I create a jenkins job using the build procedure (via the execute batch command), the build keeps running for a while. After tracking with sysout instructions, I found that the build stops at drive.get ()
driver.get("google.com");
After a long wait, the build finished with the error message below:
Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on port 39626
Only local connections are allowed.
[304.538][SEVERE]: Timed out receiving message from renderer: 298.714
[904.539][SEVERE]: Timed out receiving message from renderer: 600.000
[914.540][SEVERE]: Timed out receiving message from renderer: 10.000
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
source to share
Selenium Webdriver really needs a display to work (the X server needs to be precise).
You can use Xvfb to run it in headless mode, detailed instruction (a little outdated but still valid) - http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on -ubuntu /
source to share