Доброе время суток.
вот мой проект GitHub - yChistov/MyTestFramework
(Java + Selenide + TestNG + Allure + Selenoid)
docker(wls2) стоит на windows 10 и на нем установленны Selenoid и Jenkins
Если запустить локально проект - mvn test -Dbrowser=chrome то тест успешно пройдет на селеноиде. Проблема в том, что на дженкинсе я получаю следующие ошибки
selenoid-ui port:8080
jenkins port:8000
[INFO] Running TestSuite
[main] INFO com.codeborne.selenide.impl.WebDriverThreadLocalContainer - No webdriver is bound to current thread: 1 - let's create a new webdriver
[main] INFO com.codeborne.selenide.impl.FileHelper - Creating folder: /var/jenkins_home/workspace/Test Build/build/downloads/1622139104997_220_1
[main] INFO com.codeborne.selenide.impl.WebDriverThreadLocalContainer - No webdriver is bound to current thread: 1 - let's create a new webdriver
[main] INFO com.codeborne.selenide.impl.FileHelper - Creating folder: /var/jenkins_home/workspace/Test Build/build/downloads/1622139105797_220_1
[ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 2.605 s <<< FAILURE! - in TestSuite
[ERROR] ableToRunDefaultDriverOnSelenoid(com.mystore.tests.MyTest) Time elapsed: 0.817 s <<< FAILURE!
org.openqa.selenium.remote.UnreachableBrowserException:
Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'a81cb5437796', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.72-microsoft-standard-WSL2', java.version: '11.0.1'
Driver info: driver.version: SelenideDriver
selenide.url: http://the-internet.herokuapp.com/login
selenide.baseUrl: http://localhost:8080
at com.mystore.tests.MyTest.ableToRunDefaultDriverOnSelenoid(MyTest.java:9)
Caused by: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4444
at com.mystore.tests.MyTest.ableToRunDefaultDriverOnSelenoid(MyTest.java:9)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at com.mystore.tests.MyTest.ableToRunDefaultDriverOnSelenoid(MyTest.java:9)