API Testing
API Testing
---------------
What is a client?
A client is a computer or host that sends the request for a specific service or
data to a server through the HTTP protocol in the form of a URL and
receives a response.
What is a server?
A server is a remote machine that accepts the request, processes it, and sends
the response information through the HTTP/HTTPS protocol.
Note: HTTP (Hypertext Transfer Protocol) protocol specifies how the client should
send a request to the server and how the server should respond.
Note: HTTPS (Hypertext Transfer Protocol Secure) encrypts the data before
sending it to the client or the server.
Client/Server Architecture
Middle Layer(API)
API Testing Tools There are a variety of tools for working with API. Some of the
most widely used are:
Postman – an API platform that is used not only for testing but building and using
APIs as well.
REST-assured – a tool for testing and validating REST services that promises to
make this process as simple as possible.
JMeter – an open source software written in Java and originally designed for
testing web apps.
SOAP UI – a tool available as an open source or commercial solution that also
promises to create, manage, and execute tests easily.
Tricentis – a codeless platform for automating end-to-end tests, fully driven by AI
technology.
Apigee – an API management and testing platform that is now a part of the Google
Cloud ecosystem.
Katalon – a multi-functional low-code test automation platform that offers API
testing among the other capabilities.
As the experience shows, the greatest share of automation tasks falls on Postman
API testing. Nevertheless, getting familiar with a variety of platforms is always a
benefit for a QA specialist.
Types of API
API Vs Webservice
https://petstore.octoperf.com/actions/Catalog.action
URL
https://reqres.in/