- Configure Rest Assured in Eclipse
- REST API testing using REST Assured (Updated Example)
- How to make a GET Request using Rest Assured
- How to send a POST Request using Rest Assured 
- How to send PUT Request in Rest Assured? (Updated 2020)
- How to send DELETE request using REST Assured(Updated)
- How to pass Query Parameters in Rest Assured?
- Serialization and De-Serialization using Rest Assured
- JSON Schema Validation with Rest Assured (Updated 2020)
- How to send POST XML Request using Rest Assured?
- Basic Authentication using Rest Assured
- How to upload file using Rest Assured?
- How to Parse JSON Response with REST-assured
- How to handle Path Parameters in Rest Assured? (Updated 2020)
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:
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.
Now, click on version 3.3.0 and copy the dependency from the next page. See the below screenshot.
Finally, add this dependency in your pom.xml like below and save the changes.
Now, check the Rest Assured Jar in the classpath under “Maven Dependencies” on the left panel. See below screenshot:
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
Deepak Verma is a Test Automation Consultant and Software development Engineer for more than 10 years. His mission is to help you become an In-demand full stack automation tester.
He is also the founder of Techndeck, a blog and online coaching platform dedicated to helping you succeed with all the automation basics to advanced testing automation tricks.