cucumber.runtime.CucumberException: You're not allowed to extend classes that define Step Definitions or hooks. class MyStepDefinitions extends class MyFixture</pre>

tamasgyorfi.net | 8 months 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. 2

    August 2012 – Tamas Gyorfi

    tamasgyorfi.net | 8 months ago
    cucumber.runtime.CucumberException: You're not allowed to extend classes that define Step Definitions or hooks. class MyStepDefinitions extends class MyFixture</pre>
  2. 0

    Glue conflicts when using multiple backends from the CLI

    GitHub | 5 years ago | dkowis
    cucumber.runtime.CucumberException: Java glue must be a Java package name - not a path: src/test/features/
  3. 0

    cucumber.runtime.CucumberException: You're not allowed to extend classes that define Step Definitio

    Google Groups | 4 months ago | Unknown author
    cucumber.runtime.CucumberException: You're not allowed to extend classes that define Step Definitions or hooks. class cucumber.setps.dashboard.DashboardPageSteps extends class automation.framework.BasePreconditionScript
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. cucumber.runtime.CucumberException

      You're not allowed to extend classes that define Step Definitions or hooks. class MyStepDefinitions extends class MyFixture</pre>

      at cucumber.runtime.java.ClasspathMethodScanner.scan()
    2. Cucumber-JVM: Java
      JavaBackend.loadGlue
      1. cucumber.runtime.java.ClasspathMethodScanner.scan(ClasspathMethodScanner.java:64)
      2. cucumber.runtime.java.ClasspathMethodScanner.scan(ClasspathMethodScanner.java:42)
      3. cucumber.runtime.java.JavaBackend.loadGlue(JavaBackend.java:55)
      3 frames
    3. Cucumber-JVM: Core
      Runtime.<init>
      1. cucumber.runtime.Runtime.<init>(Runtime.java:64)
      2. cucumber.runtime.Runtime.<init>(Runtime.java:51)
      2 frames
    4. cucumber.junit
      Cucumber.<init>
      1. cucumber.junit.Cucumber.<init>(Cucumber.java:58)
      1 frame
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    6. JUnit
      ClassRequest.getRunner
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
      3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
      5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
      6 frames
    7. JUnit4 Runner
      JUnit4TestLoader.loadTests
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
      2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
      3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
      4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
      4 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      4 frames