gpt4 book ai didi

linux - Jenkins - phantomJS 功能测试失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:22:39 24 4
gpt4 key购买 nike

我已经下载了以下 phantomJS 驱动程序的最新版本,用于在 Jenkins CI 中对我的 selenium 功能测试进行 headless 测试。

phantomjs-2.1.1-linux-x86_64/bin/phantomjs

我在 Jenkins 控制台日志中收到以下错误消息。知道会发生什么吗?我怀疑与版本不兼容有关,但不太确定。

Running TestSuite
Nov 13, 2016 9:25:28 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs
Nov 13, 2016 9:25:28 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 19175
Nov 13, 2016 9:25:28 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=19175, --webdriver-logfile=/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/phantomjsdriver.log]
Nov 13, 2016 9:25:28 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /lib64/libz.so.1: no version information available (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
/softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /softwares/build.tool/.jenkins/jobs/SELENIUM_UI/workspace/resources/phantomjs-2.1.1-linux-x86_64/bin/phantomjs)
Nov 13, 2016 9:25:49 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
Tests run: 7, Failures: 1, Errors: 0, Skipped: 6, Time elapsed: 22.943 sec <<< FAILURE! - in TestSuite
pageSetup(com.visualiq.automation.selfservice.ClientSetupTest) Time elapsed: 22.748 sec <<< FAILURE!
org.openqa.selenium.WebDriverException:
Timed out waiting for driver server to start.
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'hnet11234.inetservices.com', ip: '10.300.14.86', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.18-371.1.2.el5', java.version: '1.8.0_101'
Driver info: driver.version: PhantomJSDriver

最佳答案

所有,我可以使用 phantomJS 1.9.8 版而不是 2.1.1 版来解决问题。最新版本 2.1.1 与运行我的 Jenkins 的 Red Hat Linux 版本存在一些兼容性问题。

Jenkins Box:
Linux inet11086.inetservices.com 2.6.18-371.1.2.el5 #1 SMP Mon Oct 7 16:34:35 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer

另一个选择是更新 Red Hat box 中的库,但我使用了 phantomJS 的降级版本。如果您需要这方面的更多信息,请告诉我!

关于linux - Jenkins - phantomJS 功能测试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40581498/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com