Cucumber Plug-in for Eclipse

4
292

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

Step #1

Launch the Eclipse IDE and from Help menu, click “Install New Software”. A dialog window will be opened. Click on “Add” button.

step2_updated

Step #2 

Enter name as “Cucumber” and type “http://cucumber.github.com/cucumber-eclipse/update-site” as location. Click on OK button.

step3_updated

Step #3

Cucumber Eclipse Plugin option will be displayed in the available software list. Check the box and press “Next” button.

step4_updated

Step #4

Select the Cucumber Eclipse Feature Option and click on the Finish button.

step5_updated

Step #5 

Select “I accept the terms of the license agreement” radio button and then click on Finish button.

step6_updated

Step #6

Plugin installation will begin. You may or may not encounter a Security warning, if in case you do just click OK.

step7_updated

 

Step #7

In case you encounter a security popup as below ,just click on the OK button

step8_updated

 

Step #8

After successful installation of Cucumber plugin you will be ask to restart the Eclipse.Click on Yes button

step9_updated

 

Step #9

Once the Eclipse has restarted goto New –> File option

step10_updated

Step #10

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.

step11_updated

The below Cucumber file will open, and you will notice the steps are highlighted

Cucumber Eclipse

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!!!!

4 COMMENTS

  1. Hi,

    i’m Using the Eclipse indigo but not able to install cucumber on it.
    getting the following errors.

    Cannot complete the install because one or more required items could not be found.
    Software being installed: Cucumber Eclipse Feature 0.0.17.201704062133 (cucumber.eclipse.feature.feature.group 0.0.17.201704062133)
    Missing requirement: Cucumber Editor 0.0.17.201704062133 (cucumber.eclipse.editor 0.0.17.201704062133) requires ‘bundle org.eclipse.pde.ui 3.5.0’ but it could not be found
    Cannot satisfy dependency:
    From: Cucumber Eclipse Feature 0.0.17.201704062133 (cucumber.eclipse.feature.feature.group 0.0.17.201704062133)
    To: cucumber.eclipse.editor [0.0.17.201704062133]

    • Hi Divansh,
      make sure you have “Contact all update sites during install to find required software” option checked while installing. refer snap below

      Contact all update sites during install to find required software

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.