Categories

There are currently no items in your shopping cart.

User Panel

Forgot your password?.

Web Service Testing using RestAssured & Apache HttpClient

Video Introducing this tutorial

Introduction :
Introduction and Course Material
Prerequisite


Enviroment Setup :
Tools Required
Setting up the jdk 1.8
Setting up the Tomcat Server
Setting up the Eclipse
Setting up the Postman Client


Basic of RestFul Services :
What is a Web Service
Request and Response
What is REST
HTTP Methods
Resquest and Response Format


Using Postman for Testing :
Deploying the Test Application in Tomcat
Application Under Test
Testing the GET end point part - 1
Testing the POST method
Testing the GET endpoint part - 2
Testing the PUT method
Testing the DELETE end point


Deep Dive into Code :
Setting up the Maven
Creating the Maven Project
Adding the dependency to the Maven Project
Creating the GET request part - 1
Creating the GET request part - 2
Featching the body from GET resquest
Creating the Framework method for GET
Creating the Junit for GET request part - 1
Creating the Junit for GET request part - 2
Adding the Header to the Request
Deserialization of JSON reponse
Creating the POST Request
Posting the data from File
Creating the Framework method for POST request
Creating generic method to support different entity type
Code optimization for GET and POST request
Writing the Junit for POST method
Deserialization of XML response
Creating the DELTE request
Framework method for DELETE request
Writing the Junit for Delete method
Creating the PUT method
Creating the Framework method for PUT request
Writing the Junit for PUT method


Advance Implementation :
Introduction to Authentication part - 1
Introduction to Authentication part - 2
Authentication using Postman Client
Authentication from the Code
Authorization using HttpClientContext class


Http Client with SSL :
Introduction to SSL
Generating the SSL certificate
Bypassing the certificate validation process
Writing the GET method for SSL end point
Creating the framework method for GET and POST with SSL
Writing the Junit for GET and POST with SSL
Framework method for PUT and DELETE with SSL
Writing the Junit for PUT and DELETE with SSL


Http Async Client :
Introduction to Synchronous and Asynchronous calls
Creating the Http Async Client
Writing the GET method using HTTP Async Client
FutureCallBack interface
Writing the framework method for POST,PUT and DELET with SSL
Writing the Junit using Http Async Client


Query Parameter :
Handling Query Parameter from code


Exporting the framework :
Exporting the framework as a JAR file
Build the Framework JAR with dependencies


Source Code :
Framework Code for Download


Introduction to RestAssured :
Introduction and Course Material
Setting up the RestAssured Framework
RestAssured with BDD framework
Coding Style


Http GET method using RestAssured :
Writing the GET method
Handling the Response
Handling and Validating the response status code
Setup using the RestAssured enviroment variable
Creating the GET request with custom headers
Validating the Response Content
Validating the list content in Response
Validating the XML Response
Validation using XmlPath class
Validation using JsonPath class
Handling the Query Parameters


Http POST method using RestAssured :
Writing the POST method
POST method with Object Mapping
POST method with Request logging
Deserialization of Response body


Http PUT and DELETE method using RestAssured :
Writing the PUT method
Writing the DELETE method


Authentication using RestAssured :
Authentication Using Header
Authentication Using RestAssured Api
Settingup the environment for authentication


SSL with RestAssured :
Bypassing the SSL certificate check
Supplying the SSL Certificate with request


Handling the OAuth access token :
Introduction to Access Token
Creating an application for generating the access token
Calling the end point using the access token
Generating the access token from code Part -1
Generating the access token from code Part - 2