Skip to content
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

Errors after upgrading to v1.0.0 #55

Closed
rejas opened this issue Jul 3, 2018 · 6 comments
Closed

Errors after upgrading to v1.0.0 #55

rejas opened this issue Jul 3, 2018 · 6 comments
Assignees
Labels

Comments

@rejas
Copy link
Contributor

rejas commented Jul 3, 2018

No problems with running this plugin in v0.3.3 but updateing to v1.0.0 this comes up when calling:

error:

[14:34:29] Starting nightwatch...

[Ilb2] Test Suite
=================
    POST  /wd/hub/session - ECONNREFUSED
Error: connect ECONNREFUSED 127.0.0.1:4444
   An occurred error while retrieving a new session: "connect ECONNREFUSED 127.0.0.1:4444"
       at Socket.socketErrorListener (_http_client.js:387:9)
_________________________________________________

TEST FAILURE: 1 error during execution 0 tests failed, 0 passed. 1.218s

 × ilb2

  An occurred error while retrieving a new session: "connect ECONNREFUSED 127.0.0.1:4444"
       at Socket.socketErrorListener (_http_client.js:387:9)

   SKIPPED:
   - Open and Close lightbox page
   - Caption
   - Deep links
   - Dynamic add
   - Manual trigger
   - Navigation

[14:34:31] '<anonymous>' errored after 2.18 s
[14:34:31] Error in plugin "gulp-nightwatch"
Message:
    nightwatch exited with code 5
Details:
    domainEmitter: [object Object]
    domain: [object Object]
    domainThrown: false

[14:34:31] 'night:js' errored after 3.32 s

my config:

{
    "src_folders" : [ "./test/src" ],
    "output_folder" : "./test/reports",

    "selenium" : {
        "start_process" : true,
        "server_path" : "./test/resources/selenium-server-standalone-3.13.0.jar",
        "log_path" : false,
        "port" : 4444,
        "cli_args" : {
            "webdriver.chrome.driver" : "./test/resources/chromedriver.exe"
        }
    },

    "test_settings" : {
        "default" : {
            "launch_url" : "http://localhost",
            "selenium_port"  : 4444,
            "selenium_host"  : "localhost",
            "silent": true,
            "desiredCapabilities": {
                "browserName" : "chrome",
                "javascriptEnabled" : true,
                "acceptSslCerts" : true
            }
        }
    }
}
@tatsuyafw tatsuyafw self-assigned this Jul 4, 2018
@tatsuyafw
Copy link
Owner

@rejas

As far as I saw the logs you pasted, a selenium server dose not seem to be running in your environment. Please access to http://localhost:4444 with a browser, and check whether a selenium server works fine.

@rejas
Copy link
Contributor Author

rejas commented Jul 4, 2018

Isnt gulp-nightwatch starting the selenium server itself? My gulp workflow only starts a dev server at http://localhost:8080/docs/

@tatsuyafw
Copy link
Owner

Isnt gulp-nightwatch starting the selenium server itself?

Yes. To be exact, gulp-nightwatch starts a selenium server via nightwatch when start_process set to true in nightwatch.js.
But, I've found that gulp-nightwatch v1.0.0 does not start a selenium server. Sorry, this is a bug. I'll fix it.

@rejas
Copy link
Contributor Author

rejas commented Jul 4, 2018

Glad to know its a bug and not my code for once :-)

@tatsuyafw tatsuyafw added the bug label Jul 4, 2018
markafitzgerald1 added a commit to markafitzgerald1/cribbage-analyst that referenced this issue Jul 15, 2018
Candidate resolution of issue #33, "Resolve Travis CI Nightwatch
failures since #32 resolution".  Moving away from PhantomJS as its
development has been discontinued
(ariya/phantomjs#15344), its latest and final
version (2.1.1) does not support Web Fonts
(https://stackoverflow.com/q/23404658/1840078) which were recently
added to this project, it does not work with any version of Selenium
beyond 3.5.3 save for 3.7.1 based on my own testing (perhaps related:
Firefox on Selenium 3.5+ breakage:
nightwatchjs/nightwatch#1628), local download
of Google Fonts is hard to automate and PhantomJS user-agent cannot be
changed without likely modifications to Nightwatch.

Also: updated gulp-nightwatch to latest non-broken version - 1.0.0 is
broken (tatsuyafw/gulp-nightwatch#55)... and
depends on [email protected] which is still in beta.

Replaced slower and less reliable pause(time) calls with
.waitForElementPresent(selector, time) calls to increase e2e test
clarity and reliability.
@tatsuyafw
Copy link
Owner

@rejas

I've fixed this issue, and released as v1.0.1.

@rejas
Copy link
Contributor Author

rejas commented Jul 16, 2018

@tatsuyafw Works! Thx a lot!

@rejas rejas closed this as completed Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants