Тесты, которые запускаются из конвейера сборки Azure DevOps, периодически завершаются с ошибкой, приведенной ниже.
Error: Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.
at BrowserSet._waitConnectionsOpened (D:\a\1\s\src\test\Testcafe\node_modules\testcafe\src\runner\browser-set.ts:91:30)
at D:\a\1\s\src\test\Testcafe\node_modules\testcafe\src\runner\browser-set.ts:114:35
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Bootstrapper._getBrowserConnections (D:\a\1\s\src\test\Testcafe\node_modules\testcafe\src\runner\bootstrapper.ts:216:16)
at async Promise.all (index 0)
at Bootstrapper._bootstrapParallel (D:\a\1\s\src\test\Testcafe\node_modules\testcafe\src\runner\bootstrapper.ts:392:38)
at Bootstrapper.createRunnableConfiguration (D:\a\1\s\src\test\Testcafe\node_modules\testcafe\src\runner\bootstrapper.ts:425:42)
Версии и настройки, используемые для запуска теста.
Testcafe: 1.8.8
Тестраннер:
return runner
.browsers(['chrome:headless'])
.concurrency(1)
.screenshots('./screenshots', { takeOnFails: true })
.reporter('junit', stream)
.src(['./*tests/*.js'])
.run({
skipJsErrors: true,
skipUncaughtErrors: true,
quarantineMode: false,
selectorTimeout: 15000,
assertionTimeout: 15000,
pageLoadTimeout: 5000,
speed: 1,
debugOnFail: false,
stopOnFirstFail: false
})
Azure конвейер yaml
steps:
- script: |
node testRunner.js