Create Rest Assured Project with Eclipse and Maven

Profile picture for user devraj

Eclipse is one of the most widely used tool to create Java project. If you are going to create your first Rest Assured project, I recommend that you should use Eclipse and Maven. Maven is a build automation tool used primarily for Java projects. Follow below steps:

Step 1: Go to File->New->Maven Project
Step 2: Use default location and click Next, you can change location if you want to.
Step 3: Let it remain the default selection for Archetype and Click Next.
Step 4: Enter Group Id, Artifcat Id and Package name.

Give group id as com.organisationName.projectName and artifact id as projectname and package name as com.organisationName.projectName.base and click finish. Do not enter space between words.

  • groupId: a unique base name of the company or group that created the project
  • artifactId: a unique name of the project
  • version: a version of the project
  • package: You can name your first packager here

The first three of these (groupId:artifactId:version) combine to form the unique identifier and are the mechanism by which you specify which versions of external libraries (e.g. JARs) your project will use.

In next lecture we will discuss Jar Files or Maven Dependencies required for Rest Assured Project.