运行e2e时,发生以下错误:E /启动器-错误:ReferenceError:未定义系统-进程退出,错误代码为100

时间:2019-04-01 07:01:35

标签: angular protractor cucumber e2e-testing

当我运行e2e test时,将显示以下堆栈跟踪,并且测试未运行。

`/home/ivanly/projects/<project-name>/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46.zip
[09:46:11] I/update - chromedriver: unzipping chromedriver_2.46.zip
[09:46:11] I/update - chromedriver: setting permissions to 0755 for /home/ivanly/projects/<project-name>/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46
[09:46:11] I/update - chromedriver: chromedriver_2.46 up to date
[09:46:12] I/launcher - Running 1 instances of WebDriver
[09:46:12] I/direct - Using ChromeDriver directly...
[09:46:13] E/launcher - Error: ReferenceError: System is not defined
    at Object.<anonymous> (/home/ivanly/projects/<project-name>/e2e/src/pages/app.po.js:1:63)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/ivanly/projects/<project-name>/e2e/src/features/step_definitions/app.steps.ts:5:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Module.m._compile (/home/ivanly/projects/<project-name>/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/home/ivanly/projects/<project-name>/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[09:46:13] E/launcher - Process exited with error code 100
An unexpected error occurred: undefined`

您能帮助解决这个问题吗?

0 个答案:

没有答案