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)

Solutions on the web3

  • 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 midopa
    , 11 months 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
  • ✽.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)
  • Stack trace

    • 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) 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.model.CucumberFeature.run(CucumberFeature.java:165) at cucumber.runtime.Runtime.run(Runtime.java:121) at cucumber.api.cli.Main.run(Main.java:36) at cucumber.api.cli.Main.main(Main.java:18)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 3 months ago