0% found this document useful (0 votes)
7 views12 pages

(Application Programming Interface) : API Testing

The document provides an overview of API (Application Programming Interface) and its role in software communication, detailing types such as REST, SOAP, and GraphQL. It discusses API testing, including its purpose, various types like functional, performance, security, integration, and regression testing, along with HTTP methods and response codes. Additionally, it outlines test scenarios to validate API functionality and performance under different conditions.

Uploaded by

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

(Application Programming Interface) : API Testing

The document provides an overview of API (Application Programming Interface) and its role in software communication, detailing types such as REST, SOAP, and GraphQL. It discusses API testing, including its purpose, various types like functional, performance, security, integration, and regression testing, along with HTTP methods and response codes. Additionally, it outlines test scenarios to validate API functionality and performance under different conditions.

Uploaded by

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

API [APPLICATION

PROGRAMMING
INTERFACE]TESTING

Presented By
SHARFIYA KV
WHAT IS AN API
• API is a set of rules and protocols that allows different
software applications to communicate with each other
simply its is a intermediate between client and software

• TYPES OF API
• REST APIs -Uses HTTP methods(GET,POST,PUT,DELETE)
• SOAP APIs -Uses XML based communication
• GRAPHQL APIs -allows client to requset specafic data
Role of API in Software Communication
• Connecting different software components
API acts as a bridges between different software
compnents
• Enabling Data Exchange
api allows send and receive data in a structured format
• Standardized Communication
API provide consistent methods(http) to access
functionalities,ensuring smooth communication
WORKING OF API
DEFINITION OF API TESTING?
• API testing is a software testing type that validates application
programming interfaces.The purpose of api testing is to check
the funcionality,reliability,performance and security of the
programming interfaces.

TYPES OF API TESTING


• Functional Testing - Evaluvates the API functionality against
specified requirements Ensuring it returns the correct responses
for given input
.
• Performance Testing - Measures the API’s responsiveness and
stabiliy under various conditions,including load and stress
scenarios

 Load testing - how the api behaves under expected user loads
 Spike Testing - Evaluvates the API’s ability to handle sudden
and extreme increases in load
 Soak Testing - Assess the API’s performance over an extended
period under the sustained load
 Stress Testing - Determines the api break point by subjecting it
to loads beyond normal operational capacity
.
• Security Testing - identifies vulnerabilities in the API,Ensuring
protection against threats like unauthorised access and data
breaches

• Integration Testing - Assesses interactions between different


modules or services,verifying that combined component work
together seamlessly

• Regression Testing -Ensure that new updates or changes to the


API do not adversely affect existing functionality
HTTP METHODS IN API TESTING

• POST - Create -create data to the server


• GET - Read -retrieve data from the server
• PUT - Update -update data from the server
• DELETE - delete data from the server
• PATCH - partially update data
.
API response codes
• 1xx informational responses
• 2xx successfull responses
 200 ok
 201 created
• 3xx Redirectional messages
• 4xx client error responses
 400 - Bad request
 401 - unauthorised
 404 - not found
• 5xx Server error responses
API Test Scenarios
• Check whether the API returns appropriate http status code for various
requests
• verify the structure and content of the API’s response body
• Check whether the API access with valid and invalid credentials
• verify the create,read,update,delete operation working correctly
• check whether the API response time under various load conditions
• check whether the API’s behaviour when encountering errors or
exceptions
• check the consistency and acuracy of the data proccessed by the API
.

THANK Y0U....

You might also like