API testing – introduction
Application Programming Interface is the layer between UI and database. API testing checks the APIs’ functionality, performance, reliability, and security. API testing is done in 2 ways –
- either directly on API
- as part of integration testing
As a part of the latter, it also effectively checks and validates the logic of building architecture.
Let’s look at how TestGrid can do quick API testing.
API testing with TestGrid is straightforward.
Go to the website and sign-up for free, and start testing.
Once you login to the TestGrid side, you will see the options below your dashboard as shown below screenshot:
Click on TG-API testing, which will take you to the page below.
TestGrid API testing will let you try the following as given in the below screenshot.
- Rest API,
- GraphQL endpoint,
- real-time platforms such as WebSocket, SSE, Socket.IO & MQTT.
The following three features will guide you in the API testing:
History: This helps you pick up where you left off at last. All recent API requests you made are listed here.
Collections: You can easily organize all your API requests through folders in groups.
Environments: The setting environment is straightforward. Just select from the dropdown list to choose from the available environments. You can store variables from one request and reuse the values in your requests within the same environment.
For manual API testing, click on the dropdown and select the below:
- Select type of request from the list:
- Next, enter the URL
- Click Send (Note: The request can also be saved in different collections for recall in the future)
- In the response section, you’ll be able to observe the following:
- Response Body
- The result section will give you the API testing results.
That’s it. You are done with basic API testing.