Enroll in Selenium Training

First, do not get confused 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 the 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.

PreRequisites

As its name suggests Cucumber Eclipse Plugin, is a plugin for Cucumber that works with Eclipse. That means that we are going to work on Eclipse IDE for this tutorial. For that first we need to install the pre-requisites mentioned below:

Java JDK: How to install Java?

Eclipse: How to set up Eclipse?

Install Cucumber Eclipse Plugin

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

Steps to follow:

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

Cucumber_Eclipse_Plugin_1

  1. You will see a dialog window, click “Add” button.

Cucumber_Eclipse_Plugin_2

  1. 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

  2. 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.

  1. Click on Next.

Cucumber_Eclipse_Plugin_5

  1. Click “I accept the terms of the license agreement” then click Finish.

Cucumber_Eclipse_Plugin_6

  1. Let it install, it will take few seconds to complete.

Cucumber_Eclipse_Plugin_7

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

Cucumber_Eclipse_Plugin_8

  1. You are all done now, just click Yes.

Cucumber_Eclipse_Plugin_9

Getting Started with Cucumber BDD for Testing in Agile Teams
Getting Started with Cucumber BDD for Testing in Agile Teams
Previous Article
Download Cucumber JVM for Eclipse
Download Cucumber JVM for Eclipse
Next Article

Similar Articles

Feedback