Api testing
Api testing
What is API testing?
Postman,
SoapUI,
Bruno
Tricentis Tosca
Data accuracy.
Response time.
Duplicate or missing functionality.
Authorization checks.
Multithreaded issues.
Security and performance issues.
Error codes if API returns.
Reliability issues.
Performance Issues
Response data may not structure correctly ( JSON or XML )
Security Issues
Incorrect handling of valid argument values
Improper errors/warning
Missing or Duplicate Functionality
Reliability Issues : Difficulty in connecting and getting a response
from API
Basic API Operations with Examples
Payload
Description Example
Type
The most common
lightweight data format,
JSON easy to read and process. { "name": "John", "age": 30 }
A structured, tag-based
format often used in
legacy systems and <user><name>John</name>
XML SOAP APIs. <age>30</age></user>
Form Data
(application
/x-www- Used when submitting
form- form data in key-value
urlencoded) pairs. name=John&age=30
Used to send files
Multipart (images, PDFs, etc.) Includes a file and other
Form Data along with text fields. parameters.
Uses a single query to
GraphQL fetch specific fields from { "query": "{ user { name age
Payload an API. } }" }
Sends raw text data
without structured
Plain Text formatting. "This is a plain text payload"
Used to send non-text
data like images, audio, Binary-encoded data
Binary Data or video. (Base64)
Key concepts of API testing:
Response Validation:
THANK YOU