Actions
Bug #38269
closedmgr/dashboard: webdriver-manager sometimes crashes
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
In some cases the webdriver-manager crashes when running the e2e tests from within Jenkins.
It seems like the webUI (login page) is not loading/available fast enough but the tests
try to find the login fields (username/password) in order to send the credentials to login.
While webdriver/Protractor is supposed to wait for the UI/angular to finish loading it seems to me that this isn't really the case sometimes.
While doing some research I found a post where it was mentioned that Protractor does not always wait for Angular, just in some cases.
We might need to check/add some settings ("browser.waitForAngular();" or "browser.ignoreSynchronization = true;").
The webdriver-manager crash looks like this:
[18:52:59] I/launcher - Running 1 instances of WebDriver
[18:52:59] I/direct - Using ChromeDriver directly...
[HPM] POST /api/auth/check -> https://ceph-builders:41356/
[18:53:05] E/launcher - no such element: Unable to locate element: {"method":"css selector","selector":"*[name="username"]"}
(Session info: headless chrome=72.0.3626.96)
(Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 3.10.0-693.el7.x86_64 x86_64)
[18:53:05] E/launcher - NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"*[name="username"]"}
(Session info: headless chrome=72.0.3626.96)
(Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 3.10.0-693.el7.x86_64 x86_64)
at Object.checkLegacyResponse (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.findElement(By(css selector, *[name="username"]))
at Driver.schedule (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
at Driver.findElement (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/webdriver.js:1014:17)
at onPrepare (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/protractor.conf.js:39:20)
at q_1.Promise (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/util.js:46:49)
at Function.promise (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:682:9)
at Object.runFilenameOrFn_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/util.js:38:16)
at plugins_.onPrepare.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/runner.js:98:27)
at _fulfilled (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:834:54)
at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:863:30
at Promise.promise.promiseDispatch (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:796:13)
From: Task: WebElement.clear()
at Driver.schedule (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
at WebElementPromise.schedule_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/webdriver.js:2010:25)
at WebElementPromise.clear (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/selenium-webdriver/lib/webdriver.js:2351:17)
at onPrepare (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/protractor.conf.js:39:53)
at q_1.Promise (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/util.js:46:49)
at Function.promise (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:682:9)
at Object.runFilenameOrFn_ (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/util.js:38:16)
at plugins_.onPrepare.then (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/protractor/built/runner.js:98:27)
at _fulfilled (/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:834:54)
at /home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard/frontend/node_modules/q/q.js:863:30
[18:53:05] E/launcher - Process exited with error code 199
An unexpected error occurred: undefined
Updated by Laura Paduano about 5 years ago
- Subject changed from webdriver-manager crashes to mgr/dashboard: webdriver-manager sometimes crashes
Updated by Tiago Melo about 5 years ago
- Status changed from New to Fix Under Review
- Assignee set to Tiago Melo
- Pull request ID set to 26384
Updated by Tiago Melo about 5 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 151 to Testing & QA
Actions