Let’s Start with Cucumber Installation

Install Cucumber Eclipse Plug-in
  • Launch Eclipse IDE and select “Help” Menu > “Install New Software” option
Help > Menu > “Install New Software”
Next > Finish
Create Maven Project and Configure with Cucumber & Selenium
  • Create a new Maven Project by Right clicking on the Package Explorer and selecting “New” > “Other”
  • Filter Maven and select ‘Maven Project’ option
Maven > Maven Project
  • Select “Create a simple project” option
  • Provide the artifact ID as Project Name (e.g. “”CucumberPro”) and Group ID as Package name (e.g. “cbPack”)
  • Search for “Cucumber Maven Dependency” in google and click on the link https://mvnrepository.com/artifact/info.cukes which got appeared in our Search Results
Cucumber dependency
  • Copy the dependency tags for latest versions of both Cucumber JVM: JUnit and Cucumber JVM : Java in between the dependencies tags of pom.xml file and save the Project. Make sure both dependencies versions are same.
Cucumber dependency on POM.xml
Junit
  • Copy the dependency tag for latest version of JUnit in between the dependencies tags of pom.xml file and save the Project
  • Search for “Selenium Maven Dependency” on Google and click on the link https://mvnrepository.com/artifact/org.seleniumhq.selenium which got appeared in our Search Results
  • Copy the dependency tags for latest of Selenium Java in between the dependencies tags of pom.xml file and save the Project
  • Make the project ready for execution in different browsers by downloading and pasting the required drivers under ‘drivers’ folder of the project
executable driver file under drivers folder

Next

Leave a comment

Design a site like this with WordPress.com
Get started