Before starting with the installation and usage process, let me first give you a brief overview about the API testing
What is API
API (Application Programming Interface) testing is a software testing which involves testing application programming interfaces to determine if they are meeting the expectations of the desired functionality.
In other words, we can also say that an API is a collection of software functions and procedures [which are also known as API calls] that can be executed by other software applications
An API does not have any UI, therefore API testing is performed at the message layer. API testing requires less code and thus provides better and faster test coverage than automated GUI tests.
How API Works
One of the available application to perform API testing is using Postman. To use Postman, you must configure it in your chrome browser using below steps:
- Run Google Chrome and go to More Tools > Extensions
- Click Get more extensions
- Search POSTMAN by www.getpostman.com
- Add to Chrome
- Wait for the downloading and installation process to complete
- Run Postman
- Open Postman
- Select an API method
- Enter the request URL
- Click the Authorization tab and add authorization tokens and credentials as per requirements
- Enter headers (if required)
- Click Send to make your request
- If authentication is successful, the API shows a 200/OK response.
- You can also click on Save button to save that API request for future purpose