Page MenuHomePhabricator
Paste P13537

Running Selenium tests on MediaWiki core without Chromedriver
ActivePublic

Authored by Vidhi-Mody on Dec 9 2020, 10:51 AM.
vidhimody@MacBook-Pro  ~/mediawiki   master  npm run selenium-test  1 ↵  4987  16:07:12
> @ selenium-test /Users/vidhimody/mediawiki
> wdio ./tests/selenium/wdio.conf.js
Execution of 6 spec files started at 2020-12-09T10:37:40.391Z
[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-0] (node:9715) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-0] 2020-12-09T10:37:40.870Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-0] 2020-12-09T10:37:40.871Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:37:45.966Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-0] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-1] RUNNING in chrome - /tests/selenium/specs/page.js
[0-1] (node:9727) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-1] 2020-12-09T10:37:46.560Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-1] 2020-12-09T10:37:46.561Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:37:51.563Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-1] FAILED in chrome - /tests/selenium/specs/page.js
[0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js
[0-2] (node:9736) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-2] 2020-12-09T10:37:52.249Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-2] 2020-12-09T10:37:52.250Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:37:57.353Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-2] FAILED in chrome - /tests/selenium/specs/rollback.js
[0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-3] (node:9737) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-3] 2020-12-09T10:37:57.962Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-3] 2020-12-09T10:37:57.962Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:38:02.968Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-3] FAILED in chrome - /tests/selenium/specs/specialrecentchanges.js
[0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js
[0-4] (node:9738) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-4] 2020-12-09T10:38:03.577Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-4] 2020-12-09T10:38:03.577Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:38:08.584Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-4] FAILED in chrome - /tests/selenium/specs/specialwatchlist.js
[0-5] RUNNING in chrome - /tests/selenium/specs/user.js
[0-5] (node:9740) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
[0-5] 2020-12-09T10:38:09.191Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4444
at ClientRequest.<anonymous> (/Users/vidhimody/mediawiki/node_modules/got/dist/source/core/index.js:940:25)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.EventEmitter.emit (domain.js:483:12)
at ClientRequest.origin.emit (/Users/vidhimody/mediawiki/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at Socket.socketErrorListener (_http_client.js:426:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:483:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
[0-5] 2020-12-09T10:38:09.192Z 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 (/Users/vidhimody/mediawiki/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[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] 2020-12-09T10:38:14.293Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/Users/vidhimody/mediawiki/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
[0-5] FAILED in chrome - /tests/selenium/specs/user.js
Spec Files: 0 passed, 6 failed, 6 total (100% completed) in 00:00:33
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! /Users/vidhimody/.npm/_logs/2020-12-09T10_38_14_565Z-debug.log