To work with Cucumber we required to configure Cucumber Environment. For this we need to install some cucumber plugin. Go to Market place in eclipse and search for cucumber eclipse plugin. Advantage of this plugin is each and everything like feature files are structured manner which is easy the managed.
Click on the install to install the plugin.
Write the feature file. Feature file contains all the features of the application. Here feature means all the functionality.
Example: For e-Banking project some of the features are Login, Add customer, Edit customer, Delete customer, Check Balance, Deduct Balance, Add Balance, Add Customer details etc.
Download below Jar file for Cucumber
- cobertura code coverage
Also you can download all the above jar from here. Click on the above link. You will able the see the below page. Now search for each Jar file and download. For example search for Cucumber-core as shown in below and click on the link.
In next Page you will able to see the details of Version, Repository, Usages and Date of release of the Jar. You can download any version you want. For now click on 4.8.0 to download.
In next section, Click on the Jar link to download.
Dependency of Cucumber:
Let’s discuss some dependency of cucumber in this section. There is no jar no library variable for you to recognize your Gherkin language and automate. To run the cucumber BDD framework we need to add the below jar.
- Code coverage
From the above discussion we have understood all the dependency plugin required to set up the cucumber environment and how to Configure Cucumber Environment with practical example.
In next section we will check details on feature files.