【发布时间】:2014-01-31 02:04:07
【问题描述】:
尝试的项目: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
注意事项:
根据 [Julie 的帖子][1],对于 selenium,install_selenium_standalone 已在 2013 年 12 月 2 日左右替换为 webdriver-manager 二进制文件。这似乎与问题有关。
此外,git 必须安装在项目目录中,并且 npm install 必须在 Windows 中使用 Git Bash 运行。
Git Bash 中的错误:
$ grunt test:e2e --debug
运行“connect:testserver”(连接)任务
[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
投掷者; // 未处理的“错误”事件
^
错误:生成 ENOENT
在 errnoException (child_process.js:980:11)
在 Process.ChildProcess._handle.onexit (child_process.js:771:34)
> 致命错误:量角器退出,代码:8
【问题讨论】:
标签: angularjs selenium gruntjs protractor angularjs-e2e