-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng e2e fails with Error code 135 #2176
Comments
Are you behind a proxy by any chance? |
You seem to have some hosts/ports blocked.
There might be a way around it, but I'd advice to check https://github.com/angular/protractor on how to do it. The CLI just uses protractor for e2e tests. |
No, no proxy. And you do realize that 127.0.0.1 is the localhost, right? So no, there aren't any ports blocked. |
I'm also getting this issue on my home PC (work computer works fine). |
For me this turned out to be an issue w/ the latest version of Chrome (v54) and how it interacts w/ Chromedriver. So when you install the latest Chromedriver via
That will download version v.2.24. However, if you are connecting to Protractor using
Kind of annoying but at least it's working. |
Thanks @ecozoic your solution has helped running protractor tests again for Chrome 54. |
Just tried this on Mac OS Sierra and got a bunch of errors, on a pretty much stock Angular-CLI app:
|
Yeah you might have to adjust the path of |
Hm. Seems there isn't a "chromedriver" anywhere. I did a |
Thanks ecozoic for the workaround. Just sharing that in my case all I had to do was the below in order to solve our issue with protractor:
|
In my project (again, a simple Angular-cli app), there isn't anything under the I did find
It looks like it's trying and failing to download |
Exactly same error than jtsom. |
I am having this exact same problem since Chrome updated to v54 and getting the same errors when trying to download chromedriver version 2.24. Has anyone found a solution? |
If that helps anyone I manualy downloaded the chrome-driver version 2.24. from http://chromedriver.storage.googleapis.com/index.html and that did the job for me as when I run the commands now it finds it from the temp directory |
@mantisbayne if you are still having problems you might try:
Providing you are on an updated version of protractor this problem should resolve itself automatically without manually downloading the chromedriver. I would nuke your node_modules directory and do a fresh |
I forgot I had posted on this thread too. I got a response from protractor that webdriver-manager was updated two days ago, so everything started working again once I updated to 4.0.9. & did npm install. Issue fixed |
I'm still encountering this issue with the following (up to date) dependencies:
For the time being I switched to using Canary with the following settings within
|
angular/protractor#1198 (comment) mentions a chromedriver bug and a temporary solution by setting
... works for me. |
…erage) ### What is this PR for? Improved testing environment for zeppelin-web - added `test:watch` command for continuous testing - displaying coverage report in console - e2e testing in zeppelin-web (can be written easily compare to the zeppelin-server integration tests. For example: [home.spec.js](https://github.com/1ambda/zeppelin/blob/f90deb4bf3db57e36232c9c94ae3b07dfd7c2331/zeppelin-web/e2e/home.spec.js)) This PR adds [a zeppelin-web specific travis profile](https://github.com/1ambda/zeppelin/blob/ad08a3bc0da420f7a7b4771d1aee8bfdd962efa7/.travis.yml#L55) and it usually takes 8-9 mins to execute unit + e2e tests (zeppelin-web) - https://travis-ci.org/1ambda/zeppelin/jobs/252453901 #### Details - the headless chrome browser works with chromedriver 2.29+ (https://chromium.googlesource.com/chromium/src/+/c75dbfd25cc376b92a494d340259056a01e1432e) - in the case of ubuntu precise (our travis container), should use `/usr/bin/chromium-browser` - `xvfb` is required, please refer https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI and https://iamakulov.com/notes/install-google-chrome-on-travis/#what-does-the-code-mean - for protractor conf, please check travis-ci/travis-ci#7650 (comment) - can't install stable version of chrome, precise (12.04) support was dropped by chrome - chromium-browser (37.0) is shipped by default in precise and chromedriver version 2.11 is compatible with it. (https://support.saucelabs.com/hc/en-us/articles/225095307-Chromedriver-version-for-each-Chrome-browser-version, travis-ci/travis-ci#5899) ### What type of PR is it? [Improvement] ### Todos * [x] - `test:watch` * [x] - displaying coverage reports in console * [x] - e2e testing in zeppelin-web ### What is the Jira issue? [ZEPPELIN-2342](https://issues.apache.org/jira/browse/ZEPPELIN-2342) ### How should this be tested? CI should be green. If you want to test locally, - stop zeppelin which is running on localhost:8080 - `mvn package -DskipTests -DskipRat -Pweb-ci -B` - `mvn verify -DskipRat -pl 'zeppelin-web' -Pweb-ci -Pweb-e2e -B` #### Screenshots (coverage) ![image](https://user-images.githubusercontent.com/4968473/28031333-dc700c3a-65e1-11e7-96ca-582a9ffa97dd.png) #### Screenshots (e2e) ![image](https://user-images.githubusercontent.com/4968473/28032319-0e8b5adc-65e5-11e7-81ba-4e33c5f15bc0.png) ### Questions: * Does the licenses files need update? - NO * Is there breaking changes for older versions? - NO * Does this needs documentation? - YES, updated Author: 1ambda <1amb4a@gmail.com> Closes #2477 from 1ambda/ZEPPELIN-2342/differentiate-unit-and-integration-testing and squashes the following commits: ad08a3b [1ambda] fix: Restore all other pfoeils b6ff6d9 [1ambda] fix: Use 2.30 832cffb [1ambda] fix: Use 2.27 for chrome driver 4d82f03 [1ambda] fix: use 2.30 chromedriver 93cc90b [1ambda] fix: run unit test only when web-e2e enabled 0911afb [1ambda] fix: Update chromedriver version 893f67e [1ambda] fix: Set ignoreSync false for angular app 9b91ae2 [1ambda] fix: restore all other profiles dd300c2 [1ambda] fix: split if a5deed0 [1ambda] fix: Run xvf ni foreground 8d1ab5b [1ambda] fix: Remove sleep 3s 9a81fa1 [1ambda] fix: Add space between & and ; e924e76 [1ambda] fix: pass test, use 2 dists 58cfb23 [1ambda] fix: test 2 dist 0dc0304 [1ambda] fix: Use trusty for the second profile2 bf62085 [1ambda] fix: Remove version 61a7f9e [1ambda] fix: DO NOT USE CHROME_BIN 8926cd8 [1ambda] fix: use 2.11 9c20a44 [1ambda] fix: print chrome version f961a90 [1ambda] use before_install 9ed1e12 [1ambda] set info for test efc831c [1ambda] fix: remove headless db016a3 [1ambda] fix: use headless chrome in local 481528f [1ambda] fix: use precise 5a096da [1ambda] fix: use chromium-browser fcfa9c0 [1ambda] fix: required 282c83e [1ambda] fix: use beta 5a0d111 [1ambda] fix: use trusty 93fb571 [1ambda] fix: ls usr bin aff874f [1ambda] fix: use no-sandbox for sudo false contrainer 7d454a5 [1ambda] fix: Run xvfb in background 23e5670 [1ambda] fix: use beta chrome 3e9f494 [1ambda] fix: Use /usr/bin/chrome 55faa0e [1ambda] fix: Use google-chrome-stale 7da9845 [1ambda] WIP: Remove all other profiles a45f131 [1ambda] WIP: pass all tests 628ff34 [1ambda] fix: Set chromedriver version 763f3e2 [1ambda] fix: Set env 9450668 [1ambda] fix: redirect dbus into null bcac8a4 [1ambda] fix: Remove sandbox facf4c1 [1ambda] fix: Remove -X 20a8cfd [1ambda] fix: use no-sandbox 0662f92 [1ambda] fix: Set -X for web fc9d31f [1ambda] fix: Use CHROME_BIN2 4acb8e2 [1ambda] fix: Use CHROME_BIN 4699491 [1ambda] fix: Set info for e2e 905e6ad [1ambda] fix: Install chrome from source 7f5abfd [1ambda] fix: before_start 1f345ae [1ambda] fix: use headless dd115c3 [1ambda] fix: use direct connect 7d53d51 [1ambda] fix Remove chrome option eb9f0e8 [1ambda] fix: Set direct connect false 7c69f7a [1ambda] fix: Set chromeOnly for protractor d5e62e7 [1ambda] fix: Set chrome driver version https://github.com/angular/angular-cli/issues/2176\#issuecomment-253496181 f94a665 [1ambda] fix: Modify timeout for protractor 35b6fb1 [1ambda] WIP: Remove -X option to second job 5189807 [1ambda] chore: Add TEST_MODULES in travis.yml e354b1b [1ambda] chore: DO NOT rebuild web when e2e enabled b6d730f [1ambda] fix: echo commandsin travis.yml 6907c50 [1ambda] chore: Ingmore except web in test build 9f13d61 [1ambda] chore: Use usual test build command 4ef0a2c [1ambda] chore: Remove useless mvn setting 26ef708 [1ambda] fix: use prebuilt phantom f90deb4 [1ambda] chore: Move web e2e into zeppelin-web 40ac076 [1ambda] chore: New profile for e2e test only 7703615 [1ambda] WIP: Add -X to the second travis profile 0c2c1ec [1ambda] chore: Add web-e2e profile to mvn ca2b170 [1ambda] WIP: add -e mvn option to the second profile 0c09727 [1ambda] fix: Remove -X option from selenium profile 0907d72 [1ambda] chore: Ingnore protractor conf in RAT 2ed3973 [1ambda] fix: set gecko false for webdriver manager. See angular/webdriver-manager#216 eb447ef [1ambda] WIP: add -X log to selenium profioe 742bb96 [1ambda] chore: Exclude e2e specs from RAT b5a17a4 [1ambda] chore: Bind browser e2e test into CI process 76f4f58 [1ambda] docs: Update test section in zeppelin-web/README.md 15473de [1ambda] test: Add a basic e2e test for home 39dc77e [1ambda] chore: Add test:watch command e70281b [1ambda] feat: Use spec repoter and coverage
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Mac OSX El Cap
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.14
node: 6.6.0
os: darwin x64
do on your code? etc.
new application, start the server with
ng serve
and in another terminal window try to run the tests withng e2e
more information.
The text was updated successfully, but these errors were encountered: