Rest Api Testing With Rest Assuredpostman Part1

This course will help you get started with REST Assured & Allure Reports using Junit4

Last updated 2022-01-10 | 4.4

- Write REST Assured tests (GET
- POST
- PUT
- PATCH
- DELETE) using the 'given-when-then' method
- Response extraction using Jayway JsonPath
- Generate Fake Test Data

What you'll learn

Write REST Assured tests (GET
POST
PUT
PATCH
DELETE) using the 'given-when-then' method
Response extraction using Jayway JsonPath
Generate Fake Test Data
Create collections & environments in POSTMAN
Use POSTMAN to send different requests (GET
POST
PUT
PATCH
DELETE
OPTIONS & HEAD)
Setup REST Assured Maven project in Eclipse

* Requirements

* This course requires that the user has some basic programming knowledge in JAVA
* Basic understanding of RESTful Services

Description

In the 21st century, almost all web applications use web services to communicate or interact with each other. Most modern day web services are built on Representational state transfer (REST) architecture; REST has gained a lot of popularity and it will continue to do the same due to its simplicity in comparison with other technologies.  

It is very important for software QA engineers, automation engineers and software developers to understand the importance of REST testing and more importantly how to automate these tests. Automating Application Program Interface (API) tests is critical and crucial for most projects due to the fact that API tests are far more stable, reliable and fast.  

In this course, you will be provided with the tools and techniques needed to be successful with REST API Automation using Rest Assured Library in Java & JUnit. We will be focusing on the important topics listed below:  

  • Learn how to create collections & environment variables in POSTMAN   

  • Understand and use POSTMAN to send requests (using GET, POST, PUT, PATCH, DELETE, OPTIONS and HEAD operations)   

  • Introduction to REST Assured, which is a popular open source library used for API test automation   

  • Learn how to setup a REST Assured Maven project  

  • Learn to write tests for GET, POST, PUT, PATCH and DELETE requests using REST Assured

  • Learn to use setup & configure Allure Reports   

  • Provide beautiful DisplayNames,Descriptions, link information in your reports

  • Add detailed test step information & attachment information in the reports


****You will be provided with a Students Application, that you can run locally on your machine****

****The course will introduce you to Bestbuy API playground(which contains ~50,000 products) application which can be run locally

All the code is available for download & instructor support will be provided to questions.

Who this course is for:

  • QA Engineers who want to learn how to write API automation
  • Automation Engineers, SDETs who want to learn an additional Java Testing library for RESTful API's
  • Software developers who would like to learn the art of API Test automation using REST Assured

Course content

8 sections • 51 lectures

Starting "Students" Application Preview 07:00

IMPORTANT: For users using Java 9 Preview 00:05

Docker install Windows Preview 05:57

Docker. install Mac Preview 03:48

Launching Student app docker image Preview 04:49

Inspecting browser traffic using chrome developer tools Preview 06:38

Installing Postman REST Client Preview 02:29

Organizing POSTMAN (creating collections, adding environments) Preview 10:32

GET Request (Getting information about resources) Preview 13:15

POST Request (Adding information) Preview 05:00

PUT Request (Updating information) Preview 03:08

PATCH Request (Updating selective information) Preview 01:27

DELETE Request (Deleting information) Preview 01:40

OPTIONS (Getting information on a particular resource) Preview 03:08

HEAD Method Preview 02:27

Java installation on Mac OS Preview 05:15

Maven installation on Mac OS Preview 04:33

Eclipse Installation on Mac OS Preview 02:31

Java installation on Windows OS Preview 04:55

Maven installation on Windows OS Preview 03:50

Eclipse Installation on Windows OS Preview 02:38

Project setup using maven, junit, & rest-assured Preview 07:56

Popular test writing styles in Rest Assured Preview 06:51

Writing our first using Rest Assured Preview 10:20

Static import of Rest Assured methods Preview 01:59

Passing QueryParams in GET Request Preview 07:19

Passing Path Params in GET Request Preview 03:45

Reusability with RestAssured constants(port, baseURI ,basePath) Preview 06:27

POST request with payload as String Preview 05:33

POJO creation & Java object payload with Gson Preview 10:41

Creating Fake Test Data with Java Faker library Preview 03:49

Updating Student information with PUT request Preview 04:30

Update partial info (PATCH request) Preview 01:52

Delete a student using DELETE Request Preview 02:20

Code for download Preview 00:01

Bestbuy API playground setup Preview 07:23

Brief overview on extracting information from response Preview 03:25

Extracting response information with Jayway JsonPath library-p1 Preview 10:07

Extracting response information with Jayway JsonPath library-p2 Preview 14:39

Jayway JsonPath Info Preview 00:01

Code for download. Preview 00:01

Introduction to allure reports Preview 04:06

Creating your first allure report Preview 12:45

Providing meaningful display names to your tests Preview 12:43

Attaching links to your reports Preview 07:53

Grouping tests as stories,epics & features Preview 06:07

Adding step information using @Step annotation Preview 09:20

Adding attachments to your reports Preview 12:09

Code for download Preview 00:00