Install Cucumber Eclipse Plugin

First do not get confuse with this Cucumber Eclipse Plugin as it is not the main cucumber plugin for running the test as BDD. Even this is not a mandatory plugin but it is quite handy. At start when you write the feature file for the cucumber test, the code for the feature file looks like this:
Cucumber_Eclipse_Plugin_910
Note: None of the keyword in feature file is highlighted, all the text is plain.

Cucumber Eclipse Plugin helps 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 clear. It also enables the run of the feature file independently, without the help of JUnit. We will talk about it later, but as of now please go ahead and install this plugin.

Install Cucumber Eclipse Plugin

It is easy to install Cucumber Eclipse Plugin, as it comes as a plugin for Eclipse IDE. Prerequisite for installing this plugin is your Internet connection should be up & running during installation of this plugin and Eclipse IDE should be installed in your computer. Please see Download and Install Eclipse to setup Eclipse to you system.

Steps to follow:

1) Launch the Eclipse IDE and from Help menu, click “Install New Software”.
Cucumber_Eclipse_Plugin_1

2) You will see a dialog window, click “Add” button.
Cucumber_Eclipse_Plugin_2


3) Type name as you wish, let’s take “Cucumber” and type “http://cucumber.github.com/cucumber-eclipse/update-site” as location. Click OK.
Cucumber_Eclipse_Plugin_3

4) You come back to the previous window but this time you must see Cucumber Eclipse Plugin option in the available software list. Just Check the box and press “Next” button.
Cucumber_Eclipse_Plugin_4
Note: If running behind a proxy server and you get a ‘HTTP Proxy Authentication Required’ error you may need to contact a system administrator to set up your proxy server settings.

5) Click on Next.
Cucumber_Eclipse_Plugin_5

6) Click “I accept the terms of the license agreement” then click Finish.
Cucumber_Eclipse_Plugin_6

7) Let it install, it will take few seconds to complete.
Cucumber_Eclipse_Plugin_7

8) You may or may not encounter a Security warning, if in case you do just click OK.
Cucumber_Eclipse_Plugin_8

9) You are all done now, just Click Yes.