Automate WebServices Rest API (testing) using Java

Understand Rest API

Prepared testcases in Java for Rest api

Rest Assured Library to automate API

Requirements

  • Basic knowledge

Description

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.

Advantage

  • 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

Course content

5 sections • 43 lectures • 5h 40m total lengthExpand all sections

Introduction1 lecture • 4min

  • Introduction04:26

Introduction to API’s4 lectures • 41min

  • What are Web Services09:12
  • Introduction to Soap Protocol13:47
  • What are Rest API’ – GET, POST, PUT & DELETE11:35
  • Real example of Rest Api06:50

Configuring Automation Project18 lectures • 3hr 23min

  • Configuring Maving Project for automation Suite09:48
  • Downloading prerequites to start automation10:00
  • Downloading prerequites to start automation12:08
  • First Test for GET Request11:05
  • First Test for GET Request14:43
  • Using Parameters and Authorization08:32
  • Using Parameters and Authorization10:47
  • How to Handle Get Requests07:48
  • What are json path and to calculate10:57
  • Calculating complex paths11:34
  • Extracting actual result from api’s10:02
  • Transfering api reponse to other api17:40
  • Installing & Configuring API server11:36
  • Automating the Post Request as a string body15:08
  • Request by post object14:35
  • Example with PUT API10:25
  • PATCH request for updating10:21
  • DELETE Request05:43

Developing Objects for complex POST requests4 lectures • 43min

  • Generating complex objects for POST request17:41
  • POST Request with arrays16:55
  • Scripts00:02
  • Calculate Response time of API07:54

Bonus Lecture – SQL Commands16 lectures • 49min

  • Create Table05:37
  • Insert into table05:47
  • Delete Table03:13
  • Add Column03:20
  • Delete Column01:18
  • Modifying datatype of Column03:10
  • Update record02:56
  • Delete record02:21
  • Select01:41
  • Select distinct02:02
  • Where04:56
  • Where OR03:20
  • Where AND03:10
  • Where Not01:17
  • Order by02:42
  • Top/RowNum02:10

Leave a Reply

Your email address will not be published. Required fields are marked *