如何解决间歇性的“错误:服务器提前终止,状态为69”

时间:2018-12-08 12:53:11

标签: selenium-webdriver

我正在使用selenium-webdriver运行测试,随机地一些中间测试失败,并显示“错误:服务器以状态69提前终止”,然后对于下一个测试它仍然可以正常进行。

所以我想知道

  1. 我应该在哪里寻找状态码69的含义
  2. 如果这表示未处理的错误(如下一行所示),我该如何进一步调试原因

thx

  console.error node_modules/jest-jasmine2/build/jasmine/Env.js:157
    Unhandled error

  console.error node_modules/jest-jasmine2/build/jasmine/Env.js:158
    Error: Server terminated early with status 69
        at earlyTermination.catch.e (PATH\node_modules\selenium-webdriver\remote\index.js:252:52)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:189:7)
    From: Task: WebDriver.createSession()
        at Function.createSession (PATH\node_modules\selenium-webdriver\lib\webdriver.js:769:24)
        at Function.createSession (PATH\node_modules\selenium-webdriver\firefox\index.js:521:41)
        at createDriver (PATH\node_modules\selenium-webdriver\index.js:170:33)
        at Builder.build (PATH\node_modules\selenium-webdriver\index.js:645:16)
        at Object.get (PATH\src\setup\web\driver.ts:13:9)
        at Object.<anonymous> (PATH\src\setup\web\setup.ts:9:19)
        at Generator.next (<anonymous>)
        at PATH\src\setup\web\setup.ts:7:71
        at new Promise (<anonymous>)
        at Object.<anonymous>.__awaiter (PATH\src\setup\web\setup.ts:3:12)
        at Object.beforeAll (PATH\src\setup\web\setup.ts:18:12)
        at Object.<anonymous> (PATH\src\setup\common.ts:215:17)
        at Generator.next (<anonymous>)
        at PATH\src\setup\common.ts:7:71
        at new Promise (<anonymous>)
        at Object.<anonymous>.__awaiter (PATH\src\setup\common.ts:3:12)
        at Object.<anonymous>.beforeAll (PATH\src\setup\common.ts:213:22)
        at Object.asyncJestLifecycle (PATH2\node_modules\jest-jasmine2\build\jasmine_async.js:63:37)
        at resolve (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:56:12)
        at new Promise (<anonymous>)
        at mapper (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:43:19)
        at promise.then (PATH2\node_modules\jest-jasmine2\build\queue_runner.js:87:41)
        at <anonymous>

0 个答案:

没有答案