Today we will learn:

  • What is REST Assured
  • Uses of REST Assured
  • How to create Rest Assured framework from scratch
  • How to create TestNG tests
  • How to create java maven rest assured framework on eclipse
  • How to create bdd tests in rest assured

REST Assured is a Java library for testing RESTful web services
It is used to invoke REST web services and check response
Can be used to test XML as well as JSON based web services
It supports POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD requests and can be used to validate and verify the response of these requests
Can be integrated with testing frameworks like JUnit, TestNG etc
REST Assured is implemented in Groovy

Prerequisites

  • Java
  • IDE (Eclipse, IntelliJ, etc)
  • Maven
  • TestNG

Create 1st rest assured project for API Testing

  • Step 1 : Open Eclipse
  • Step 2 : Create a maven project
  • Step 3 : Add dependencies in pom.xml
  • Step 4 : Save project
  • Step 5 : Add testing plugin
  • Step 6 : Create tests
  • Step 7 : Run and verify

#rest #api #webdev

REST Assured API testing Beginner Tutorial - Getting Started
39.90 GEEK