Reputation: 139
I have test classes written in java for UI testing using Maven using Selenium Web-Driver. I want to run them using mvn test command in Jenkins. It is not able to launch the browser for the testing.
The error stack shown is something like this: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Error: no display specified Error: no display specified at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
Any help on this will be appreciated.
Upvotes: 0
Views: 3247
Reputation: 3817
Firefox needs a X display to run, e.g. Xvfb
You will need to
Upvotes: 1