Forum Discussion

muhilr's avatar
muhilr
Occasional Visitor
4 years ago
Solved

Multiple Step Definition match - feasibility of specifying priority

Hello All, I am using Cucumber-Java, I have a special use case that requires some help from you. I have a generic step definition method that matches any step. Is th...
  • aslakhellesoy's avatar
    4 years ago

    If Cucumber finds two or more matching step definitions, it will throw an error saying it's ambiguous. For this reason you should never use step definitions that matches anything, because you will always get ambiguous errors.