如何解决cucumberjs中的歧义问题?
How to resolve ambiguous problem in cucumberjs?
我正在使用 protractor-cucumber 框架,当要执行多个文件时,文件中任何一个类似的步骤都将跳过并得到错误的模糊步骤定义。
feature 1
Given goto google world
When Send "Mike" to text box
Then verify result should be appear
feature 2
Given goto google world
When Send "Samp" to text box
Then verify result should be appear
config file
cucumberOpts = {
require: ['./Test_Scripts/*.js',
'./Support/hooks.js'],
format: 'json:Reports/results.json',
strict: true
}
suites = [
'/feature/*.feature'
]
如何无歧义地执行两个文件?
步骤定义不明确的类似问题已在此处详细说明:
尝试在配置中使用以下代码行。
specs:['./feature/*.feature'],
我正在使用 protractor-cucumber 框架,当要执行多个文件时,文件中任何一个类似的步骤都将跳过并得到错误的模糊步骤定义。
feature 1 Given goto google world When Send "Mike" to text box Then verify result should be appear
feature 2 Given goto google world When Send "Samp" to text box Then verify result should be appear
config file cucumberOpts = { require: ['./Test_Scripts/*.js', './Support/hooks.js'], format: 'json:Reports/results.json', strict: true } suites = [ '/feature/*.feature' ]
如何无歧义地执行两个文件?
步骤定义不明确的类似问题已在此处详细说明:
尝试在配置中使用以下代码行。
specs:['./feature/*.feature'],