API TESTING –
USING
POSTMAN
U P D AT E D V E R S I O N
application testing.
Eg: Customer ==> Waiter ==> Chef (Here Waiter acts as
an API)
Types of API:
------------
* There are two types of APIs:
1. SOAP API(Only supports xml format)
2. REST API (Supports multiple format like xml, json etc)
* We used a term "Web Services" for API . But, As soon as
the API is developed , tested and put into internet for
public to use, then it is called web services. So, its called
All the Web services are APIs But, APIs are not web
services.
* Web Service is an API wrapped in HTTP.
REST API/HTTPs Requests:
-----------------------
Types:
------
1. GET ==> Used to get the data/information from Server.
2. POST ==> Used to create the required data in the
-------------
* Pass Parameters are: URI and Request
payload(providing the body in JSON/HTML/XML format)
* Reponse Parameters : Response Payload(Response
Body), Status Code.
PUT Request:
-------------
* Pass Parameters are: URI and Request
payload(providing the body in JSON/HTML/XML format)
* Reponse Parameters : Response Payload(Response
Body), Status Code.
HTTP Status Code:
-----------------
*There are 3 levels of Status Code:
(i) Level 200
--------------
* This represents the successful requests.
200: OK
201: Created
202: Accepted
203: Non-Authoritative Information
204: No Content
* JSON is a text, written with Java Script Object notation.
* JSON is always in Key-Value Pairs. ("Key": Value)
JSON Data Types:
----------------
* Numbers,String, Boolean, Null, Object , Array
{
"name": "Som",==> String
"age" : 30, ==> number
"phone": [1234, 3445], ==> Array
"status": true ==> Boolean,
"SecondNAme": null
}
JSON Path:
----------
*By using JSON path, we will be able to extract a specific
data from the json file.
{
"students": [
{
"id": 1,
"name": "Som",
"location": "Salepur",
"phone": 1234567789,

API Testing –Using Postman(Manual/Automation).pptx

  • 1.
    API TESTING – USING POSTMAN UP D AT E D V E R S I O N
  • 2.
    application testing. Eg: Customer==> Waiter ==> Chef (Here Waiter acts as an API) Types of API: ------------ * There are two types of APIs: 1. SOAP API(Only supports xml format) 2. REST API (Supports multiple format like xml, json etc) * We used a term "Web Services" for API . But, As soon as the API is developed , tested and put into internet for public to use, then it is called web services. So, its called All the Web services are APIs But, APIs are not web services. * Web Service is an API wrapped in HTTP. REST API/HTTPs Requests: ----------------------- Types: ------ 1. GET ==> Used to get the data/information from Server. 2. POST ==> Used to create the required data in the
  • 3.
    ------------- * Pass Parametersare: URI and Request payload(providing the body in JSON/HTML/XML format) * Reponse Parameters : Response Payload(Response Body), Status Code. PUT Request: ------------- * Pass Parameters are: URI and Request payload(providing the body in JSON/HTML/XML format) * Reponse Parameters : Response Payload(Response Body), Status Code. HTTP Status Code: ----------------- *There are 3 levels of Status Code: (i) Level 200 -------------- * This represents the successful requests. 200: OK 201: Created 202: Accepted 203: Non-Authoritative Information 204: No Content
  • 4.
    * JSON isa text, written with Java Script Object notation. * JSON is always in Key-Value Pairs. ("Key": Value) JSON Data Types: ---------------- * Numbers,String, Boolean, Null, Object , Array { "name": "Som",==> String "age" : 30, ==> number "phone": [1234, 3445], ==> Array "status": true ==> Boolean, "SecondNAme": null } JSON Path: ---------- *By using JSON path, we will be able to extract a specific data from the json file. { "students": [ { "id": 1, "name": "Som", "location": "Salepur", "phone": 1234567789,