SlideShare ist ein Scribd-Unternehmen logo
1 von 16
API TESTING USING POSTMAN
A Presentation By:
Asmita Poudel
Swostika Shrestha
Gurzu Confidential
Introduction to API testing and its tools:
• API
• Types of API
• API Testing
• Importance
• API Tools
Introduction to Postman:
• Definition
• Installation
• Workspace
• Pros & Cons
2
In this presentation we will cover:
Table of Contents
Gurzu Confidential
● is a software interface that allows two applications to interact with
each other without any user intervention
● can be used to get access to data from the third parties.
● can be used to hide complexity and perform the task
3
API ( Application Programming Interface )
API
Gurzu Confidential
Open APIs: These types of APIs are publicly available to use like OAuth APIs from Google. It has also not given
any restriction to use them. So, they are also known as Public APIs.
Partner APIs: Specific rights or licenses to access this type of API because they are not available to the public.
Internal APIs: Internal or private. These APIs are developed by companies to use in their internal systems. It
helps you to enhance the productivity of your teams.
Types of API
Gurzu Confidential
Web services are the services available over the web(API wrapped in HTTP)
If we put the api on the web, then it is a web services
Web Services might not perform all the operations that an API would perform
A web services needs a network while an API doesn’t need a network for its operation
Types of Web Services
RESTful :Representational State Transfer
Latest technology
we can send the request and get response in XML,JSON,Text etc
We can send different request get, put, post, delete
SOAP: Simple Object Access Protocol
Old technology
can send only post request and get response only in XML format
All web services are APIs, but all APIs are not web services
API & Web Services
Gurzu Confidential
is a process of sending requests to an API and monitoring the responses to ensure its behaving as expected
designed to assess the functionality, reliability, performance, and security of an API
6
API Testing
Gurzu Confidential
● can be faster than GUI (graphical user interface) testing as it allows you to test multiple functionalities at once
and does not require the GUI to be loaded each time a test is run
● can help identify performance issues and bottlenecks, allowing to optimize the API for better performance.
● API tests are technology and language independent. Data is exchanged using JSON or XML and it contains
HTTP requests and responses.
● Enables developers to identify any errors earlier in the development process
● can help identify security vulnerabilities and ensure that the API is protected against malicious attacks.
7
Why API Testing is Important?
Gurzu Confidential
Some of the most commonly used API testing tools are:
API Testing Tools
Gurzu Confidential
Postman is:
• A standalone software testing API platform to build, test, design, modify, and document APIs
• Scalable API testing tool
• Powerful tool to test environments
• Build test suites called collections and let Postman interact with the API
• Has the ability to make various types of HTTP requests like GET, POST, PUT, PATCH, and convert the API
to code for languages like JavaScript and Python.
Introduction to Postman
Gurzu Confidential
● Requests
● Collections
● Environment
REQUESTS
● A combination of URLs, HTTP headers, Body forms a request.
● HTTP : the collection of rules for the transmission of data on the World Wide Web, like graphic images, text, video,
sound, and other multimedia data.
● The most popular HTTP methods:
1.GET : Get requests are used to retrieve information from the given URL.
2.POST : Post requests are used to deliver new data to API
3.PATCH: used to update already exists data
4.PUT: used to update already exists data
5.DELETE: used to delete already existing data
Building Blocks of Postman
Gurzu Confidential
● Requests
● Collections
● Environment
COLLECTIONS
● A Collection means a group of API requests that you have already saved in the Postman. You can arrange
these requests into folders.
● There are two ways to run collections in Postman:
1.Collection Runner
2. Newman
Building Blocks of Postman
Gurzu Confidential
● Requests
● Collections
● Environment
ENVIRONMENTS
● A set of variables you can use in your Postman requests
● In Environments, we can execute requests and collections against various data sources
Building Blocks of Postman
Gurzu Confidential
1
3
Installation of Postman
Gurzu Confidential
POSTMAN NAVIGATION
Gurzu Confidential
Pros of Postman
• Sharing the collection across team
• Environments can be organized as per users' need.
Cons of Postman
• Database connectivity - To get data directly from DBs
• Data Generator - Random data generator like email, names, zip/postal codes, addresses, mobile number.
Pros and Cons
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

API Testing. Streamline your testing process.
API Testing. Streamline your testing process.API Testing. Streamline your testing process.
API Testing. Streamline your testing process.
 
API Testing
API TestingAPI Testing
API Testing
 
API Test Automation
API Test Automation API Test Automation
API Test Automation
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With Appium
 
Api testing
Api testingApi testing
Api testing
 
Postman: An Introduction for Testers
Postman: An Introduction for TestersPostman: An Introduction for Testers
Postman: An Introduction for Testers
 
API Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+CucumberAPI Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+Cucumber
 
Cypress-vs-Playwright-Rematch-Applitools.pdf
Cypress-vs-Playwright-Rematch-Applitools.pdfCypress-vs-Playwright-Rematch-Applitools.pdf
Cypress-vs-Playwright-Rematch-Applitools.pdf
 
Api security-testing
Api security-testingApi security-testing
Api security-testing
 
Appium overview
Appium overviewAppium overview
Appium overview
 
POSTMAN.pptx
POSTMAN.pptxPOSTMAN.pptx
POSTMAN.pptx
 
Ship quality mobile apps with speed [Webinar]
Ship quality mobile apps with speed [Webinar]Ship quality mobile apps with speed [Webinar]
Ship quality mobile apps with speed [Webinar]
 
API Testing for everyone.pptx
API Testing for everyone.pptxAPI Testing for everyone.pptx
API Testing for everyone.pptx
 
Test at Scale within your Internal Networks with BrowserStack Local Testing
Test at Scale within your Internal Networks with BrowserStack Local TestingTest at Scale within your Internal Networks with BrowserStack Local Testing
Test at Scale within your Internal Networks with BrowserStack Local Testing
 
API Testing: The heart of functional testing" with Bj Rollison
API Testing: The heart of functional testing" with Bj RollisonAPI Testing: The heart of functional testing" with Bj Rollison
API Testing: The heart of functional testing" with Bj Rollison
 
Selenium 4 with Simon Stewart [Webinar]
Selenium 4 with Simon Stewart [Webinar]Selenium 4 with Simon Stewart [Webinar]
Selenium 4 with Simon Stewart [Webinar]
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testing
 
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...
 
Appium Architecture | How Appium Works | Edureka
Appium Architecture | How Appium Works | EdurekaAppium Architecture | How Appium Works | Edureka
Appium Architecture | How Appium Works | Edureka
 
Selenide
SelenideSelenide
Selenide
 

Ähnlich wie API Testing.pptx

Ähnlich wie API Testing.pptx (20)

Top 11 api testing tools for 2022
Top 11 api testing tools for 2022Top 11 api testing tools for 2022
Top 11 api testing tools for 2022
 
Postman 101 for developers
Postman 101 for developersPostman 101 for developers
Postman 101 for developers
 
Top 11 API testing tools for 2022
Top 11 API testing tools for 2022Top 11 API testing tools for 2022
Top 11 API testing tools for 2022
 
solution Challenge design and flutter day.pptx
solution Challenge design and flutter day.pptxsolution Challenge design and flutter day.pptx
solution Challenge design and flutter day.pptx
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
API Services: Building State-of-the-Art APIs
API Services: Building State-of-the-Art APIsAPI Services: Building State-of-the-Art APIs
API Services: Building State-of-the-Art APIs
 
Introduction to Apigility
Introduction to ApigilityIntroduction to Apigility
Introduction to Apigility
 
REST API Design & Development
REST API Design & DevelopmentREST API Design & Development
REST API Design & Development
 
Swagger With REST APIs.pptx.pdf
Swagger With REST APIs.pptx.pdfSwagger With REST APIs.pptx.pdf
Swagger With REST APIs.pptx.pdf
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
 
Apigility introduction v2 (glasgow php)
Apigility introduction v2 (glasgow php)Apigility introduction v2 (glasgow php)
Apigility introduction v2 (glasgow php)
 
The Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdfThe Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdf
 
API Testing Basics.pptx
API Testing Basics.pptxAPI Testing Basics.pptx
API Testing Basics.pptx
 
How to Connect to Any REST API (Without Writing Any Code)
How to Connect to Any REST API (Without Writing Any Code)How to Connect to Any REST API (Without Writing Any Code)
How to Connect to Any REST API (Without Writing Any Code)
 
Roundtable_-_API_Research__Testing_Tools.pdf
Roundtable_-_API_Research__Testing_Tools.pdfRoundtable_-_API_Research__Testing_Tools.pdf
Roundtable_-_API_Research__Testing_Tools.pdf
 
ATAGTR2017 Test the REST
ATAGTR2017 Test the REST ATAGTR2017 Test the REST
ATAGTR2017 Test the REST
 
Top 20 API Testing Interview Questions.pdf
Top 20 API Testing Interview Questions.pdfTop 20 API Testing Interview Questions.pdf
Top 20 API Testing Interview Questions.pdf
 
A Practical Guide to Automating End-to-End API Testing
A Practical Guide to Automating End-to-End API TestingA Practical Guide to Automating End-to-End API Testing
A Practical Guide to Automating End-to-End API Testing
 
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
 

Mehr von GurzuInc

Mehr von GurzuInc (18)

Power of documentation | Aarati Shah | Gurzu.pdf
Power of documentation | Aarati Shah | Gurzu.pdfPower of documentation | Aarati Shah | Gurzu.pdf
Power of documentation | Aarati Shah | Gurzu.pdf
 
The Art of Refactoring | Asmit Ghimire | Gurzu.pdf
The Art of Refactoring | Asmit Ghimire | Gurzu.pdfThe Art of Refactoring | Asmit Ghimire | Gurzu.pdf
The Art of Refactoring | Asmit Ghimire | Gurzu.pdf
 
I'm Programmer _ Ganesh Kunwar _ Gurzu.pdf
I'm Programmer _ Ganesh Kunwar _ Gurzu.pdfI'm Programmer _ Ganesh Kunwar _ Gurzu.pdf
I'm Programmer _ Ganesh Kunwar _ Gurzu.pdf
 
Obtaining Your Tax Clearance Certificate_ A Quick Guide | Deepak Rai | Gurzu.pdf
Obtaining Your Tax Clearance Certificate_ A Quick Guide | Deepak Rai | Gurzu.pdfObtaining Your Tax Clearance Certificate_ A Quick Guide | Deepak Rai | Gurzu.pdf
Obtaining Your Tax Clearance Certificate_ A Quick Guide | Deepak Rai | Gurzu.pdf
 
Problem Solving Skill - Bishal Sapkota - Gurzu
Problem Solving Skill - Bishal Sapkota - GurzuProblem Solving Skill - Bishal Sapkota - Gurzu
Problem Solving Skill - Bishal Sapkota - Gurzu
 
My experience with Mobile Testing - Asmita Poudel - Gurzu
My experience with Mobile Testing - Asmita Poudel - GurzuMy experience with Mobile Testing - Asmita Poudel - Gurzu
My experience with Mobile Testing - Asmita Poudel - Gurzu
 
Upgrading Services _ Ashraya Tuldhar _ Knowledge ketchup.pptx
Upgrading Services _ Ashraya Tuldhar _ Knowledge ketchup.pptxUpgrading Services _ Ashraya Tuldhar _ Knowledge ketchup.pptx
Upgrading Services _ Ashraya Tuldhar _ Knowledge ketchup.pptx
 
The real definition of done (1).pptx.pdf
The real definition of done (1).pptx.pdfThe real definition of done (1).pptx.pdf
The real definition of done (1).pptx.pdf
 
Fantastic Blogs and How to Write Them | Alaka Acharya.pptx
Fantastic Blogs and How to Write Them | Alaka Acharya.pptxFantastic Blogs and How to Write Them | Alaka Acharya.pptx
Fantastic Blogs and How to Write Them | Alaka Acharya.pptx
 
The power of saying no | Abinash Bhattarai | Gurzu.pdf
The power of saying no | Abinash Bhattarai | Gurzu.pdfThe power of saying no | Abinash Bhattarai | Gurzu.pdf
The power of saying no | Abinash Bhattarai | Gurzu.pdf
 
DDOS Attack - Gurzu Nepal
DDOS Attack - Gurzu NepalDDOS Attack - Gurzu Nepal
DDOS Attack - Gurzu Nepal
 
Hotwire and Turbo - Knowledge Ketchup - Prajit Bhandari.pdf
Hotwire and Turbo - Knowledge Ketchup - Prajit Bhandari.pdfHotwire and Turbo - Knowledge Ketchup - Prajit Bhandari.pdf
Hotwire and Turbo - Knowledge Ketchup - Prajit Bhandari.pdf
 
Automation Testing - G1 conference Ch13.pptx
Automation Testing - G1 conference Ch13.pptxAutomation Testing - G1 conference Ch13.pptx
Automation Testing - G1 conference Ch13.pptx
 
CSS 101 - G1 conference Gurzu.pptx
CSS 101 - G1 conference Gurzu.pptxCSS 101 - G1 conference Gurzu.pptx
CSS 101 - G1 conference Gurzu.pptx
 
Discussion Regarding benefits on taxes on income from employment.pptx
Discussion Regarding benefits on taxes on income from employment.pptxDiscussion Regarding benefits on taxes on income from employment.pptx
Discussion Regarding benefits on taxes on income from employment.pptx
 
How not to Model Data - G1 conference.pptx
How not to Model Data - G1 conference.pptxHow not to Model Data - G1 conference.pptx
How not to Model Data - G1 conference.pptx
 
RTM and Test Closure Report Gurzu Inc.pptx
RTM and Test Closure Report Gurzu Inc.pptxRTM and Test Closure Report Gurzu Inc.pptx
RTM and Test Closure Report Gurzu Inc.pptx
 
Building CI_CD for Mobile Development.pptx
Building CI_CD for Mobile Development.pptxBuilding CI_CD for Mobile Development.pptx
Building CI_CD for Mobile Development.pptx
 

Kürzlich hochgeladen

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

API Testing.pptx

  • 1. API TESTING USING POSTMAN A Presentation By: Asmita Poudel Swostika Shrestha
  • 2. Gurzu Confidential Introduction to API testing and its tools: • API • Types of API • API Testing • Importance • API Tools Introduction to Postman: • Definition • Installation • Workspace • Pros & Cons 2 In this presentation we will cover: Table of Contents
  • 3. Gurzu Confidential ● is a software interface that allows two applications to interact with each other without any user intervention ● can be used to get access to data from the third parties. ● can be used to hide complexity and perform the task 3 API ( Application Programming Interface ) API
  • 4. Gurzu Confidential Open APIs: These types of APIs are publicly available to use like OAuth APIs from Google. It has also not given any restriction to use them. So, they are also known as Public APIs. Partner APIs: Specific rights or licenses to access this type of API because they are not available to the public. Internal APIs: Internal or private. These APIs are developed by companies to use in their internal systems. It helps you to enhance the productivity of your teams. Types of API
  • 5. Gurzu Confidential Web services are the services available over the web(API wrapped in HTTP) If we put the api on the web, then it is a web services Web Services might not perform all the operations that an API would perform A web services needs a network while an API doesn’t need a network for its operation Types of Web Services RESTful :Representational State Transfer Latest technology we can send the request and get response in XML,JSON,Text etc We can send different request get, put, post, delete SOAP: Simple Object Access Protocol Old technology can send only post request and get response only in XML format All web services are APIs, but all APIs are not web services API & Web Services
  • 6. Gurzu Confidential is a process of sending requests to an API and monitoring the responses to ensure its behaving as expected designed to assess the functionality, reliability, performance, and security of an API 6 API Testing
  • 7. Gurzu Confidential ● can be faster than GUI (graphical user interface) testing as it allows you to test multiple functionalities at once and does not require the GUI to be loaded each time a test is run ● can help identify performance issues and bottlenecks, allowing to optimize the API for better performance. ● API tests are technology and language independent. Data is exchanged using JSON or XML and it contains HTTP requests and responses. ● Enables developers to identify any errors earlier in the development process ● can help identify security vulnerabilities and ensure that the API is protected against malicious attacks. 7 Why API Testing is Important?
  • 8. Gurzu Confidential Some of the most commonly used API testing tools are: API Testing Tools
  • 9. Gurzu Confidential Postman is: • A standalone software testing API platform to build, test, design, modify, and document APIs • Scalable API testing tool • Powerful tool to test environments • Build test suites called collections and let Postman interact with the API • Has the ability to make various types of HTTP requests like GET, POST, PUT, PATCH, and convert the API to code for languages like JavaScript and Python. Introduction to Postman
  • 10. Gurzu Confidential ● Requests ● Collections ● Environment REQUESTS ● A combination of URLs, HTTP headers, Body forms a request. ● HTTP : the collection of rules for the transmission of data on the World Wide Web, like graphic images, text, video, sound, and other multimedia data. ● The most popular HTTP methods: 1.GET : Get requests are used to retrieve information from the given URL. 2.POST : Post requests are used to deliver new data to API 3.PATCH: used to update already exists data 4.PUT: used to update already exists data 5.DELETE: used to delete already existing data Building Blocks of Postman
  • 11. Gurzu Confidential ● Requests ● Collections ● Environment COLLECTIONS ● A Collection means a group of API requests that you have already saved in the Postman. You can arrange these requests into folders. ● There are two ways to run collections in Postman: 1.Collection Runner 2. Newman Building Blocks of Postman
  • 12. Gurzu Confidential ● Requests ● Collections ● Environment ENVIRONMENTS ● A set of variables you can use in your Postman requests ● In Environments, we can execute requests and collections against various data sources Building Blocks of Postman
  • 15. Gurzu Confidential Pros of Postman • Sharing the collection across team • Environments can be organized as per users' need. Cons of Postman • Database connectivity - To get data directly from DBs • Data Generator - Random data generator like email, names, zip/postal codes, addresses, mobile number. Pros and Cons