[go: up one dir, main page]

0% found this document useful (0 votes)
9 views15 pages

API TESTING slide

The document provides an overview of API (Application Programming Interface), detailing its function as a messenger between applications. It covers various aspects of API testing, including workflows, structure, HTTP methods, and tools like Postman and Newman for automation and reporting. Additionally, it contrasts SOAP and REST protocols, emphasizing the ease of use and bandwidth efficiency of REST.

Uploaded by

abunahidanik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views15 pages

API TESTING slide

The document provides an overview of API (Application Programming Interface), detailing its function as a messenger between applications. It covers various aspects of API testing, including workflows, structure, HTTP methods, and tools like Postman and Newman for automation and reporting. Additionally, it contrasts SOAP and REST protocols, emphasizing the ease of use and bandwidth efficiency of REST.

Uploaded by

abunahidanik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

CONTENT

1 API 4 HTTP METHODS

2 API Workflow 5 HTTP STATUS CODE

3 API Structure 6 API TIMELINE


CONTENT

7 NETWORK CALL 10 Let’s Start Live

API TESTING API Collection and


8 TOOLS 11 Environment

9 POSTMAN Install 12 DATA Validation


CONTENT

13 API Automation 16 Report

14 API Test Script 17 Advance API Testing

Environment Setup
15 for Report 18 Resources
Generation
What is API?
API stands for Application Programming Interface. An API is a software
intermediary that allows two applications to talk to each other. In other
words, an API is the messenger that delivers your request to the provider that
you're requesting it from and then delivers the response back to you.
API Testing Workflow - Real life example
API Testing Workflow - Real life example
API Structure
database theke
data neyar jonno

new data insert

api ip r sathe
connected thake jodi
kono api r ip te
problrm hoy tahole

no
permission

ex get r jaygay post dile


# Assume we have a resource /users/1 that represents a user with id 1 and name Alice
The PATCH method applies partial modifications to a resource # To update the user's name to Bob using PUT, we need to send the entire representation of
the user
PUT /users/1 HTTP/1.1
Content-Type: application/json

HTTP methods are a set of actions that can be performed on a {


given resource "id": 1,
"name": "Bob"
}

# To update the user's name to Bob using PATCH, we only need to send the changed attribute
PATCH /users/1 HTTP/1.1
Content-Type: application/json

{
"name": "Bob"
}
SOAP stands for Simple Object Access Protocol

SOAP uses only XML for exchanging information in its message


format whereas REST can use XML, JSON, Plain-text

SOAP is difficult to implement and it requires more bandwidth


whereas REST is easy to implement and requires less bandwidth

Representational State Transfer

11
Report Configure
Newman
Install Command: npm install -g newman
Run Command:
1. newman run “Path/CollectionName.json” -e Path/EnvironmentName.json
2. newman run “Collection Link” -e “Path”/EnvironmentName.json

Report:
Install: npm install -g newman-reporter-html
npm install -g newman-reporter-htmlextra
Run Command:
1. newman run CollectionName.json -e EnvironmentName.json -r cli,html
newman run CollectionName.json -e EnvironmentName.json -r cli,htmlextra
API Testing Resources
API Documentation:
https://docs.google.com/document/d/1YyzPMbEu6eEMFrvp-WHiJW-
SvDTJvikqx1QGyyFgRXw/edit?usp=sharing

For Practice: https://docs.google.com/document/d/1LF3FeN4obAZTn-


QeuWZzteLn8X1m8ww2/edit?usp=sharing&ouid=107740915407819043042&rtpof=true&sd=true

Software:
Postman (Link: https://www.postman.com/)
Node JS Install (Link: https://nodejs.org/en/)

You might also like