In this post, we will see how to configure REST Assured in Eclipse IDE. In order to start the implementation of Rest Assured based test scripts, we need to set up the environment first. For this reason, this tutorial will explain and help to set up the prerequisite and required dependencies in Eclipse.

 

Clean and concise presentation of #RestAssured setup in #Eclipse... Check this out...!!! Click To Tweet

Steps to follow:

1. Create a maven project in eclipse

First, create a maven project in eclipse. While creating the project in eclipse, you can use any ‘groupid‘ and ‘artifactid‘ for the maven pom but as of now, provide the name as  “RestAssuredServicesTestProject” to ‘groupid‘ and ‘artifactid‘.

Note: If you don’t know how to create a Maven Project in Eclipse in detail, please check this post.

Below should be the Structure of the project:

RestAssured_MavenProject_Eclipse_Techndeck

2. Add Rest-Assured maven dependencies

Now search for the latest Rest Assured maven dependencies by clicking this link. On that page, you’ll see various versions of Rest Assured API. You can choose any version but prefer to go with the latest version. Let’s look at the current version highlighted in the screenshot below.

RestAssured_MavenDependency_Techndeck

Now, click on version 3.3.0 and copy the dependency from the next page. See the below screenshot.

RestAssured_MavenDependency_Version_Techndeck

Finally, add this dependency in your pom.xml like below and save the changes.

RestAssured_MavenDependency_POM_Techndeck

Now, check the Rest Assured Jar in the classpath under “Maven Dependencies” on the left panel. See below screenshot:

RestAssured_JAR_Techndeck

Now, you are all set to write RESTAssured Tests that you will see in the next chapters of this tutorial. Keep Learning 🙂

Clean and concise presentation of #RestAssured setup in #Eclipse... Check this out...!!! Click To Tweet

Other References: