Fehler: cannot open display: :0 für Selenium-tests

Erstens war ich immer die folgende Fehlermeldung:

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

So, das ich verwendet habe export DISPLAY=:0 dieses problem zu umgehen. Befolgt, die ich gefunden habe, Selenium tests wurden ausgeführt mit dem Benutzer root und alles war in Ordnung.

Aber jetzt kann ich sehen, Wann diese tests werden immer ausgeführt, von Jenkins die folgende Fehlermeldung kommt:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
No protocol specified
Error: cannot open display: :0

Mir läuft diese auf einem Redhat 6-box.

  • Können Sie fügen Sie ein paar mehr Informationen bitte, was OS? ist es auf einer Maschine-Konto mit Zugriff auf eine X-session?
InformationsquelleAutor Exploring | 2014-03-31
Schreibe einen Kommentar