API TESTING slide
API TESTING slide
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
api ip r sathe
connected thake jodi
kono api r ip te
problrm hoy tahole
no
permission
# 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
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
Software:
Postman (Link: https://www.postman.com/)
Node JS Install (Link: https://nodejs.org/en/)