我正在使用我的一个页面的量角器进行 e2e 测试,有时我会Failed: ETIMEDOUT connect ETIMEDOUT 127.0.0.1:56018
出错。
有时它也会通过而没有任何错误。我不知道发生了什么事!
完整的错误:
Failed: ETIMEDOUT connect ETIMEDOUT 127.0.0.1:56018
Error: ETIMEDOUT connect ETIMEDOUT 127.0.0.1:56018
at ClientRequest.<anonymous> (/Users/pro1/node_modules/selenium-webdriver/http/index.js:238:15)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at Socket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)Error
at ElementArrayFinder.applyAction_ (/Users/pro1/node_modules/protractor/lib/element.ts:482:23)
at ElementArrayFinder.(anonymous function).args [as getText] (/Users/pro1/node_modules/protractor/lib/element.ts:96:21)
at ElementFinder.(anonymous function).args [as getText] (/Users/pro1/node_modules/protractor/lib/element.ts:873:14)
at /Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:107:37
at step (/Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:47:23)
at Object.next (/Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:28:53)
at fulfilled (/Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:19:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
From asynchronous test:
Error
at Suite.<anonymous> (/Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:62:3)
at addSpecsToSuite (/Users/pro1/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
at Env.describe (/Users/pro1/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
at describe (/Users/pro1/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
at Object.<anonymous> (/Users/pro1/e2e/app/data-entity/sme/sme.e2e-spec.ts:30:1)
at Module._compile (module.js:624:30)
at Module.m._compile (/Users/pro1/node_modules/ts-node/src/index.ts:392:23)
at Module._extensions..js (module.js:635:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/pro1/node_modules/ts-node/src/index.ts:395:12)