Cucumber Plug-in for Eclipse
Cucumber Eclipse Plugin is used by eclipse to understand the basic Gherkin syntax and it works like a syntax highlighter. It highlights all the main syntax in the feature file which makes it more readable and more clearer.
In this post we are going to discuss about the installation of Cucumber Eclipse Plug-in. I have tried to put together a step by step instruction with screenshot, hope this will be helpful for you.
10 Steps to Configure Cucumber Eclipse plugin
Installation of Cucumber Eclipse Plugin is easier, as it comes as a plugin for Eclipse IDE.
Launch the Eclipse IDE and from Help menu, click “Install New Software”. A dialog window will be opened. Click on “Add” button.
Enter name as “Cucumber” and type “http://cucumber.github.com/cucumber-eclipse/update-site” as location. Click on OK button.
Cucumber Eclipse Plugin option will be displayed in the available software list. Check the box and press “Next” button.
Select the Cucumber Eclipse Feature Option and click on the Finish button.
Select “I accept the terms of the license agreement” radio button and then click on Finish button.
Plugin installation will begin. You may or may not encounter a Security warning, if in case you do just click OK.
In case you encounter a security popup as below ,just click on the OK button
After successful installation of Cucumber plugin you will be ask to restart the Eclipse.Click on Yes button
Once the Eclipse has restarted goto New –> File option
Enter the filename as XXXX.feature and click on Finish button . Please note file name can be any,but the extension has to be .feature only.
The below Cucumber file will open, and you will notice the steps are highlighted
Now, you are all set working with Cucumber on Eclipse. In our upcoming posts, we will discuss the configuration of cucumber on different IDEs and then automation of Test cases using Cucumber.
Till then Happy Learning!!!!