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

GitHub | midopa | 4 months ago
  1. 0

    GitHub comment 467#236389133

    GitHub | 4 months ago | midopa
    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
  2. 0

    Incorrect Ambiguous Step Definitions

    GitHub | 2 years ago | benoitx
    cucumber.runtime.AmbiguousStepDefinitionsException: ✽.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)
  3. 0

    AmbiguousStepDefinitionsException

    Google Groups | 5 months ago | Vinoth Kannan
    cucumber.runtime.AmbiguousStepDefinitionsException: ?.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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AmbiguousStepDefinitionsException

    Google Groups | 5 months ago | Vinoth Kannan
    cucumber.runtime.AmbiguousStepDefinitionsException: ?.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)

    Root Cause Analysis

    1. 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()
    2. Cucumber-JVM: Core
      CucumberScenario.run
      1. cucumber.runtime.RuntimeGlue.stepDefinitionMatch(RuntimeGlue.java:71)
      2. cucumber.runtime.Runtime.runStep(Runtime.java:266)
      3. cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
      4. cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
      5. cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
      5 frames
    3. Cucumber-JVM: JUnit
      ExecutionUnitRunner.run
      1. cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:95)
      1 frame
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.Suite.runChild(Suite.java:127)
      2. org.junit.runners.Suite.runChild(Suite.java:26)
      3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      8 frames
    5. Cucumber-JVM: JUnit
      ExamplesRunner.run
      1. cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
      1 frame
    6. JUnit
      ParentRunner.run
      1. org.junit.runners.Suite.runChild(Suite.java:127)
      2. org.junit.runners.Suite.runChild(Suite.java:26)
      3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      8 frames
    7. Cucumber-JVM: JUnit
      FeatureRunner.runChild
      1. cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
      2. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:65)
      3. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      3 frames
    8. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      6 frames
    9. Cucumber-JVM: JUnit
      Cucumber.runChild
      1. cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:72)
      2. cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
      3. cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
      3 frames
    10. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      6 frames
    11. Cucumber-JVM: JUnit
      Cucumber.run
      1. cucumber.api.junit.Cucumber.run(Cucumber.java:98)
      1 frame
    12. JUnit
      JUnitCore.run
      1. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      1 frame
    13. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    14. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames