4.31 out of 5
4.31
219 reviews on Udemy

Web Service Testing using RestAssured & Apache HttpClient

Learn the testing of Restful web services using the Apache HttpClient Library from scratch and Rest Assured Framework
Instructor:
Rahul Singh Rathore
1,914 students enrolled
English [Auto-generated]
By the end of this course you will give have great understanding of Restful Services
By the end of this course you will have great understanding of Postman client
By the end of this course you will have great understanding on how to use Apache HttpClient Library

RESTful Web Services are REST architecture based web services. In REST Architecture everything is a resource. RESTful web services are light weight, highly scalable and maintainable and are very commonly used to create APIs for web based applications.

This course will teach you about the testing of Restful Web Services. In this course everything is taught from scratch.

In the first section, I am going to discuss about the basic of restful web services and required concept for this course.

In the next section, we will start with manual testing part of restful web services using Postman client. Which will give you more detail understanding about what we should test. This includes

  • Concept of HTTP methods (GET,POST,PUT and DELETE)

  • Creating and sending the request using Postman

  • Validation of response body and status code

  • Attaching the custom headers to the request

  • Validation of response in Json and Xml format

In the next section, I will start with the automation part, discussing about Apache HttpClient library. This includes

  • Setting up the Maven project for the automation

  • Creating and sending the HTTP request (GET,POST,PUT and DELETE) from the code

  • Attaching the custom headers to the request from code

  • Validation of response body and status from code

  • Deserialization of response in Json and Xml format

  • Handling the endpoint secure with SSL

  • Framework development

By the end of this course, you will have great understanding of restful service and how to automate them using Apache HttpClient library

The course is not limited to following content. In future I will keep adding the new topics to this course.

And source code shown as part of video lecture will be provided for download

Introduction

1
Introduction and Course Material
2
Prerequisite

Enviroment Setup

1
Tools Required
2
Setting up the jdk 1.8
3
Setting up the Tomcat Server
4
Setting up the Eclipse
5
Setting up the Postman Client

Course Resource

1
[Important] Virtual Machine - Environment Setup

Setting up the environment using virtual machine. which have all the tools and project setup required for this course

Basic of RestFul Services

1
What is a Web Service
2
Request and Response
3
What is REST
4
HTTP Methods
5
Resquest and Response Format

Using Postman for Testing

1
Deploying the Test Application in Tomcat
2
Application Under Test
3
Testing the GET end point part - 1
4
Testing the POST method
5
Testing the GET endpoint part - 2
6
Testing the PUT method
7
Testing the DELETE end point

Deep Dive into Code

1
Setting up the Maven
2
Creating the Maven Project
3
Adding the dependency to the Maven Project
4
Creating the GET request part - 1
5
Creating the GET request part - 2
6
Featching the body from GET resquest
7
Creating the Framework method for GET
8
Creating the Junit for GET request part - 1
9
Creating the Junit for GET request part - 2
10
Adding the Header to the Request
11
Deserialization of JSON reponse
12
Creating the POST Request
13
Posting the data from File
14
Creating the Framework method for POST request
15
Creating generic method to support different entity type
16
Code optimization for GET and POST request
17
Writing the Junit for POST method
18
Deserialization of XML response
19
Creating the DELTE request
20
Framework method for DELETE request
21
Writing the Junit for Delete method
22
Creating the PUT method
23
Creating the Framework method for PUT request
24
Writing the Junit for PUT method

Advance Implementation

1
Introduction to Authentication part - 1
2
Introduction to Authentication part - 2
3
Authentication using Postman Client
4
Authentication from the Code
5
Authorization using HttpClientContext class

Http Client with SSL

1
Introduction to SSL
2
Generating the SSL certificate
3
Bypassing the certificate validation process
4
Writing the GET method for SSL end point
5
Creating the framework method for GET and POST with SSL
6
Writing the Junit for GET and POST with SSL
7
Framework method for PUT and DELETE with SSL
8
Writing the Junit for PUT and DELETE with SSL

Http Async Client

1
Introduction to Synchronous and Asynchronous calls
2
Creating the Http Async Client
3
Writing the GET method using HTTP Async Client
4
FutureCallBack interface
5
Writing the framework method for POST,PUT and DELET with SSL
6
Writing the Junit using Http Async Client

Query Parameter

1
Handling Query Parameter from code

Exporting the framework

1
Exporting the framework as a JAR file
2
Build the Framework JAR with dependencies

Source Code

1
Framework Code for Download

Introduction to RestAssured

1
Introduction and Course Material
2
Setting up the RestAssured Framework
3
RestAssured with BDD framework
4
Coding Style

Http GET method using RestAssured

1
Writing the GET method
2
Handling the Response
3
Handling and Validating the response status code
4
Setup using the RestAssured enviroment variable
5
Creating the GET request with custom headers
6
Validating the Response Content
7
Validating the list content in Response
8
Validating the XML Response
9
Validation using XmlPath class
10
Validation using JsonPath class
11
Handling the Query Parameters

Http POST method using RestAssured

1
Writing the POST method
2
POST method with Object Mapping
3
POST method with Request logging
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.3
4.3 out of 5
219 Ratings

Detailed Rating

Stars 5
118
Stars 4
71
Stars 3
25
Stars 2
3
Stars 1
2
7ddcc00102cb5cc92ae6bd7e949439d6
30-Day Money-Back Guarantee

Includes

14 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion