cucumber.runtime.AmbiguousStepDefinitionsException: ✽.When I log a debug message(features/asd.feature:16) matches more than one step definition:\n ^I log a (debug|info|warn|error) message$ in Steps.log_message(String)\n ^I log a debug (.*)$ in Steps.log_anything(String)\n

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by midopa
, 1 year ago
✽.When I log a debug message(features/asd.feature:16) matches more than one step definition:\n ^I log a (debug|info|warn|error) message$ in Steps.log_message(String)\n ^I log a debug (.*)$ in Steps.log_anything(String)\n
via Google Groups by Vinoth Kannan, 1 year ago
?.Given I create a OME application with the below table(C:/workspace/com.APM/src/test/resources/features/login.feature:76) matches more than one step definition: I create a OME application in CreateApplication.I_Create_OME_App() I create a OME application with the below table in CreateApplication.I_Create_OME_Application(DataTable)
via GitHub by tfcardoso
, 3 months ago
✽.Then device Samsung S5 taps on more options icon(C:/Users/my_user/Desktop/myGIT/automated/android/features/02_01contacts_manage.feature:12) matches more than one step definition: ^device (.*) taps on (.*) icon in GenericSteps.tapsIcon(String,String) ^device (.*) taps on (.*) option in GenericSteps.tapsOption(String,String)
via GitHub by benoitx
, 2 years ago
✽.And if A is "hello" and B is "Yo"(com/a.feature:22) matches more than one step definition: ^if A is "(.*?)" and B is "(.*?)"$ in StepsDefintions.if_a_and_b(String,String) ^if A is "(.*?)"$ in StepsDefintions.if_a(String)
cucumber.runtime.AmbiguousStepDefinitionsException: ✽.When I log a debug message(features/asd.feature:16) matches more than one step definition:\n ^I log a (debug|info|warn|error) message$ in Steps.log_message(String)\n ^I log a debug (.*)$ in Steps.log_anything(String)\n
at cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:71)
at cucumber.runtime.Runtime.runStep(Runtime.java:266)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:95)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:65)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:72)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

8 times, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.