量角器测试-无法将未定义或null转换为对象

时间:2019-10-23 20:36:56

标签: javascript angularjs protractor

当我尝试使用以下命令启动量角器测试时,出现以下错误消息。

C:\protractor\test>protractor conf.js
C:\Users\username\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:155
                throw e;
                ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at beforeLaunch (C:protractor\test\conf.js:96:13)
    at C:\Users\username\AppData\Roaming\npm\node_modules\protractor\built\util.js:46:49
    at Function.promise (C:\Users\username\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:682:9)
    at Object.runFilenameOrFn_ (C:\Users\username\AppData\Roaming\npm\node_modules\protractor\built\util.js:38:16)
    at Object.initFn [as init] (C:\Users\username\AppData\Roaming\npm\node_modules\protractor\built\launcher.js:104:12)
    at Object.<anonymous> (C:\Users\username\AppData\Roaming\npm\node_modules\protractor\built\cli.js:226:10)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)

我已正确安装nodejs和量角器。我不确定为什么会收到上述错误消息。我跟随this官方量角器测试站点进行量角器测试。

0 个答案:

没有答案