cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in test_cases.invalid_login.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/ and test_cases.valid_loign.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/

Stack Overflow | rocky | 1 week ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    cucumber.runtime.DuplicateStepDefinitionException:

    Stack Overflow | 1 week ago | rocky
    cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in test_cases.invalid_login.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/ and test_cases.valid_loign.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/
  2. 0

    GitHub comment 995#276299590

    GitHub | 3 weeks ago | bensmith87
    cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in a.b.StepDefsB.b() in file:/home/ben/dev/bug_995/build/classes/cucumber/ and a.b.StepDefsB.b() in file:/home/ben/dev/bug_995/build/classes/cucumber/
  3. 0

    Cucumber-JVM consider all anotations to be interchangeable

    Stack Overflow | 1 year ago | Ar3s
    cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in my.project.MySteps.wait_it() in file:[...] and my.project.MySteps.set_it() in file:[...]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Appium :cucumber FAILED (DuplicateStepDefinitionException)

    Stack Overflow | 4 months ago | vamc
    cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in com.project.qa.steps.HomeSteps.tap_on_favourites_icon() in file:/Users/admin/bamboo/xml-data/build-dir/PIR-IQDU-JOB1/UITest/build/classes/test/ and com.project.qa.steps.HomeSteps.tap_on_favourites_icon() in file:/Users/admin/bamboo/xml-data/build-dir/PIR-IQDU-JOB1/UITest/build/classes/test/
  6. 0

    [Cucumber-jvm] Incorrect DuplicateStepDefinitionException

    Google Groups | 3 years ago | Martin Spamer
    cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions com.company.automation.trading.fdm.timeline.FdmTimeLineSteps.marketRefreshIsTriggered() in file:/C:/Users/me/workspaces/company-trading/fdm-automation/trading-fdm-timeline/target/test-classes/ and com.company.automation.trading.fdm.timeline.FdmTimeLineSteps.marketRefreshIsTriggered() in file:/C:/Users/me/workspaces/company-trading/fdm-automation/trading-fdm-timeline/target/test-classes/
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. cucumber.runtime.DuplicateStepDefinitionException

    Duplicate step definitions in test_cases.invalid_login.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/ and test_cases.valid_loign.close_browser() in file:/D:/rakesh/folder/neon%20workspace/com.maven.cucum/target/test-classes/

    at cucumber.runtime.RuntimeGlue.addStepDefinition()
  2. Cucumber-JVM: Core
    RuntimeGlue.addStepDefinition
    1. cucumber.runtime.RuntimeGlue.addStepDefinition(RuntimeGlue.java:33)
    1 frame
  3. Cucumber-JVM: Java
    JavaBackend.loadGlue
    1. cucumber.runtime.java.JavaBackend.addStepDefinition(JavaBackend.java:151)
    2. cucumber.runtime.java.MethodScanner.scan(MethodScanner.java:68)
    3. cucumber.runtime.java.MethodScanner.scan(MethodScanner.java:41)
    4. cucumber.runtime.java.JavaBackend.loadGlue(JavaBackend.java:86)
    4 frames
  4. Cucumber-JVM: Core
    Runtime.<init>
    1. cucumber.runtime.Runtime.<init>(Runtime.java:92)
    2. cucumber.runtime.Runtime.<init>(Runtime.java:70)
    3. cucumber.runtime.Runtime.<init>(Runtime.java:66)
    3 frames
  5. Cucumber-JVM: JUnit
    Cucumber.<init>
    1. cucumber.api.junit.Cucumber.createRuntime(Cucumber.java:80)
    2. cucumber.api.junit.Cucumber.<init>(Cucumber.java:59)
    2 frames
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  7. JUnit
    ClassRequest.getRunner
    1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
    2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
    3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
    6 frames
  8. JUnit4 Runner
    JUnit4TestLoader.loadTests
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createUnfilteredTest(JUnit4TestLoader.java:84)
    2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:70)
    3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)
    3 frames
  9. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    4 frames