Are you learning cucumber from scratch? Head over to our Selenium Cucumber Tutorial main page for the step by step cucumber setup guide.
Well, the answer to this question is very straightforward. Interacting with the website, is the action that is performed by Selenium WebDriver. Due to this reason, you will need to download Cucumber as well as Selenium Webdriver jar files. Downloading Selenium Webdriver is pretty easy. You just need to download one zip file which contains all the jars.
But with Cucumber, there are few different jars, all of which you have to download separately. There are few core Cucumber jars and couple of additional dependent jars that you need to download to make it run correctly.
Below, we list out all these jars together with the version numbers that we will use as part of this tutorial series:. Important note: All the jar versions that we have provided above, are the latest ones as on 30 April We will update our articles as and when there are newer versions of these jar files. You can download all the cucumber related jars from Maven Repository using the steps given below.
We will give the detailed steps to download cucumber-core jar. You can then follow the same steps to download the remaining jars as well. The steps are given below:. Using the Search text box, search for cucumber-core. The result is shown in the image below. In the above image, you have to look for the file name which we have marked with the box.
However, you will see that the same file name, cucumber-core, comes up 2 times in the search results. The first result is with the artifact id — info. And the second one is with the id io. Important Note: io. You can figure this out with the release date as well. So for all the cucumber related jars, wherever you see both io. Click on cucumber-core which has id io.
You will now see a page which shows different version of this jar file. Click on the latest version to open it always go with the latest version, unless its a beta version or some other intermediate one. You will now see the page as shown below.
Click on jar link to download the jar file. You can now save the jar file on your machine. Follow the same steps to download the remaining jar files with io.
Please note that you will not find io. This is because these 2 jars are not part of the main cucumber library. These are external dependencies which cucumber needs in order to run correctly. But this is bit tricky for the people who do not have much experience with Maven and may end up in wasting a lot of time. There are few prerequisites for setting up cucumber in eclipse. Once Maven is installed on eclipse and a Maven project is created, the next step is to add cucumber dependencies on the project.
I have written a nice tutorial on Maven and how to add dependencies in to Maven project. The way we have added Selenium dependencies in the article the same way add the below mentioned dependencies in to the Maven POM.
Do not forget to add all the dependencies for all the below mentioned jars required for Cucumber set up:. For example , Open the pom. Table of Contents. Cucumber Tutorial. Next Lesson. Share this post:. Install Cucumber Eclipse Plugin. Configure Eclipse with Cucumber. Author: Lakshay Sharma. Execution Order of Hooks.
0コメント