硒化物问题导致无头铬坠落

问题描述

我每天都在CI上运行一些测试,有时我会看到一些测试随机崩溃,并显示错误

Gradle suite > Gradle test > Tests.Shared.InvestorReporting.InvestorReportsContentWithoutEmailsTests > checkIfFundrbirdUserIsAbletoPublishInvestorReport[0](Models.Admins.BaseUser@4df8e2e1) STARTED
Gradle suite > Gradle test > Tests.Shared.InvestorReporting.InvestorReportsContentWithoutEmailsTests > checkIfFundrbirdUserIsAbletoPublishInvestorReport[0](Models.Admins.BaseUser@4df8e2e1) STANDARD_ERROR
    Starting ChromeDriver 81.0.4044.138 (8c6c7ba89cc9453625af54f11fd83179e23450fa-refs/branch-heads/4044@{#999}) on port 8964
    Only local connections are allowed.
    Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicIoUs code.
    [1602777486.077][SEVERE]: bind() Failed: Cannot assign requested address (99)
    Test Failed.
Gradle suite > Gradle test > Tests.Shared.InvestorReporting.InvestorReportsContentWithoutEmailsTests > checkIfFundrbirdUserIsAbletoPublishInvestorReport[0](Models.Admins.BaseUser@4df8e2e1) Failed
    org.openqa.selenium.WebDriverException: unkNown error: Chrome Failed to start: exited abnormally.
      (unkNown error: DevToolsActivePort file doesn't exist)
      (The process started from chrome location /usr/bin/google-chrome is no longer running,so ChromeDriver is assuming that Chrome has crashed.)
    Build info: version: '3.141.59',revision: 'e82be7d358',time: '2018-11-14T08:17:03'
    System info: host: '88868a6a4e86',ip: '172.19.0.6',os.name: 'Linux',os.arch: 'amd64',os.version: '4.4.0-1052-aws',java.version: '1.8.0_242'

当我重新运行测试时,它将通过。 我使用以下代码运行测试:

./gradlew \
  -Dchromeoptions.args=--disable-gpu,--no-sandBox,--window-size=1920x1080,--disable-infobars,--allow-running-insecure-content,--disable-extension,--disable-web-security,--verbose,--disable-notifications,--disable-software-rasterizer,--test-type=browser,--disable-dev-shm-usage,--no-default-browser-check,--disable-setuid-sandBox \
  -Dchromeoptions.prefs=credentials_enable_service=false,password_manager_enabled=false,download_restrictions=0,download.prompt_for_download=false,download.default_directory="$DOWNLOAD_PATH",chrome_preferences.profile_default_content_settings.popups=0,pdfjs.disabled=true,directory_upgrade=true,prompt_for_download=false \
  -Dselenide.baseUrl="$1://$2" \
  -Dselenide.fastSetValue=true \
  -Dselenide.browser=chrome \
  -Dselenide.browserSize=1920x1080 \
  -Dselenide.timeout=4000 \
  "$suitename" --profile

有人知道它为什么会发生以及如何预防吗? 编辑。它总是在其他测试中崩溃。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...