![](/img/trans.png)
[英]'yeoman' is not recognized as an internal or external command, operable program or batch file
[英]'protractor' is not recognized as an internal or external command, operable program or batch file
我可以从批处理文件(量角器conf.js)运行量角器,并且脚本运行良好,我已在全局安装了量角器并完成了环境设置。 但是,当我从外部工具配置中进行设置后,从eclipse运行我的批处理文件时,它给出错误“'量角器'未被识别为内部或外部命令,可操作程序或批处理文件”。 我的conf.js
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
我的spec.js
describe('Protractor Demo App', function() {
it('should have a title', function() {
browser.get('http://juliemr.github.io/protractor-demo/');
expect(browser.getTitle()).toEqual('Super Calculator');
});
});
我的Runner.bat
protractor conf.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.