尝试的项目:https ://github.com/yearofmoo/angularjs-seed-repo
环境:
Windows 7 64 位
NodeJS v 0.10.24
Protractor v 0.16.1
grunt v0.4.2
grunt-cli v0.1.11
笔记:
根据 [Julie's post][1],对于 selenium,install_selenium_standalone 已在 2013 年 12 月 2 日左右替换为 webdriver-manager 二进制文件。这似乎与问题有关。
此外,git 必须安装在项目目录中,并且 npm install 必须在 Windows 中使用 Git Bash 运行。
Git Bash 中的错误:
$ grunt test:e2e --debug
Running "connect:testserver" (connect) task
[D] 任务源:c:\nodejs-0.10.24\node_modules\grunt-contrib-connect\tasks\conn ect.js 开始连接网络服务器在 127.0.0.1:9999。
运行“protractor:singlerun”(量角器)任务
[D]任务源:c:\nodejs-0.10.24\node_modules\grunt-protractor-runner\tasks\pr otractor_runner.js 启动selenium独立服务器...
events.js:72
投掷者;// 未处理的“错误”事件
^
错误:
在 Process.ChildProcess._handle.onexit (child_process.js:771:34)
的 errnoException (child_process.js:980:11)
处产生 ENOENT
> 致命错误:量角器退出代码:8