Cucumber features are not being recognized by Eclipse
Solution 1
It may be because of the plug-in you installed not compatible with version of eclipse. You should check supported version on plugin page. I am using qaf bdd editor for eclipse and it works fine for me. It supports Kepler (4.3) or above up to latest and works well for feature file written in gherkin
with cucumber step implementation.
Solution 2
From the Cucumber docs on using Eclipse:
"Eclipse has the Cucumber Eclipse plugin"
Have you installed this plugin? (I don't use Eclipse so I'm not familiar with the plugin you've mentioned).
Solution 3
Even though it changes the icon of your file(see below OpenWebPage.Feeature) and it looks in green round, by default the editor remains the text editor
Right click with the file being open and select Cucumber Editor
Now the colors will automatically change, as now the editor is changed and would look like below
All credits too http://go-gaga-over-testing.blogspot.com/2014/10/eclipse-cucumber-plugin-syntax.html as i also faced the same problem and this helped me
Chaitanya Maligi
Updated on June 04, 2022Comments
-
Chaitanya Maligi almost 2 years
I have installed Natural 0.7.6 version plugin from Eclipse Market and the installation was successful. I tried Cucumber feature and Eclipse is not recognising the same.
After installing Natural 0.7.6, I created a "Features" package and added a file called "login.feature" The keywords like Scenario, When, Given aren't getting highlighted.
Feature: Macys Login Feature Scenario: Macys Login Test Scenario Given User is already on Login Page When title of login page is Macys Then user enters Username