Я пытаюсь настроить автоматизацию пользовательского интерфейса с помощью веб-драйвера IO. Я видел репозиторий, показанный ниже, и пытался настроить и запустить проект с очень небольшим успехом.
https://github.com/openfin/webinar-automated-integration-tests
Я сделал все необходимые изменения и исправил все вопросы, которые возникли в процессе. Теперь пользовательский интерфейс hello world появляется, но тесты не запускаются. В пользовательском интерфейсе тоже ничего не происходит. Когда я запускаю тесты, я вижу следующую ошибку
[0-0] 2020-02-11T13:02:54.321Z WARN webdriver: Request failed due to unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
Пожалуйста, найдите под журналами консоли, когда я запускаю тест.
Execution of 1 spec files started at 2020-02-11T12:59:48.259Z
2020-02-11T12:59:48.263Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-02-11T12:59:48.542Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio.conf.js
Application hosted locally on port 4000
[0-0] 2020-02-11T12:59:49.815Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in chrome - C:\Git\webinar-automated-integration-tests\test\hello-world.js
[0-0] 2020-02-11T12:59:50.119Z INFO webdriverio: Initiate new session using the webdriver protocol
[0-0] 2020-02-11T12:59:50.121Z INFO webdriver: [POST] http://127.0.0.1:9515/session
[0-0] 2020-02-11T12:59:50.122Z INFO webdriver: DATA { capabilities:
{ alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
firstMatch: [ {} ] },
desiredCapabilities:
{ browserName: 'chrome',
'goog:chromeOptions': { extensions: [], binary: 'RunOpenFin.bat', args: [Array] } } }
[0-0] 2020-02-11T13:00:51.984Z WARN webdriver: Request failed due to unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
[0-0] 2020-02-11T13:00:51.985Z INFO webdriver: Retrying 1/3
2020-02-11T13:00:51.985Z INFO webdriver: [POST] http://127.0.0.1:9515/session
2020-02-11T13:00:51.985Z INFO webdriver: DATA { capabilities:
{ alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
firstMatch: [ {} ] },
desiredCapabilities:
{ browserName: 'chrome',
'goog:chromeOptions': { extensions: [], binary: 'RunOpenFin.bat', args: [Array] } } }
[0-0] 2020-02-11T13:01:52.511Z WARN webdriver: Request failed due to unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
[0-0] 2020-02-11T13:01:52.511Z INFO webdriver: Retrying 2/3
2020-02-11T13:01:52.511Z INFO webdriver: [POST] http://127.0.0.1:9515/session
2020-02-11T13:01:52.511Z INFO webdriver: DATA { capabilities:
{ alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
firstMatch: [ {} ] },
desiredCapabilities:
{ browserName: 'chrome',
'goog:chromeOptions': { extensions: [], binary: 'RunOpenFin.bat', args: [Array] } } }
[0-0] 2020-02-11T13:02:54.321Z WARN webdriver: Request failed due to unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
[0-0] 2020-02-11T13:02:54.321Z INFO webdriver: Retrying 3/3
2020-02-11T13:02:54.321Z INFO webdriver: [POST] http://127.0.0.1:9515/session
2020-02-11T13:02:54.321Z INFO webdriver: DATA { capabilities:
{ alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
firstMatch: [ {} ] },
desiredCapabilities:
{ browserName: 'chrome',
'goog:chromeOptions': { extensions: [], binary: 'RunOpenFin.bat', args: [Array] } } }
[0-0] 2020-02-11T13:03:56.156Z ERROR webdriver: Request failed due to Error: unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
at getErrorFromResponseBody (C:\Git\webinar-automated-integration-tests\node_modules\webdriver\build\utils.js:124:10)
at Request._callback (C:\Git\webinar-automated-integration-tests\node_modules\webdriver\build\request.js:111:64)
at Request.self.callback (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:185:22)
at Request.emit (events.js:189:13)
at Request.EventEmitter.emit (domain.js:441:20)
at Request.<anonymous> (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:1161:10)
at Request.emit (events.js:189:13)
at Request.EventEmitter.emit (domain.js:441:20)
at IncomingMessage.<anonymous> (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
[0-0] Error: Failed to create session.
unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
[0-0] 2020-02-11T13:03:56.157Z ERROR webdriver: Error: unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
at getErrorFromResponseBody (C:\Git\webinar-automated-integration-tests\node_modules\webdriver\build\utils.js:124:10)
at Request._callback (C:\Git\webinar-automated-integration-tests\node_modules\webdriver\build\request.js:111:64)
at Request.self.callback (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:185:22)
at Request.emit (events.js:189:13)
at Request.EventEmitter.emit (domain.js:441:20)
at Request.<anonymous> (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:1161:10)
at Request.emit (events.js:189:13)
at Request.EventEmitter.emit (domain.js:441:20)
at IncomingMessage.<anonymous> (C:\Git\webinar-automated-integration-tests\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
2020-02-11T13:03:56.157Z ERROR @wdio/runner: Error: Failed to create session.
unknown error: Chrome failed to start: exited normally
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64)
at startWebDriverSession (C:\Git\webinar-automated-integration-tests\node_modules\webdriver\build\utils.js:45:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
[0-0] FAILED in chrome - C:\Git\webinar-automated-integration-tests\test\hello-world.js
2020-02-11T13:03:56.565Z INFO @wdio/cli:launcher: Run onComplete hook
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:04:08
2020-02-11T13:03:56.567Z INFO @wdio/local-runner: Shutting down spawned worker
2020-02-11T13:03:56.819Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-02-11T13:03:56.819Z INFO @wdio/local-runner: shutting down
Я использую Chrome версия "66.0. 3359.181 "и Chrome версия драйвера 2.38
Я застрял с этой проблемой. Любая помощь приветствуется. Заранее спасибо