Automate WebServices Rest API (testing) using Java

Prepare Automation Java Suite for testing Rest API
Free tutorial
Rating: 4.3 out of 5 (1,238 ratings)
26,192 students
Automate WebServices Rest API (testing) using Java
Free tutorial
Rating: 4.3 out of 5 (1,238 ratings)
26,192 students
Understand Rest API
Prepared testcases in Java for Rest api
Rest Assured Library to automate API


  • Basic knowledge

API testing is integration testing of API's which checks the functionality , performance & security aspects of API's.

As GUI test is difficult to maintain and requires a considerable amount of period, API has evolved as primary testing of application logic.

API to be tested are those which are developed by development team or third party API's which we would consume in our project.


API testing involves:

  • Calling the API with different parameter values
  • API boundary value conditions
  • Actions performed by API i.e. updating database, calling other API
  • Validating Response


Popular API which are used are REST implement in JSON format, which we will be looking during the course. Rest has become  most popular because it is light and easy to maintain.


Rest-assured is library developed by Jaway which is best open source library specially designed to automated Rest API. It also supports XML and JSON Request/Responses.

No need of any tool when you need to automate API, simple coding skills will let you perfect automation of API, will be taught during the course.


  • Request can be easily prepared and send over internet
  • Assertions in Response data
  • Clean code which is easy to be maintained
Who this course is for:
  • Manual/Automation testers
  • Developers
  • Managers, architects
  • Anyone in industry who want to get knowledge of Rest API or how to automate them
5 sections • 43 lectures • 5h 40m total length
  • Introduction
  • What are Web Services
  • Introduction to Soap Protocol
  • What are Rest API' - GET, POST, PUT & DELETE
  • Real example of Rest Api
  • Configuring Maving Project for automation Suite
  • Downloading prerequites to start automation
  • Downloading prerequites to start automation
  • First Test for GET Request
  • First Test for GET Request
  • Using Parameters and Authorization
  • Using Parameters and Authorization
  • How to Handle Get Requests
  • What are json path and to calculate
  • Calculating complex paths
  • Extracting actual result from api's
  • Transfering api reponse to other api
  • Installing & Configuring API server
  • Automating the Post Request as a string body
  • Request by post object
  • Example with PUT API
  • PATCH request for updating
  • DELETE Request
  • Generating complex objects for POST request
  • POST Request with arrays
  • Scripts
  • Calculate Response time of API
  • Create Table
  • Insert into table
  • Delete Table
  • Add Column
  • Delete Column
  • Modifying datatype of Column
  • Update record
  • Delete record
  • Select
  • Select distinct
  • Where
  • Where OR
  • Where AND
  • Where Not
  • Order by
  • Top/RowNum

Software Testing Coach
Vaibhav Singhal
  • 4.2 Instructor Rating
  • 8,640 Reviews
  • 111,950 Students
  • 14 Courses

I have be in software testing since a decade. Worked with different testing techniques along with exploratory testing. Performed different regression, performance, api etc testing with tools and libraries like selenium, jmeter, loadrunner, protractor, rest assured, Katalon and others.

Worked with various MNC's on various profiles and managed automation projects.

Objective: to help software testing community