How to Start with Maven project.

This is the first step to start the BDD project which includes a basic skeleton.

Below is the step-by-step process to create the maven project.

This is the very basic structure so that one can easily adapt the project structure and start with BDD testing.


Step 1: Go to HELP in the Menu in Eclipse and Click on Install new software.



Step 2:

  • Paste the given repository URL in the Works with Field.

http://cucumber.github.io/cucumber-eclipse/update-site/
  • Now click finish

  • Restart eclipse



Step 3:

  • Go to File -->New -->other-->Maven project


  • Click Next and select Create a Simple Project ( Skip archetype selection).

  • Enter the following information according to the project specifications.

  • I have entered the DS Algo project details and click Finish.


  • Now we need to set up dependencies in the pom.xml ( POM stands for Project Object Model. pom.xml file is nothing but it contains information of project and configuration information for the maven to build the project such as dependencies, build directory, source directory, test source directory, plugin, goals, etc.)

  • Maven automatically reads the pom.xml file, then executes the given task.

  • Now, go to pom.xml



  • Now visit the following URL to download the latest JAR Files into our project.

https://mvnrepository.com
  • Query Junit in the search box and click on the latest jar version.

  • Copy the Maven XML Code and paste in pom.xml


  • Follow the same procedure for the cucumber jar.




That's it we have successfully created our first maven project in cucumber.



22 views0 comments

Recent Posts

See All

Headless Browser in Python

What is a headless browser? A headless browser can access any website but unlike normal browsers (which you currently use) nothing will appear on the screen. Everything is done on the backend side inv