About API:
API testing is a type of software testing that involves testing application
programming interfaces (APIs) directly and as part of integration testing to
determine if they meet expectations for functionality, reliability, performance, and
security. Since APIs lack a GUI, API testing is performed at the message layer.
Two API Technologies:
- SOAP (Simple Object Access Protocol) is a standards-based web services
access protocol that has been around for a long time. Originally developed
by Microsoft, SOAP isn’t as simple as the acronym would suggest.
- REST (Representational State Transfer) is another standard, made in
response to SOAP’s shortcomings. It seeks to fix the problems with SOAP
and provide a simpler method of accessing web services.
Test Site’s:
https://reqres.in/
https://petstore.swagger.io/
Mainly used Request Operation’s:
HTTP Status Codes in the REST API
200 OK. The 200 OK status code indicates the request succeeded. ...
303 See Other. The 303 See Other status code indicates that you are being
redirected to another resource via the "Location" response header. ...
400 Bad request.
404 Resource not found.
500 Internal server error.
Execution:
1. Select any option URI/ File/ Through creating the Folder manually & create
message for the Request.
2. Now click on Run for the Each Request & Verify the Status codes.
3. Post that imports to the Test Cases
4. Now Create action modes for the status code’s & Add buffer to the ID.
5. Create Execution folder & execute all the operations at a time.