I was just trying out a cucumber-java example with selenium
integrated. My feature file has two scenarios and while executing the
command “cucumber features”, It is executing the first scenario
succesfully, but for the second scenario I am getting the ambiguity
Scenario: Find what I’m looking for in yahoo #
Given I am on the yahoo search page #
Ambiguous match of “I am on the yahoo search page”:
/I am on the (Google|yahoo) search page/' public void main.java.selenium.orbitz.SearchFeature.givenOnHome(java.lang.String) throws java.lang.Exception:in/I am on the (Google|yahoo) search page/’
You can run again with --guess to make Cucumber be more smart
Infact I am getting the same error whenver I try to run more than one
scenario in a feature file with java step definitions. But running the
same via ruby step definitions is working fine. Could anyone please
explain how to solve this ambiguity? Is it not possible to run more than
one scenario of cucumber features using cucumber-java ?
I have attached the contents of env.rb, search.feature and the java file
for which this issue is occurring herewith.