- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我在 Eclipse 中运行 Selenium-Webdriver 脚本时,它工作正常。但是相同的脚本在服务器机器的 jenkins 中运行,它给出了以下错误:
18:00:34 -------------------------------------------------------
18:00:34 T E S T S
18:00:34 -------------------------------------------------------
18:00:35 Running TestSuite
18:12:46 Tests run: 568, Failures: 16, Errors: 0, Skipped: 552, Time elapsed: 731.137 sec <<< FAILURE!
18:12:46
18:12:46 Results :
18:12:46
18:12:46 Failed tests: setUp(com.abcd.fe.web.integration.myaccount.test.SettingsPageTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
18:12:46 setUp(com.abcd.fe.web.integration.footer.test.FooterMenuBottomTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
18:12:46 setUp(com.abcd.fe.web.integration.help.test.HelpPageTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
18:12:46 setUp(com.abcd.fe.web.integration.myaccount.test.MyAccountPageTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
18:12:46 setUp(com.abcd.fe.web.integration.loginsignup.test.SignupPageTest): Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
18:12:46
18:12:46 Tests run: 568, Failures: 16, Errors: 0, Skipped: 552
18:12:46
18:12:46 [ERROR] There are test failures.
18:12:46
18:12:46 Please refer to /var/lib/jenkins/jenkins/workspace/fe-abcd-xyz- integration-test/target/surefire-reports for the individual test results.
18:12:46 [JENKINS] Recording test results
18:12:48 [INFO]
18:12:48 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ abcd-xyz-test ---
18:12:48 [INFO] Installing /var/lib/jenkins/jenkins/workspace/fe-abcd-xyz-integration-test/target/abcd-xyz-test-2.0.0-SNAPSHOT.jar to /home/jenkins/.m2/repository/com/abcd/test/fe/functional/abcd-xyz-test/2.0.0-SNAPSHOT/abcd-xyz-test-2.0.0-SNAPSHOT.jar
18:12:48 [INFO] Installing /var/lib/jenkins/jenkins/workspace/fe-abcd-xyz-integration-test/pom.xml to /home/jenkins/.m2/repository/com/abcd/test/fe/functional/abcd-xyz-test/2.0.0-SNAPSHOT/abcd-xyz-test-2.0.0-SNAPSHOT.pom
18:12:48 [INFO] ------------------------------------------------------------------------
18:12:48 [INFO] BUILD SUCCESS
18:12:48 [INFO] ------------------------------------------------------------------------
18:12:48 [INFO] Total time: 12:23.959s
18:12:48 [INFO] Finished at: Thu Aug 29 18:12:48 PDT 2013
18:12:48 [INFO] Final Memory: 25M/198M
18:12:48 [INFO] ------------------------------------------------------------------------
18:12:49 [JENKINS] Archiving disabled
18:12:49 Waiting for Jenkins to finish collecting data
18:12:49 Sending e-mails to: abcd-xyz-dev@abcd.com abcd-xyz-qa@abcd.com
18:12:49 channel stopped
18:12:49 [ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #589
18:12:49 TestNG Reports Processing: START
18:12:49 Looking for TestNG results report in workspace using pattern: **/target/surefire-reports/testng-results.xml
18:12:49 Saving reports...
18:12:49 Processing '/var/lib/jenkins/jenkins/jobs/fe-abcd-xyz-integration-test/builds/2013-08-29_18-00-18/testng/testng-results.xml'
18:12:49 TestNG Reports Processing: FINISH
18:12:49 Sending e-mails to: abcd-xyz-dev@abcd.com abcd-xyz-qa@abcd.com
18:12:49 [ci-game] evaluating rule: Build result
18:12:49 [ci-game] evaluating rule: Increased number of failed tests
18:12:49 [ci-game] evaluating rule: Increased number of passed tests
18:12:49 [ci-game] evaluating rule: Decreased number of failed tests
18:12:49 [ci-game] evaluating rule: Decreased number of passed tests
18:12:49 [ci-game] evaluating rule: Open HIGH priority tasks
18:12:49 [ci-game] evaluating rule: Open NORMAL priority tasks
18:12:49 [ci-game] evaluating rule: Open LOW priority tasks
18:12:49 [ci-game] evaluating rule: PMD violation
18:12:49 [ci-game] evaluating rule: pylint violation
18:12:49 [ci-game] evaluating rule: CPD violation
18:12:49 [ci-game] evaluating rule: Checkstyle violation
18:12:49 [ci-game] evaluating rule: FindBugs violation
18:12:49 [ci-game] evaluating rule: FXCop violation
18:12:49 [ci-game] evaluating rule: Simian violation
18:12:49 [ci-game] evaluating rule: StyleCop violation
18:12:49 [ci-game] evaluating rule: HIGH priority PMD warnings
18:12:49 [ci-game] evaluating rule: NORMAL priority PMD warnings
18:12:49 [ci-game] evaluating rule: LOW priority PMD warnings
18:12:49 [ci-game] evaluating rule: New HIGH priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: New NORMAL priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: New LOW priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: Fixed HIGH priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: Fixed NORMAL priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: Fixed LOW priority Findbugs warnings
18:12:49 [ci-game] evaluating rule: Changed number of compiler warnings
18:12:49 Notifying upstream projects of job completion
18:12:49 Finished: UNSTABLE
这是我在 porm.xml 中遇到的错误 selenium.server 版本是 2.33.0,服务器中的 Firefox 版本是 10.0。从 3 天开始,我遇到了这个问题,然后才正常运行。为什么它在本地机器上运行,为什么它不在 Jenkins 中运行。
最佳答案
我在更新 Ubuntu 后遇到了这个问题。我的问题是 Firefox 版本不同,为防止将来出现此问题,请关闭自动更新。
这有助于解决我的问题: Failed to connect to binary FirefoxBinary with Selenium in Maven
关于java - 设置方法 : Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18525636/
这个方法有什么意义FirefoxBinary#startProfile ? 如何控制使用上述方法打开的浏览器? FirefoxBinary binary = new FirefoxBinary(new
星期三,我的代码成功了。我今天回来,我的代码不再有效。没有人碰过它,包括我自己。我收到以下错误消息: 'FirefoxBinary' object has no attribute '_get_fir
我正在运行一些 Selenium 测试。当我直接从 Eclipse 启动它们时,一切正常。但是当我通过 Maven 启动它们时,会出现以下异常: org.openqa.selenium.WebDriv
我正在尝试使用 webdriver 启动 Firefox 实例,但我想指示它使用某些 xvfb 显示。不过,我认为我的代码有问题 FirefoxBinary ffox = new Firefox
我正在使用 selenium 在 Java 上运行测试。 当我运行样本测试时。我得到以下内容 Build info: version: '2.47.2', revision: '4d972c01cab
FirefoxBinary 中的方法 startProfile(FirefoxProfile, File, String) 是否已弃用? 我已经在我的java项目中导入了最新的selenium jar
当我在 Eclipse 中运行 Selenium-Webdriver 脚本时,它工作正常。但是相同的脚本在服务器机器的 jenkins 中运行,它给出了以下错误: 18:00:34 ---------
我正在使用 FireFox 18 和 Selenium 2.29.0。运行测试时出现异常 无法连接到端口 7056 上的二进制 FirefoxBinary(C:\Program Files (x86)
使用Selenium 3.1.0,firefox最新版本72.0,默认firefox驱动2.53.1 这是我的代码 System.setProperty("webdriver.gecko.driver
我是一名优秀的程序员,十分优秀!