I am using protractor-cucumber framework, When going to execute more than file with similar any single step in file both are going to skip and getting error ambiguous step definition.
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'
]
How to execute both file without ambiguity?
./Test_Scripts/directory? - Kacper*.featurefiles. I mean files where you have defined your steps. The error says that your steps in*.featurematch to more than one regexps in step definition files. - Kacper