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

tamasgyorfi.net | 4 months ago
  1. 1

    August 2012 – Tamas Gyorfi

    tamasgyorfi.net | 4 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 | 1 week 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

  5. 0

    how to execute parallel testing in cucumber

    Stack Overflow | 5 months ago | Test admin
    cucumber.runtime.CucumberException: Classes annotated with @RunWith(Cucumber.class) must not define any Step Definition or Hook methods. Their sole purpose is to serve as an entry point for JUnit. Step Definitions and Hooks should be defined in their own classes. This allows them to be reused across features. Offending class: class com.cucumber.learning.YoutubeTest at cucumber.runtime.junit.Assertions.assertNoCucumberAnnotatedMethods(Assertions.java:13)
  6. 0

    [Cucumber] [CucumberJVM] Is --formatter stepdefs supported in 1.1.1 ?

    narkive.com | 1 year ago
    cucumber.runtime.CucumberException: Couldn't load formatter class: stepdefs

    1 unregistered visitors
    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.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