привет! всем
настроил тесты у себя локально
связка webdriver+ ant + testnj +java
на лок компе все чудесно
закидую на удаленний сервер
запускаю там :
run:
[testng] [TestNG] Running:
[testng] /var/www/ria_test/Java_ria/testng.xml
[testng]
[testng] TestCase_B1autoauto
[testng] TestCase_B2
[testng] log4j:WARN No appenders could be found for logger (devpinoyLogger).
[testng] log4j:WARN Please initialize the log4j system properly.
[testng] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
[testng] Error: no display specified
[testng] Error: no display specified
[testng]
[testng] at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
//------------------------------------------------
не может приконектится к локальному хосту
выход использовать селениум рс?, но при єтом рс использует другие команды
или Remote WD?
типа
public RemoteWebDriver getWebDriver() {
if (driver == null) {
DesiredCapabilities capability = DesiredCapabilities.firefox();
try {
driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capability);
} catch (MalformedURLException e) {
e.printStackTrace();
}
//driver = new EventFiringWebDriver(dr);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
return driver;