Спасибо, за ответ @ArtOfLife, постараюсь дополнить! Файл подгружается тестировщиком с помощью File Parameter, файл подгружает, это работает!
Лог Jenkins
Started by user admin
Building in workspace /var/jenkins_home/workspace/AWG_Chrome_tariff
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://gitlab.mmtr.ru/LM_Team/AWG.git # timeout=10
Fetching upstream changes from http://gitlab.mmtr.ru/LM_Team/AWG.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress http://gitlab.mmtr.ru/LM_Team/AWG.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision aaad9ac56e12553b86e664b1f40c593b833f1a11 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f aaad9ac56e12553b86e664b1f40c593b833f1a11
Commit message: "change tariff test"
> git rev-list --no-walk aaad9ac56e12553b86e664b1f40c593b833f1a11 # timeout=10
Copying file to input.csv
[AWG_Chrome_tariff] $ /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/maven/bin/mvn clean test -DbaseUrl=https://leroymerlin.ru -Dthreads=1 -Dtags=tariff -DidRegion=34 -DseleniumGrid=172.17.0.3 -Dbrowser=chrome -DinputFile=input.csv
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< ru.leroymerlin:leroymerlin >---------------------
[INFO] Building leroymerlin 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ leroymerlin ---
[INFO] Deleting /var/jenkins_home/workspace/AWG_Chrome_tariff/target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ leroymerlin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/AWG_Chrome_tariff/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ leroymerlin ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ leroymerlin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ leroymerlin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 329 source files to /var/jenkins_home/workspace/AWG_Chrome_tariff/target/test-classes
[INFO] /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/webdriver/BaseTestParam.java: /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/webdriver/BaseTestParam.java uses or overrides a deprecated API.
[INFO] /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/webdriver/BaseTestParam.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/forms/catalogue/levelthree/CatalogLevelThreePage.java: /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/forms/catalogue/levelthree/CatalogLevelThreePage.java uses unchecked or unsafe operations.
[INFO] /var/jenkins_home/workspace/AWG_Chrome_tariff/src/test/java/forms/catalogue/levelthree/CatalogLevelThreePage.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.19:test (default-test) @ leroymerlin ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[AppClassLoader@18b4aac2] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified
2018-04-12 09:49:37 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:49:37 INFO Logger:72 - ===================== Тест: 'getTariff' =====================
2018-04-12 09:49:37 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:49:37 INFO Logger:72 - Навигация по URL: https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/
Apr 12, 2018 9:49:37 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Apr 12, 2018 9:49:42 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Apr 12, 2018 9:49:42 AM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=65.0.3325.162 Platform=LINUX
Apr 12, 2018 9:49:42 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.11.1
Apr 12, 2018 9:49:42 AM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.11.0 build time: 2018-03-11T20:26:55.152Z
Apr 12, 2018 9:49:42 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 13: RemoteWebDriver -> RemoteWebDriver: chrome on LINUX (ac818a07fbebdca85bb7636b233baa15)
2018-04-12 09:49:52 INFO Logger:72 - --------==[ Шаг1 ]==--------
2018-04-12 09:49:52 INFO Logger:72 - ----==[ Добавить товары в корзину и перейти в нее ]==----
Apr 12, 2018 9:49:53 AM com.codeborne.selenide.impl.ScreenShotLaboratory ensureFolderExists
INFO: Creating folder: target/selenide/reports
Apr 12, 2018 9:49:54 AM com.codeborne.selenide.logevents.SimpleReport finish
INFO: Report for getTariff
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|Element |Subject |Status |ms. |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|open |https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/?REGION_ID=34|PASS |14239 |
|.fancybox-close |is displayed() |PASS |214 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |is displayed() |PASS |96 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |click() |PASS |278 |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
Apr 12, 2018 9:49:54 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 13 -> RemoteWebDriver: chrome on LINUX (ac818a07fbebdca85bb7636b233baa15)
Apr 12, 2018 9:49:54 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser RemoteWebDriver ...
Apr 12, 2018 9:49:54 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Closed webdriver in 92 ms
2018-04-12 09:49:54 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:49:54 INFO Logger:72 - ===================== Тест: 'getTariff' =====================
2018-04-12 09:49:55 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:49:55 INFO Logger:72 - Навигация по URL: https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/
Apr 12, 2018 9:49:55 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Apr 12, 2018 9:49:56 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Apr 12, 2018 9:49:56 AM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=65.0.3325.162 Platform=LINUX
Apr 12, 2018 9:49:56 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.11.1
Apr 12, 2018 9:49:56 AM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.11.0 build time: 2018-03-11T20:26:55.152Z
Apr 12, 2018 9:49:56 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 13: RemoteWebDriver -> RemoteWebDriver: chrome on LINUX (f8b395ca0816828d3f79ff2b8979a0c1)
2018-04-12 09:50:08 INFO Logger:72 - --------==[ Шаг2 ]==--------
2018-04-12 09:50:08 INFO Logger:72 - ----==[ Добавить товары в корзину и перейти в нее ]==----
Apr 12, 2018 9:50:09 AM com.codeborne.selenide.logevents.SimpleReport finish
INFO: Report for getTariff
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|Element |Subject |Status |ms. |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|open |https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/?REGION_ID=34|PASS |12914 |
|.fancybox-close |is displayed() |PASS |101 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |is displayed() |PASS |135 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |click() |PASS |335 |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
Apr 12, 2018 9:50:09 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 13 -> RemoteWebDriver: chrome on LINUX (f8b395ca0816828d3f79ff2b8979a0c1)
Apr 12, 2018 9:50:09 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser RemoteWebDriver ...
Apr 12, 2018 9:50:09 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Closed webdriver in 87 ms
2018-04-12 09:50:09 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:09 INFO Logger:72 - ===================== Тест: 'getTariff' =====================
2018-04-12 09:50:09 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:09 INFO Logger:72 - Навигация по URL: https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/
Apr 12, 2018 9:50:09 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Apr 12, 2018 9:50:11 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Apr 12, 2018 9:50:11 AM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=65.0.3325.162 Platform=LINUX
Apr 12, 2018 9:50:11 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.11.1
Apr 12, 2018 9:50:11 AM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.11.0 build time: 2018-03-11T20:26:55.152Z
Apr 12, 2018 9:50:11 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 13: RemoteWebDriver -> RemoteWebDriver: chrome on LINUX (03ea924300d10c72370748b4290f62f8)
2018-04-12 09:50:20 INFO Logger:72 - --------==[ Шаг3 ]==--------
2018-04-12 09:50:20 INFO Logger:72 - ----==[ Добавить товары в корзину и перейти в нее ]==----
Apr 12, 2018 9:50:21 AM com.codeborne.selenide.logevents.SimpleReport finish
INFO: Report for getTariff
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|Element |Subject |Status |ms. |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|open |https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/?REGION_ID=34|PASS |10055 |
|.fancybox-close |is displayed() |PASS |97 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |is displayed() |PASS |158 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |click() |PASS |330 |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
Apr 12, 2018 9:50:21 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 13 -> RemoteWebDriver: chrome on LINUX (03ea924300d10c72370748b4290f62f8)
Apr 12, 2018 9:50:21 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser RemoteWebDriver ...
Apr 12, 2018 9:50:21 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Closed webdriver in 80 ms
2018-04-12 09:50:21 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:21 INFO Logger:72 - ===================== Тест: 'getTariff' =====================
2018-04-12 09:50:21 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:21 INFO Logger:72 - Навигация по URL: https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/
Apr 12, 2018 9:50:21 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Apr 12, 2018 9:50:22 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Apr 12, 2018 9:50:23 AM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=65.0.3325.162 Platform=LINUX
Apr 12, 2018 9:50:23 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.11.1
Apr 12, 2018 9:50:23 AM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.11.0 build time: 2018-03-11T20:26:55.152Z
Apr 12, 2018 9:50:23 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 13: RemoteWebDriver -> RemoteWebDriver: chrome on LINUX (66008dfc74fe3befafd294cd8e036f1e)
2018-04-12 09:50:32 INFO Logger:72 - --------==[ Шаг4 ]==--------
2018-04-12 09:50:32 INFO Logger:72 - ----==[ Добавить товары в корзину и перейти в нее ]==----
Apr 12, 2018 9:50:32 AM com.codeborne.selenide.logevents.SimpleReport finish
INFO: Report for getTariff
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|Element |Subject |Status |ms. |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|open |https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/?REGION_ID=34|PASS |9894 |
|.fancybox-close |is displayed() |PASS |112 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |is displayed() |PASS |148 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |click() |PASS |358 |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
Apr 12, 2018 9:50:33 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 13 -> RemoteWebDriver: chrome on LINUX (66008dfc74fe3befafd294cd8e036f1e)
Apr 12, 2018 9:50:33 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser RemoteWebDriver ...
Apr 12, 2018 9:50:33 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Closed webdriver in 75 ms
2018-04-12 09:50:33 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:33 INFO Logger:72 - ===================== Тест: 'getTariff' =====================
2018-04-12 09:50:33 INFO Logger:72 - --------------------------------------------------------------
2018-04-12 09:50:33 INFO Logger:72 - Навигация по URL: https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/
Apr 12, 2018 9:50:33 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Apr 12, 2018 9:50:34 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Apr 12, 2018 9:50:35 AM com.codeborne.selenide.webdriver.WebDriverFactory logBrowserVersion
INFO: BrowserName=chrome Version=65.0.3325.162 Platform=LINUX
Apr 12, 2018 9:50:35 AM com.codeborne.selenide.webdriver.WebDriverFactory createWebDriver
INFO: Selenide v. 4.11.1
Apr 12, 2018 9:50:35 AM com.codeborne.selenide.webdriver.WebDriverFactory logSeleniumInfo
INFO: Selenium WebDriver v. 3.11.0 build time: 2018-03-11T20:26:55.152Z
Apr 12, 2018 9:50:35 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer createDriver
INFO: Create webdriver in current thread 13: RemoteWebDriver -> RemoteWebDriver: chrome on LINUX (65463c4dfe156d96e88281c87f85ae65)
2018-04-12 09:50:46 INFO Logger:72 - --------==[ Шаг5 ]==--------
2018-04-12 09:50:46 INFO Logger:72 - ----==[ Добавить товары в корзину и перейти в нее ]==----
Apr 12, 2018 9:50:46 AM com.codeborne.selenide.logevents.SimpleReport finish
INFO: Report for getTariff
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|Element |Subject |Status |ms. |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
|open |https://leroymerlin.ru/product/shtukaturka-gipsovaya-luchshaya-cena-14238108/?REGION_ID=34|PASS |12162 |
|.fancybox-close |is displayed() |PASS |103 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |is displayed() |PASS |136 |
|.btn.cookies-agree__btn.cookies-agree__btn_green |click() |PASS |359 |
+-------------------------------------------------+----------------------------------------------------------------------+----------+----------+
Apr 12, 2018 9:50:47 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Close webdriver: 13 -> RemoteWebDriver: chrome on LINUX (65463c4dfe156d96e88281c87f85ae65)
Apr 12, 2018 9:50:47 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer$CloseBrowser run
INFO: Trying to close the browser RemoteWebDriver ...
Apr 12, 2018 9:50:47 AM com.codeborne.selenide.impl.WebDriverThreadLocalContainer closeWebDriver
INFO: Closed webdriver in 76 ms
+------------------+-----+------------+------------+--------+------------------+------+------------+---------------+--------+------+--------+-----------+-----------+-------+
| Регион | Кол.| Долгота | Широта | Город | Улица | Дом | Дата | Время | Тариф | Этаж | Метод | ОР | ФР | Резул.|
+------------------+-----+------------+------------+--------+------------------+------+------------+---------------+--------+------+--------+-----------+-----------+-------+
| Москва и область | 1 | 37.315801 | 55.678549 | 0 | 0 | 0 | -1 | В течение дня | Подъем | 1 | На лиф | 300,00 | null | false |
| Москва и область | 1 | 0 | 0 | Москва | улица Арбат | 28 | -1 | В течение дня | Подъем | 1 | По лес | 300,00 | null | false |
| Москва и область | 1 | 0 | 0 | Москва | улица Арбат | 28 | 14.04.2018 | 18:00 - 24:00 | Подъем | 1 | На лиф | 300,00 | null | false |
| Москва и область | 1 | 37.315801 | 55.678549 | 0 | 0 | 0 | -1 | В течение дня | Подъем | 1 | На лиф | 300,00 | null | false |
| Москва и область | 1 | 0 | 0 | Москва | улица Арбат | 28 | -1 | В течение дня | Подъем | 1 | На лиф | 300,00 | null | false |
+------------------+-----+------------+------------+--------+------------------+------+------------+---------------+--------+------+--------+-----------+-----------+-------+
SSLEmail Start
Session created
Tests run: 5, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 72.713 sec <<< FAILURE! - in TestSuite
getTariff(tests.tariff.TestCaseTariff) Time elapsed: 17.048 sec <<< FAILURE!
java.lang.RuntimeException: Failed to create new instance of class forms.product.ProductPage
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.lang.reflect.InvocationTargetException
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
getTariff(tests.tariff.TestCaseTariff) Time elapsed: 14.283 sec <<< FAILURE!
java.lang.RuntimeException: Failed to create new instance of class forms.product.ProductPage
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.lang.reflect.InvocationTargetException
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
getTariff(tests.tariff.TestCaseTariff) Time elapsed: 11.433 sec <<< FAILURE!
java.lang.RuntimeException: Failed to create new instance of class forms.product.ProductPage
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.lang.reflect.InvocationTargetException
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
getTariff(tests.tariff.TestCaseTariff) Time elapsed: 11.334 sec <<< FAILURE!
java.lang.RuntimeException: Failed to create new instance of class forms.product.ProductPage
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.lang.reflect.InvocationTargetException
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
getTariff(tests.tariff.TestCaseTariff) Time elapsed: 13.483 sec <<< FAILURE!
java.lang.RuntimeException: Failed to create new instance of class forms.product.ProductPage
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.lang.reflect.InvocationTargetException
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at tests.tariff.TestCaseTariff.getTariff(TestCaseTariff.java:61)
Results :
Failed tests:
tests.tariff.TestCaseTariff.getTariff(tests.tariff.TestCaseTariff)
Run 1: TestCaseTariff.getTariff:61 » Runtime Failed to create new instance of class f...
Run 2: TestCaseTariff.getTariff:61 » Runtime Failed to create new instance of class f...
Run 3: TestCaseTariff.getTariff:61 » Runtime Failed to create new instance of class f...
Run 4: TestCaseTariff.getTariff:61 » Runtime Failed to create new instance of class f...
Run 5: TestCaseTariff.getTariff:61 » Runtime Failed to create new instance of class f...
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[ERROR] There are test failures.
Please refer to /var/jenkins_home/workspace/AWG_Chrome_tariff/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min
[INFO] Finished at: 2018-04-12T09:50:48Z
[INFO] ------------------------------------------------------------------------
[AWG_Chrome_tariff] $ /var/jenkins_home/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allureAWG/bin/allure generate /var/jenkins_home/workspace/AWG_Chrome_tariff/target/allure-results -c -o /var/jenkins_home/workspace/AWG_Chrome_tariff/allure-report
Report successfully generated to /var/jenkins_home/workspace/AWG_Chrome_tariff/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Build step 'Allure Report' changed build result to UNSTABLE
Finished: UNSTABLE
В логах видно, что некоторые методы срабатывают, они находятся в другом классе (BeforeRunningTest), в том же где используется метод open(). После этого браузер закрывается, такое ощущение, что TestNG думает что это класс тест. Не понятно почему такое только в Jenkins происходит, локально работает!?
Возможно проблема в аннотациях @AfterMethod?
Этот метод находится в классе BaseTestParam который наследуется классом самого теста.(см. первый пост)
@AfterMethod(alwaysRun = true)
public void closeBrowser() {
WebDriverRunner.clearBrowserCache();
WebDriverRunner.getWebDriver().manage().deleteAllCookies();
Selenide.close();
}