信息生命周期protractor-typescript-cucumber@4.0.0~test:执行测试脚本失败

时间:2019-07-19 07:12:25

标签: protractor package.json browserstack

我正在尝试将量角器与浏览器堆栈集成。 我在package.json和package lock.json中添加了浏览器堆栈本地依赖项。执行脚本时出现错误提示。

PS C:\Users\umohabi\Desktop\testBrowserStack> npm run test

> protractor-typescript-cucumber@4.0.0 test C:\Users\umohabi\Desktop\testBrowserStack
> protractor typeScript/config/config.js

Connecting local

C:\Users\umohabi\Desktop\testBrowserStack\node_modules\q\q.js:155
                throw e;
                ^
LocalError
    at C:\Users\umohabi\Desktop\testBrowserStack\node_modules\browserstack-local\lib\Local.js:65:20
    at ChildProcess.exithandler (child_process.js:285:7)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! protractor-typescript-cucumber@4.0.0 test: `protractor typeScript/config/config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the protractor-typescript-cucumber@4.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\umohabi\AppData\Roaming\npm-cache\_logs\2019-07-19T06_53_02_066Z-debug.log
PS C:\Users\umohabi\Desktop\testBrowserStack>

调试日志:

silly lifecycle protractor-typescript-cucumber@4.0.0~test: Returned: code: 1  signal: null
12 info lifecycle protractor-typescript-cucumber@4.0.0~test: Failed to exec test script
13 verbose stack Error: protractor-typescript-cucumber@4.0.0 test: `protractor typeScript/config/config.js`
13 verbose stack Exit status 1

1 个答案:

答案 0 :(得分:0)

可能的原因之一可能是在配置文件中传递了错误的BrowserStack帐户凭据。您可以从here进行验证。