量角器中的错误 运行 e2e 测试
Errors running e2e tests in Protractor
我正在尝试 运行 angularjs 教程中的 scenarios.js Protractor e2e 测试,此处 https://docs.angularjs.org/tutorial。我正在按照蓝框中教程第二步的说明进行操作。
如果我像他们说的那样进入 angular-phonecat 目录,我可以 运行 npm install
、npm run update-webdriver
和 npm start
而不会出错。我安装了 2.1.0 版的量角器,但是当我尝试 运行 时,出现以下错误:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "protractor"
npm ERR! node v0.12.4
npm ERR! npm v2.11.1
npm ERR! code ELIFECYCLE
npm ERR! angular-phonecat@0.0.0 protractor: `protractor test/protractor-conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 protractor script 'protractor test/protractor-conf.js'.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! protractor test/protractor-conf.js
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/cohenwan/Sites/angular-phonecat/npm-debug.log
我不确定应用教程的文档是否有问题,但我真的很想学习如何在 Protractor 中进行端到端测试,但这没有帮助。有什么建议吗?或者学习量角器的更好方法的建议?
我发现我需要在此处下载 chrome 驱动程序:http://chromedriver.storage.googleapis.com/index.html?path=2.15/。我下载了mac32.zip。现在它正在运行。
我正在尝试 运行 angularjs 教程中的 scenarios.js Protractor e2e 测试,此处 https://docs.angularjs.org/tutorial。我正在按照蓝框中教程第二步的说明进行操作。
如果我像他们说的那样进入 angular-phonecat 目录,我可以 运行 npm install
、npm run update-webdriver
和 npm start
而不会出错。我安装了 2.1.0 版的量角器,但是当我尝试 运行 时,出现以下错误:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "protractor"
npm ERR! node v0.12.4
npm ERR! npm v2.11.1
npm ERR! code ELIFECYCLE
npm ERR! angular-phonecat@0.0.0 protractor: `protractor test/protractor-conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 protractor script 'protractor test/protractor-conf.js'.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! protractor test/protractor-conf.js
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/cohenwan/Sites/angular-phonecat/npm-debug.log
我不确定应用教程的文档是否有问题,但我真的很想学习如何在 Protractor 中进行端到端测试,但这没有帮助。有什么建议吗?或者学习量角器的更好方法的建议?
我发现我需要在此处下载 chrome 驱动程序:http://chromedriver.storage.googleapis.com/index.html?path=2.15/。我下载了mac32.zip。现在它正在运行。