SlideShare a Scribd company logo
1 of 13
API Testing Using Postman
Day 1 :
Software Application
1. Front End/UI----Front End Developer
2. Middle Layer/APIs-----Back End Developers API-Application Programming Interface
3. Back End/DB
 Why API Testing ??/Importance of API Testing
Day 2 :
 Go through from POSTMAN UI
3 Sections on POSTMAN UI
1. Header Section
2. Sidebar Section
3. Builder Section
 Starting With Use of POSTMAN for API Testing
CREATE API Request  Hit API Request  Response Analysis
 Collection : Group of API Requests saved & arranged in logical manner
 Folders inside collection
Day 3:
Collection Runner :
Use/Importance of Collection Runner
 Variables in POSTMAN
 Variable : Elements which can store different values
 Use :
a. To reuse same values at various places
b. To avoid repetitive data
c. To avoid rework [in case of changes in values/To work with different
data]
 Variable Declaration & use in POSTMAN :
1. Collection Level 2. Global Level 3. Environment Level
Day 5:
Environment : Set of Key-Value Pairs
I. How to Create? II. Use of Environment
Scripts in Postman
 Snippets : Script Templates
 Pre-Request & Post-Request Scripts/Test
I. Collection Level II. Folder Level III. Request Level
 Set & Get Variables using script
I. Collection Level II. Global Level III. Environment Level
Day 6:
Debug in POSTMAN-Use of POSTMAN Console
WORKSPACES : Area where Collections of APIs are grouped, Organized &
Managed(Available in version above 6.0 )
 Create & Manage Workspace
 Request Chaining in POSTMAN
Day 7:
Data Driven API Testing
I. Using CSV File
Key, value
Key1,value1
Key2,value2
II. Using JSON file
[
{
"Email": “Email Value1",
"Password": “Password value 1"
},
{
"Email": “Email Value2",
"Password": “Password value 2"
},
]
Day 8:
Run Collection from Command Line(Newman-Command line collection
runner)
1. Install node.js[node –v , npm -v]
2. Install newman [npm install –g newman]
3. Export collection & Run from command line [newman run collection.json]
Execution of Collection Remotely :
Steps :
1. Get Collection url from POSTMAN
2. Install node.js & Newman command runner
3. Run collection with command newman run collection-url
Day 9:
HTML Reports through Newman
npm -v
newman –v
npm install -g newman-reporter-html
npm install -g newman-reporter-htmlextra
Using Collection URL :
1. To Run Collection using Collection Url & generate html reports:
newman run CollectionUrl -r html /newman run CollectionUrl -r htmlextra
2. To Run Collection using Collection Url + Environment json file & generate html reports:
newman run CollectionUrl -e Env.json -r html /newman run CollectionUrl -e Env.json -r htmlextra
3. To Run Collection using Collection Url + Environment json file along with number of
iterations & generate html reports:
newman run CollectionUrl -e Env.json –n count -r html /newman run CollectionUrl -e Env.json –n
count-r htmlextra
Day 9:
 Using Collection Json File :
1. To Run Collection using Collection json file & generate html reports:
newman run collection.json -r html /newman run collection.json -r htmlextra
2. To Run Collection using Collection Json file + Environment json file & generate html reports:
newman run collection.json -e Env.json -r html /newman run collection.json -e Env.json -r htmlextra
3. To Run Collection using Collection Json File + Environment json file along with number of
iterations & generate html reports:
newman run collection.json -e Env.json –n count -r html /newman run collection.json -e Env.json –n
count-r htmlextra
Day 9:
 With Title to HTML Report :
newman run collection.json -e Env.json –n count -r htmlextra --reporter-htmlextra-title “ ReqRes
APIs"
Day 10:
 Authentication v/s Authorization
• Authentication : Process of Verifying who a user is
• Authorization : Process of verifying what user have access to
E.g. Airport System, college system, Industry Areas
 Status Code Categories:
1. 1XX : Informational
2. 2XX : Success
3. 3XX : Redirection
4. 4XX : Client Error
5. 5XX : Server Error
Day 10:
 Most Common Status Codes :
• 200(OK) : API Request hit by client is successful
• 201(Created) : Whenever new resource data is created on Server immediately
• 202(Accepted) : Whenever creation of new data on server is accepted & require more time to
complete request.
• 204(No Content) : If server declines to send back any information in response to request raised
by client
• 301(Moved Permanently) : If API’s resource model is redesigned & new permanent Url has been
assigned to it…Subsequent requests are not allowed
• 400(Bad Request) : If Request is not as per syntax
• 401(Unauthorized) : If client tries to access protected resources without providing proper
authorization
• 403(Forbidden) : If request is correctly formed but client is not having necessary permissions for
it.
• 404(Not Found) : If resource is not found…..subsequent requests are allowed
• 405(Method not allowed) : If client tries to use different Request method, which resource does not
allow
• 500(Internal Server Error) : Returned in case of exception handled in code/Server side
issue…Client can try with subsequent request & expect different status code

More Related Content

What's hot

How to Automate API Testing
How to Automate API TestingHow to Automate API Testing
How to Automate API TestingBruno Pedro
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsQASymphony
 
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...Postman
 
Postman 101 & Office Hours
Postman 101 & Office HoursPostman 101 & Office Hours
Postman 101 & Office HoursPostman
 
Postman Webinar: “Continuous Testing with Postman”
Postman Webinar: “Continuous Testing with Postman”Postman Webinar: “Continuous Testing with Postman”
Postman Webinar: “Continuous Testing with Postman”Postman
 
Api testing bible using postman
Api testing bible using postmanApi testing bible using postman
Api testing bible using postmanAbhishek Saxena
 
Postman Introduction
Postman IntroductionPostman Introduction
Postman IntroductionRahul Agarwal
 
Postman & API Testing by Amber Race
Postman & API Testing by Amber RacePostman & API Testing by Amber Race
Postman & API Testing by Amber RacePostman
 
Test Design and Automation for REST API
Test Design and Automation for REST APITest Design and Automation for REST API
Test Design and Automation for REST APIIvan Katunou
 
API_Testing_with_Postman
API_Testing_with_PostmanAPI_Testing_with_Postman
API_Testing_with_PostmanMithilesh Singh
 
An Introduction To Automated API Testing
An Introduction To Automated API TestingAn Introduction To Automated API Testing
An Introduction To Automated API TestingSauce Labs
 
Postman Webinar: Postman 101
Postman Webinar: Postman 101Postman Webinar: Postman 101
Postman Webinar: Postman 101Nikita Sharma
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API TestingQASource
 

What's hot (20)

How to Automate API Testing
How to Automate API TestingHow to Automate API Testing
How to Automate API Testing
 
API Testing
API TestingAPI Testing
API Testing
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and Jenkins
 
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
 
Postman 101 & Office Hours
Postman 101 & Office HoursPostman 101 & Office Hours
Postman 101 & Office Hours
 
Api testing
Api testingApi testing
Api testing
 
Postman Webinar: “Continuous Testing with Postman”
Postman Webinar: “Continuous Testing with Postman”Postman Webinar: “Continuous Testing with Postman”
Postman Webinar: “Continuous Testing with Postman”
 
Api testing bible using postman
Api testing bible using postmanApi testing bible using postman
Api testing bible using postman
 
Belajar Postman test runner
Belajar Postman test runnerBelajar Postman test runner
Belajar Postman test runner
 
API TESTING
API TESTINGAPI TESTING
API TESTING
 
Postman Introduction
Postman IntroductionPostman Introduction
Postman Introduction
 
Postman & API Testing by Amber Race
Postman & API Testing by Amber RacePostman & API Testing by Amber Race
Postman & API Testing by Amber Race
 
Test Design and Automation for REST API
Test Design and Automation for REST APITest Design and Automation for REST API
Test Design and Automation for REST API
 
API_Testing_with_Postman
API_Testing_with_PostmanAPI_Testing_with_Postman
API_Testing_with_Postman
 
An Introduction To Automated API Testing
An Introduction To Automated API TestingAn Introduction To Automated API Testing
An Introduction To Automated API Testing
 
Postman Webinar: Postman 101
Postman Webinar: Postman 101Postman Webinar: Postman 101
Postman Webinar: Postman 101
 
POSTMAN.pptx
POSTMAN.pptxPOSTMAN.pptx
POSTMAN.pptx
 
Postman
PostmanPostman
Postman
 
Postman.ppt
Postman.pptPostman.ppt
Postman.ppt
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API Testing
 

Similar to API Testing Presentations.pptx

Remote Config REST API and Versioning
Remote Config REST API and VersioningRemote Config REST API and Versioning
Remote Config REST API and VersioningJumpei Matsuda
 
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and PythonDEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and PythonCisco DevNet
 
Programming Assignment 3 CSCE 3530 Introduction to Comput.pdf
Programming Assignment 3 CSCE 3530  Introduction to Comput.pdfProgramming Assignment 3 CSCE 3530  Introduction to Comput.pdf
Programming Assignment 3 CSCE 3530 Introduction to Comput.pdfaddtechglobalmarketi
 
Reactive Application Using METEOR
Reactive Application Using METEORReactive Application Using METEOR
Reactive Application Using METEORNodeXperts
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteorSapna Upreti
 
Koop: Using 3rd Party Services in ArcGIS
Koop: Using 3rd Party Services in ArcGISKoop: Using 3rd Party Services in ArcGIS
Koop: Using 3rd Party Services in ArcGISDaniel Fenton
 
Rest api titouan benoit
Rest api   titouan benoitRest api   titouan benoit
Rest api titouan benoitTitouan BENOIT
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]ColdFusionConference
 
Season 4 [Free OpManager training] Part1- Discovery and classification
Season 4 [Free OpManager training] Part1- Discovery and classificationSeason 4 [Free OpManager training] Part1- Discovery and classification
Season 4 [Free OpManager training] Part1- Discovery and classificationManageEngine, Zoho Corporation
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparisonHiroshi Nakamura
 
Consuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesConsuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesEdwin Rojas
 
Firebase, Jetpack, Retrofit.pptx
Firebase, Jetpack, Retrofit.pptxFirebase, Jetpack, Retrofit.pptx
Firebase, Jetpack, Retrofit.pptxwasimmullick88
 
Maximizer 2018 API training
Maximizer 2018 API trainingMaximizer 2018 API training
Maximizer 2018 API trainingMurylo Batista
 
Meteor Meet-up San Diego December 2014
Meteor Meet-up San Diego December 2014Meteor Meet-up San Diego December 2014
Meteor Meet-up San Diego December 2014Lou Sacco
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparationpratik mohite
 

Similar to API Testing Presentations.pptx (20)

Remote Config REST API and Versioning
Remote Config REST API and VersioningRemote Config REST API and Versioning
Remote Config REST API and Versioning
 
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and PythonDEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
DEVNET-1001 Coding 101: How to Call REST APIs from a REST Client and Python
 
Programming Assignment 3 CSCE 3530 Introduction to Comput.pdf
Programming Assignment 3 CSCE 3530  Introduction to Comput.pdfProgramming Assignment 3 CSCE 3530  Introduction to Comput.pdf
Programming Assignment 3 CSCE 3530 Introduction to Comput.pdf
 
Reactive Application Using METEOR
Reactive Application Using METEORReactive Application Using METEOR
Reactive Application Using METEOR
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteor
 
Play framework
Play frameworkPlay framework
Play framework
 
Lab 5-Android
Lab 5-AndroidLab 5-Android
Lab 5-Android
 
Koop: Using 3rd Party Services in ArcGIS
Koop: Using 3rd Party Services in ArcGISKoop: Using 3rd Party Services in ArcGIS
Koop: Using 3rd Party Services in ArcGIS
 
Rest api titouan benoit
Rest api   titouan benoitRest api   titouan benoit
Rest api titouan benoit
 
Node.js
Node.jsNode.js
Node.js
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]
 
17rmi
17rmi17rmi
17rmi
 
Season 4 [Free OpManager training] Part1- Discovery and classification
Season 4 [Free OpManager training] Part1- Discovery and classificationSeason 4 [Free OpManager training] Part1- Discovery and classification
Season 4 [Free OpManager training] Part1- Discovery and classification
 
Ruby HTTP clients comparison
Ruby HTTP clients comparisonRuby HTTP clients comparison
Ruby HTTP clients comparison
 
Consuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesConsuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL Webservices
 
Netflix conductor
Netflix conductorNetflix conductor
Netflix conductor
 
Firebase, Jetpack, Retrofit.pptx
Firebase, Jetpack, Retrofit.pptxFirebase, Jetpack, Retrofit.pptx
Firebase, Jetpack, Retrofit.pptx
 
Maximizer 2018 API training
Maximizer 2018 API trainingMaximizer 2018 API training
Maximizer 2018 API training
 
Meteor Meet-up San Diego December 2014
Meteor Meet-up San Diego December 2014Meteor Meet-up San Diego December 2014
Meteor Meet-up San Diego December 2014
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparation
 

Recently uploaded

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Recently uploaded (20)

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 

API Testing Presentations.pptx

  • 2. Day 1 : Software Application 1. Front End/UI----Front End Developer 2. Middle Layer/APIs-----Back End Developers API-Application Programming Interface 3. Back End/DB  Why API Testing ??/Importance of API Testing
  • 3. Day 2 :  Go through from POSTMAN UI 3 Sections on POSTMAN UI 1. Header Section 2. Sidebar Section 3. Builder Section  Starting With Use of POSTMAN for API Testing CREATE API Request  Hit API Request  Response Analysis  Collection : Group of API Requests saved & arranged in logical manner  Folders inside collection
  • 4. Day 3: Collection Runner : Use/Importance of Collection Runner  Variables in POSTMAN  Variable : Elements which can store different values  Use : a. To reuse same values at various places b. To avoid repetitive data c. To avoid rework [in case of changes in values/To work with different data]  Variable Declaration & use in POSTMAN : 1. Collection Level 2. Global Level 3. Environment Level
  • 5. Day 5: Environment : Set of Key-Value Pairs I. How to Create? II. Use of Environment Scripts in Postman  Snippets : Script Templates  Pre-Request & Post-Request Scripts/Test I. Collection Level II. Folder Level III. Request Level  Set & Get Variables using script I. Collection Level II. Global Level III. Environment Level
  • 6. Day 6: Debug in POSTMAN-Use of POSTMAN Console WORKSPACES : Area where Collections of APIs are grouped, Organized & Managed(Available in version above 6.0 )  Create & Manage Workspace  Request Chaining in POSTMAN
  • 7. Day 7: Data Driven API Testing I. Using CSV File Key, value Key1,value1 Key2,value2 II. Using JSON file [ { "Email": “Email Value1", "Password": “Password value 1" }, { "Email": “Email Value2", "Password": “Password value 2" }, ]
  • 8. Day 8: Run Collection from Command Line(Newman-Command line collection runner) 1. Install node.js[node –v , npm -v] 2. Install newman [npm install –g newman] 3. Export collection & Run from command line [newman run collection.json] Execution of Collection Remotely : Steps : 1. Get Collection url from POSTMAN 2. Install node.js & Newman command runner 3. Run collection with command newman run collection-url
  • 9. Day 9: HTML Reports through Newman npm -v newman –v npm install -g newman-reporter-html npm install -g newman-reporter-htmlextra Using Collection URL : 1. To Run Collection using Collection Url & generate html reports: newman run CollectionUrl -r html /newman run CollectionUrl -r htmlextra 2. To Run Collection using Collection Url + Environment json file & generate html reports: newman run CollectionUrl -e Env.json -r html /newman run CollectionUrl -e Env.json -r htmlextra 3. To Run Collection using Collection Url + Environment json file along with number of iterations & generate html reports: newman run CollectionUrl -e Env.json –n count -r html /newman run CollectionUrl -e Env.json –n count-r htmlextra
  • 10. Day 9:  Using Collection Json File : 1. To Run Collection using Collection json file & generate html reports: newman run collection.json -r html /newman run collection.json -r htmlextra 2. To Run Collection using Collection Json file + Environment json file & generate html reports: newman run collection.json -e Env.json -r html /newman run collection.json -e Env.json -r htmlextra 3. To Run Collection using Collection Json File + Environment json file along with number of iterations & generate html reports: newman run collection.json -e Env.json –n count -r html /newman run collection.json -e Env.json –n count-r htmlextra
  • 11. Day 9:  With Title to HTML Report : newman run collection.json -e Env.json –n count -r htmlextra --reporter-htmlextra-title “ ReqRes APIs"
  • 12. Day 10:  Authentication v/s Authorization • Authentication : Process of Verifying who a user is • Authorization : Process of verifying what user have access to E.g. Airport System, college system, Industry Areas  Status Code Categories: 1. 1XX : Informational 2. 2XX : Success 3. 3XX : Redirection 4. 4XX : Client Error 5. 5XX : Server Error
  • 13. Day 10:  Most Common Status Codes : • 200(OK) : API Request hit by client is successful • 201(Created) : Whenever new resource data is created on Server immediately • 202(Accepted) : Whenever creation of new data on server is accepted & require more time to complete request. • 204(No Content) : If server declines to send back any information in response to request raised by client • 301(Moved Permanently) : If API’s resource model is redesigned & new permanent Url has been assigned to it…Subsequent requests are not allowed • 400(Bad Request) : If Request is not as per syntax • 401(Unauthorized) : If client tries to access protected resources without providing proper authorization • 403(Forbidden) : If request is correctly formed but client is not having necessary permissions for it. • 404(Not Found) : If resource is not found…..subsequent requests are allowed • 405(Method not allowed) : If client tries to use different Request method, which resource does not allow • 500(Internal Server Error) : Returned in case of exception handled in code/Server side issue…Client can try with subsequent request & expect different status code