API:- Application Programming Interface(API) is set of communication protocols and tool to build software program and it is like a way to give permission for a software to interact with other software.
API Testing:- It is a part of software testing where need to create strategy, plan, test cases and other testing scenarios for performing API Testing. Interaction between components is the main purpose so it means test conditions should be created related for that scenarios and there may be more challenges in API Testing.
API Testing With Postman:- Postman is one of the most famous API Testing tools and it free app to test API. Postman is flexible to integrate with development cycle and makes API development better, faster and easier.
For downloading Postman and Installation Tips:- Visit “Here” and choose your desired platform, we used for Windows. Select then Click Download (There may be changes).
Select System Bit
A pop will be appear then save
Once the download has completed, Run it. After that it will ask to sign up so do it
Now set workspace and save preferences
If need to add people for team then add else skip
See it is done
Now see to get request for API Testing. Enter url with Get and click on send
See status is 200 on below screen means request is successful
For Post Request
Click a new tab to create a new request.
In the new tab
- Set your HTTP request to POST.
- Input link in request url: https://——————AddEmployee (Add Requested URL)
- switch to the Body tab
In Body Select Click raw and then Select JSON
Add one new post detail like:-
[
{
“id”: 005,
“Empname”: “Test One”,
“email”: “qatestingtips8909@gmail.com”,
“city”: “Test City”,
“state”: “Test State”
}
]
Click Send then Posted data will be shown there and created (Make sure post request format is correct)
*Keep practising for learning more*