【发布时间】:2017-04-06 12:32:56
【问题描述】:
我正在用量角器执行黄瓜,一切似乎都很好,因为没有失败,但是当我执行 termal 时说执行了 0 个场景。
这是我的 conf.js:
exports.config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
capabilities: {
'browserName': 'firefox'
},
specs: './features/login.feature',
onPrepare: function(){
browser.driver.manage().window().maximize()
browser.get('http:www.google.com')
},
jasmineNodeOpts: {
showColors: true, // Use colors in the command line report.
},
cucumberOpts: {
require: 'features/steps/my_steps.js',
}
};
这是我的框架树:
但是当我执行protractor conf.js我在终端中有这个输出:
[17:27:45] I/launcher - Running 1 instances of WebDriver
[17:27:45] I/hosted - Using the selenium server at http://127.0.0.1:4444/wd/hub
0 scenarios
0 steps
0m00.000s
所以我只想知道我的 conf.js 是否有问题,或者我应该执行另一个命令来使用量角器运行功能文件。
希望你能帮助我。
【问题讨论】:
标签: javascript protractor automated-tests cucumber