Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "java.lang.AbstractMethodError at cucumber.runtime.UndefinedStepsTracker" #25

Open
MiraSydoruk opened this issue Aug 14, 2018 · 1 comment

Comments

@MiraSydoruk
Copy link

MiraSydoruk commented Aug 14, 2018

No description provided.

@sebaslogen
Copy link
Owner

sebaslogen commented Aug 18, 2018

That method indicates that you wrote a step in one of the .feature files for which there is no Step definition.
Three suggestions to find and fix it:

  1. Look for more information in the error's stack trace about on which file and which line failed
  2. Check the syntax of the sentence, a small typo that it's hard to find when reading the sentence can be the difference between the step in your feature file and your Steps definition java file. One way to help you with this is to use IntelliJ Idea or Android Studio with the Gherkin plugin (maybe also the Cucumber plugin) to let the IDE link your feature and your step definition java files by making the feature file text clickable.
  3. Check the paths of your step definition java files and the annotations on each step definition method to make sure Cucumber can understand them correctly

Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants