量角器-失败:未知错误:由于未知错误导致页面崩溃,会话已删除

时间:2018-09-20 08:27:03

标签: protractor cloudbreak

我们使用Jenkinshortonworks/cloudbreak-web-e2e进行e2e测试

自最近以来,我们出现以下错误:

Failed: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed (Session info: chrome=68.0.3440.75) (Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)

堆栈说:

WebDriverError: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome=68.0.3440.75)
  (Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)
    at Object.checkLegacyResponse (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/error.js:546:15)
    at parseHttpResponse (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/http.js:441:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
From asynchronous test: 
Error
    at Suite.describe (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:33:9)
    at addSpecsToSuite (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
    at Env.describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
    at describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
    at Suite.describe (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:32:5)
    at addSpecsToSuite (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
    at Env.describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
    at describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
    at Object.<anonymous> (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:16:1)

在Jenkins控制台输出中可以看到一件有趣的事情:

...
I/update - chromedriver: unzipping chromedriver_2.42.zip
I/update - chromedriver: setting permissions to 0755 for /usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/chromedriver_2.42
I/downloader - curl -o/usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/selenium-server-standalone-3.14.0.jar https://selenium-release.storage.googleapis.com/3.14/selenium-server-standalone-3.14.0.jar
I/downloader - curl -o/usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/geckodriver-v0.22.0.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.22.0/geckodriver-v0.22.0-linux64.tar.gz
I/update - geckodriver: unzipping geckodriver-v0.22.0.tar.gz
I/update - geckodriver: setting permissions to 0755 for /usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/geckodriver-v0.22.0
Running Protractor tests
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Report destination:   build/test-results/screenshots/report.html
I/launcher - Running 1 instances of WebDriver
I/direct - Using ChromeDriver directly...
Started
...F(node:127) UnhandledPromiseRejectionWarning: WebDriverError: no such session
  (Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)

首先显示“ ...解压缩chromedriver 2.42”,但后来似乎使用2.41和Chrome(ium)68?

在本地运行e2e测试(没有Jenkins不在Docker映像中运行,因此在具有Chrome(ium)69和Chromedriver 2.42的IntelliJ中运行)没有错误。

0 个答案:

没有答案