为什么在组装过程中不运行测试?服务器上是否未安装浏览器? 我下载了用于Sileneum测试的驱动程序,该驱动程序位于项目内部。在参数中,我指出了它的路径,但是它给出了以下我无法理解的错误...
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
2019-10-29 18:54:35 INFO FullAppFormBuilder:39 - Host = http://vtb24pokaz:8001/webmvc/index
/home/jenkins/workspace/Autotests_ver_QUALITY/Autotests_VTB24/Autotests_VTB24_on_POKAZ_MORTGAGE_TIER_1/driver/chromedriver: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
Oct 29, 2019 6:54:56 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)
Starting test [1;34m1[0m of [1;34mN/A[0m: {[1;34menterFullAppFromMiniAppAuto[0m}
Test {enterFullAppFromMiniAppAuto} status: unknown
[ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 25.838 s <<< FAILURE! - in TestSuite
[ERROR] setUp(autotests.ftfcrm.tests.AutoApplicationTest) Time elapsed: 25.509 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: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: '40e9380d4276', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '3.19.0-25-generic', java.version: '1.8.0_40'
Driver info: driver.version: ChromeDriver
at autotests.ftfcrm.tests.AutoApplicationTest.setUp(AutoApplicationTest.java:40)
Caused by: org.openqa.selenium.WebDriverException:
Timed out waiting for driver server to start.
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: '40e9380d4276', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '3.19.0-25-generic', java.version: '1.8.0_40'
Driver info: driver.version: ChromeDriver
at autotests.ftfcrm.tests.AutoApplicationTest.setUp(AutoApplicationTest.java:40)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:16972/status] to be available after 20004 ms
at autotests.ftfcrm.tests.AutoApplicationTest.setUp(AutoApplicationTest.java:40)
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
at autotests.ftfcrm.tests.AutoApplicationTest.setUp(AutoApplicationTest.java:40)
Caused by: java.util.concurrent.TimeoutException
at autotests.ftfcrm.tests.AutoApplicationTest.setUp(AutoApplicationTest.java:40)
[ERROR] tearDown(autotests.ftfcrm.tests.AutoApplicationTest) Time elapsed: 25.647 s <<< FAILURE!
java.lang.NullPointerException
at autotests.ftfcrm.tests.AutoApplicationTest.tearDown(AutoApplicationTest.java:292)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] AutoApplicationTest.setUp:40 » UnreachableBrowser Could not start a new sessio...
[ERROR] AutoApplicationTest.tearDown:292 » NullPointer
[INFO]
[ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 1
[INFO]
[ERROR] There are test failures.
Please refer to /home/jenkins/workspace/Autotests_ver_QUALITY/Autotests_VTB24/Autotests_VTB24_on_POKAZ_MORTGAGE_TIER_1/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[JENKINS] Recording test results
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.SurefireArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[BFA] Scanning build for known causes...
[BFA] Found failure cause(s):
[BFA] Test failures
[BFA] Done. 0s
Notifying upstream projects of job completion
Join notifier requires a CauseAction
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.022 s
[INFO] Finished at: 2019-10-29T18:55:03+03:00
[INFO] Final Memory: 34M/575M
[INFO] ------------------------------------------------------------------------