cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Step Definition match - feasibility of specifying priority

SOLVED
Occasional Visitor

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 there a way to tell Cucumber to look for exact match first if not use the generic step definition ?
 
Thanks
muhi
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

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.

------
I'm the creator and lead developer of Cucumber Open.

View solution in original post

1 REPLY 1
Highlighted
Moderator

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.

------
I'm the creator and lead developer of Cucumber Open.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements