Running TestSuite
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
Starting ChromeDriver 2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5) on port 13038
Only local connections are allowed.
Tests run: 7, Failures: 1, Errors: 0, Skipped: 6, Time elapsed: 61.306 sec <<< FAILURE!
Please refer to /home/maryan_nakonechnyy/IdeaProjects/testcms/target/surefire-reports for the individual test results.
[JENKINS] Recording test results
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:10 min
[INFO] Finished at: 2017-05-26T15:14:23+03:00
[INFO] Final Memory: 23M/263M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /home/maryan_nakonechnyy/IdeaProjects/testcms/pom.xml to test-cms/test-cms/1.0-SNAPSHOT/test-cms-1.0-SNAPSHOT.pom
channel stopped
Finished: UNSTABLE
Запустите тесты с дополнительной командой --errors, она покажет более расширенное сообщение об ошибке.
На машине где Дженкинс Хром установлен? Какой версии?
Как запущен сам Дженкинс? система какая на машине?
Линуксовый дженкинс запускается под своим собственным юзером jenkins, у которого нет доступа к графической среде. Проще всего запускать посредством самого дженкинса виртуальный фреймбуффер.
Почитайте про Xvfb-плагин к дженкинсу
для плагина ещё нужен установленный сам бинарник Xvfb, настроить путь к нему в глобал сеттингах дженкинса, ну и в джобе указать, что нужно автоматом его запускать и с какими параметрами
Started by user maryan_nakonechnyy
Building in workspace /home/maryan_nakonechnyy/IdeaProjects/testcms
Xvfb starting$ /usr/bin//Xvfb :0 -screen 0 1024x758x16 -fbdir /var/lib/jenkins/xvfb-13-1135903967717862542.fbdir -ac
Parsing POMs
Established TCP socket on 45315
[testcms] $ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven33-agent-1.8.1.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/share/maven/conf/logging jenkins.maven3.agent.Maven33Main /usr/share/maven /var/cache/jenkins/war/WEB-INF/lib/remoting-3.7.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven33-interceptor-1.8.1.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.8.1.jar 45315
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /home/maryan_nakonechnyy/IdeaProjects/testcms/pom.xml test
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test-cms 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ test-cms —
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ test-cms —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ test-cms —
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/maryan_nakonechnyy/IdeaProjects/testcms/src/test/resources
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test-cms —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.12:test (default-test) @ test-cms —
[INFO] Surefire report directory: /home/maryan_nakonechnyy/IdeaProjects/testcms/target/surefire-reports
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 SLF4J Error Codes for further details.
Starting ChromeDriver 2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5) on port 7999
Only local connections are allowed.
Tests run: 7, Failures: 1, Errors: 0, Skipped: 6, Time elapsed: 60.661 sec <<< FAILURE!
Results :
Please refer to /home/maryan_nakonechnyy/IdeaProjects/testcms/target/surefire-reports for the individual test results.
[JENKINS] Recording test results
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2017-05-29T11:26:27+03:00
[INFO] Final Memory: 17M/224M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /home/maryan_nakonechnyy/IdeaProjects/testcms/pom.xml to test-cms/test-cms/1.0-SNAPSHOT/test-cms-1.0-SNAPSHOT.pom
Xvfb stopping
channel stopped
Finished: UNSTABLE
Заметил что иногда Xvfb не доконца заканчивает свою работу при прогоне тестов, и пишет ошибку при очередном запуске:
Started by user maryan_nakonechnyy
Building in workspace /home/maryan_nakonechnyy/IdeaProjects/testcms
Xvfb starting$ /usr/bin//Xvfb :0 -screen 0 1280x1024x24 -fbdir /home/maryan_nakonechnyy/.jenkins/xvfb-16-1811563009043460936.fbdir -ac
ERROR: Xvfb failed to start, consult the lines above for errors
Finished: FAILURE