mardi 4 août 2020

Testcafe tests fails from azure devops

Tests that are run from Azure devops build pipeline fails sporadically with the below error.

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)

Versions and settings used for running the test.

Testcafe: 1.8.8

Testrunner:

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
  })

Aucun commentaire:

Enregistrer un commentaire