
Explore http methods, including get, post, put, patch, delete, options, and head, and how they retrieve, create, modify, patch, or delete data within rest APIs, highlighting rest flexibility vs soap.
Master the five HTTP status code categories: informational, success, redirection, client errors, and server errors—and learn common codes like 200, 201, 301, 400, 401, and 500 for REST API automation.
Master JSON concepts and jsonpath basics to navigate and extract data from JSON. Use jsonpathfinder.com to build and test REST API automation queries using path expressions, arrays, and objects.
Validate xml responses with Rest Assured by adding query parameters, asserting a 200 status, and verifying city London and country GB in the xml body.
Learn to perform post requests in Rest Assured by sending JSON payloads from a file, validating response status and the created employee id.
Learn to pass multiple values for a single parameter using a codes query parameter, with alpha codes in the rest countries API, and observe semicolon or comma as delimiters.
Explore how headers function as metadata in API requests and responses, including common examples like content-type, content-length, cookies, and authentication, and learn to verify headers in automation.
Extract all response headers from an API call, store them in a headers object, and use header names with get value to retrieve specific values for validation or reuse.
Learn how to validate XML with a DTD schema using Rest Assured, by capturing the response body from a weather API and matching it against a DTD file.
Explore service virtualization and API mocking with WireMock to simulate real APIs for testing when the service is unavailable, enabling automation against mock and third-party endpoints.
Create json stubs for wiremock by adding a get request and response in mappings, place the stub there, run the server on localhost:8080, and verify a 200 response.
Explore how to validate response data with a response aware matcher using a lambda, comparing href and article id to the article url in a Rest Assured test.
Learn to configure default values in Rest Assured tests using TestNG before class, setting base uri and port once to reduce repetition across WireMock endpoints.
This course covers REST API Automation using Rest Assured in detail from basic to advanced levels. I believe in example-oriented teaching. So, you won’t find any PPTs during the sessions. But, you will find dozens of real time scenarios used to elaborate various API Automation concepts.
Feel free to post your questions/feedback in the block provided under each session-video. I will make sure all of your queries are addressed. ‘Course Outline’ below will give you an idea about the depth and the overall coverage of this course. If you want to learn any other REST Assured concept - which is not already covered in this course - then feel free to let me know via Udemy messenger.
Course Outline:
Basic concepts of APIs
What is an API?
Postman Basics
API Methods
HTTP Status Codes
REST Vs SOAP
What is Rest Assured?
JSON and JSON Path
JSON Schema
Getting Started with Rest Assured
Rest Assured Setup Using Maven
Simple Get Request
Validate JSON Response
Validate XML Response
Extracting Response Data
Extracting Single Value From Response
Verifying Status Line
POST, PUT and DELETE
POST Using File
POST Using JSON Object
PUT Operation
DELETE Operation
Rest Assured Logging
Log All
Log Body and Headers
Log Cookies and Status
Log If Error
Log If Validation Fails
Handling Request Parameters
Query Parameters
Multiple Query Parameters
Multi-value Parameters
Path Parameters
Form Parameters
Working with Headers And Cookies
What Are Headers?
Sending Request Headers
Sending Headers Using Objects
Sending Cookies
Sending Cookies Using Builder
Validating Response Headers
Extracting Response Headers
Extracting Response Cookies
Authentication
Basic and Digest Auth
oAuth 1.0
Twitter oAuth Example
oAuth 2.0
XML And JSON Schema Validation
JSON Schema Validation
XML DTD Schema Validation
XML XSD Schema Validation
WireMock: Creating Mock WebService using WireMock
WireMock Setup
Writing WireMock Stubs
Creating Stub Mapping using File Body
Recording Stub Mappings using WireMock Recorder
Miscellaneous Operations
Specifying Request Port
Default Configuration Setup in RestAssured
Validating Response Time
XML Namespace Validation
Response Aware Matcher
Course Outline Ends
This course is designed for you if you are:
a QE Automation Engineer OR
a Selenium WebDriver automation aspirant OR
a manual testing professional willing to jump start your automation carrier OR
a QTP/UFT professional wanting to switch to API automation as per testing market demand OR
a QE Manager exploring better automation solutions for your project OR
a fresh grad looking to learn a quick new skill which has high demand in the job market OR
aspiring to learn coding and automation
To get the maximum benefit from the course, please take a look at following steps explaining 'How to take this course?'
Step 1: Schedule 30-45 minutes of your time daily for 5 days a week. 'Continuity' is the key.
Step 2: All sessions are divided in small videos of less than 20 minutes. Watch 2-3 videos daily.
Step 3: Hands-on exercise is very important. So, immediately try out the programs discussed in the session. Try them on your own. You can download these programs from lecture resources.
Step 4: Assignments with answer keys are provided where-ever necessary. Complete the assignments before jumping on to the next sessions.
Step 5: If you come across any questions or issues, please feel free to contact me and I will make sure that your queries are resolved.
Wish you all a very happy learning.
Note: All the course videos are in QHD. For the best video streaming quality, please adjust the resolution from 'settings' at bottom right-hand corner of video player. Choose 1080p or 720p as per your network speed.