CleanGUITestArchitecture
CleanGUITestArchitecture copied to clipboard
Getting error "java.lang.AbstractMethodError at cucumber.runtime.UndefinedStepsTracker"
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:
- Look for more information in the error's stack trace about on which file and which line failed
- 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.
- 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.