尝试项目:https://github.com/yearofmoo/angularjs-seed-repo
环境:
Windows 7 64位
NodeJS v 0.10.24
量角器v 0.16.1
咕噜v0.4.2
grunt-cli v0.1.11
注意:
对于selenium,根据[Julie的帖子] [1],install_selenium_standalone已于12/2/13左右被webdriver-manager二进制替换。这似乎与这个问题有关。
此外,必须在项目目录中安装git,并且必须在Windows中使用Git Bash运行npm install。
Git Bash中的错误:
$ grunt测试:e2e --debug
运行“connect:testserver”(连接)任务
[D]任务来源:c:\ nodejs-0.10.24 \ node_modules \ grunt-contrib-connect \ tasks \ conn
ect.js
开始在127.0.0.1:9999连接Web服务器。
运行“量角器:singlerun”(量角器)任务
[D]任务来源:c:\ nodejs-0.10.24 \ node_modules \ grunt-protractor-runner \ tasks \ pr
otractor_runner.js
启动selenium独立服务器...
events.js:72
扔掉; //未处理的'错误'事件
^
错误:产生ENOENT
在errnoException(child_process.js:980:11)
在Process.ChildProcess._handle.onexit(child_process.js:771:34)
> 致命错误:量角器退出代码:8
答案 0 :(得分:13)
Java需要运行selenium,所以看起来你没有。