0
我想通过运行量角器conf.js文件生成步定义骨架。 我需要在量角器中实现BDD。使用黄瓜量角器集成生成骨架
conf.js
exports.config = {
directConnect: true,
capabilities: {
'browserName': 'chrome'
},
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
specs: ['features /*.feature'],
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
特征文件
@tag1
Feature: Add Numbers
As a user of the calculator
I want to add 2 numbers
@tag2
Scenario: Add 2 small numbers
Given the calculator is cleared
When I add 5 and 6
Then the result should be 11
你看到您的控制台输出中的任何错误? – Mallory
错误是什么?问题是什么? – nilesh
看起来像一个重复的问题 - http://stackoverflow.com/questions/38605648/how-to-generate-skeleton-using-cucumber-feature-file – Rocky