Page MenuHomePhabricator

Error running Selenium tests in fresh-node

Authored By
jaredblumer
Jan 12 2021, 12:21 AM
Size
14 KB
Referenced Files
None
Subscribers
None

Error running Selenium tests in fresh-node

$ npm run selenium-test
> @ selenium-test /mediawiki
> wdio ./tests/selenium/wdio.conf.js
Execution of 6 spec files started at 2021-01-12T00:12:02.411Z
(node:108) ExperimentalWarning: The dns.promises API is experimental
(node:108) ExperimentalWarning: The fs.promises API is experimental
[0-0] (node:117) ExperimentalWarning: The dns.promises API is experimental
[0-0] (node:117) ExperimentalWarning: The fs.promises API is experimental
[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-0] (node:117) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-0] 2021-01-12T00:12:05.427Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-0] 2021-01-12T00:12:05.429Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-0] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-0] 2021-01-12T00:12:10.443Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-0] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-1] (node:130) ExperimentalWarning: The dns.promises API is experimental
[0-1] (node:130) ExperimentalWarning: The fs.promises API is experimental
[0-1] RUNNING in chrome - /tests/selenium/specs/page.js
[0-1] (node:130) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-1] 2021-01-12T00:12:14.104Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-1] 2021-01-12T00:12:14.107Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-1] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-1] 2021-01-12T00:12:19.123Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-1] FAILED in chrome - /tests/selenium/specs/page.js
[0-2] (node:143) ExperimentalWarning: The dns.promises API is experimental
[0-2] (node:143) ExperimentalWarning: The fs.promises API is experimental
[0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js
[0-2] (node:143) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-2] 2021-01-12T00:12:20.725Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-2] 2021-01-12T00:12:20.727Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-2] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-2] 2021-01-12T00:12:25.743Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-2] FAILED in chrome - /tests/selenium/specs/rollback.js
[0-3] (node:156) ExperimentalWarning: The dns.promises API is experimental
[0-3] (node:156) ExperimentalWarning: The fs.promises API is experimental
[0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-3] (node:156) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-3] 2021-01-12T00:12:27.657Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-3] 2021-01-12T00:12:27.659Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-3] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-3] 2021-01-12T00:12:32.672Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-3] FAILED in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-4] (node:169) ExperimentalWarning: The dns.promises API is experimental
[0-4] (node:169) ExperimentalWarning: The fs.promises API is experimental
[0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js
[0-4] (node:169) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-4] 2021-01-12T00:12:34.451Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-4] 2021-01-12T00:12:34.454Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-4] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-4] 2021-01-12T00:12:39.470Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-4] FAILED in chrome - /tests/selenium/specs/specialwatchlist.js
[0-5] (node:182) ExperimentalWarning: The dns.promises API is experimental
[0-5] (node:182) ExperimentalWarning: The fs.promises API is experimental
[0-5] RUNNING in chrome - /tests/selenium/specs/user.js
[0-5] (node:182) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-5] 2021-01-12T00:12:41.120Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.request.once (/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:277:13)
at ClientRequest.emit (events.js:194:15)
at ClientRequest.EventEmitter.emit (domain.js:441:20)
at ClientRequest.origin.emit.args (/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
[0-5] 2021-01-12T00:12:41.122Z ERROR @wdio/runner: Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
at startWebDriverSession (/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-5] Error: Failed to create session.
Unable to connect to "http://127.0.0.1:4444/wd/hub", make sure browser driver is running on that address.
If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver.
[0-5] 2021-01-12T00:12:46.135Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.setInterval (/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
[0-5] FAILED in chrome - /tests/selenium/specs/user.js
Spec Files: 0 passed, 6 failed, 6 total (100% completed) in 00:00:43
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ selenium-test: `wdio ./tests/selenium/wdio.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ selenium-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /cache/_logs/2021-01-12T00_12_46_415Z-debug.log

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8832028
Default Alt Text
Error running Selenium tests in fresh-node (14 KB)

Event Timeline