When we do API Testing | Need of API Testing| Where we do API Testing
API Testing is a software testing type that validates Application Programming Interfaces (APIs). The purpose of API Testing is to check the functionality, reliability, performance, and security of the programming interfaces. In API Testing, instead of using standard user inputs(keyboard) and outputs, you use software to send calls to the API, get output, and note down the system’s response. API tests are very different from GUI Tests and won’t concentrate on the look and feel of an application. It mainly concentrates on the business logic layer of the software
What is API testing, and where can we use it?”
Easy.
This is a sample UI form.
When users submit the data, this is what the browser sends*.
{
"email": "kalel@clarkkent.com",
"firstname": "Clark",
"lastname": "Kent"
}
————————————————
(*) Yes, it’s JSON and it’s just one of the examples. We’re introducing a new concept, right? So we gotta start small and simple.
————————————————
Essentially, API (application program interface) is a way different software modules send and receive data.
As a tester, you can hack this communication. There are tools and methods.
This means, you can test without a UI and beyond a UI, and, notably, prior to the UI.
Software testing as we knew it for a while is dying.
Testing feedback is needed way before a product gets a user interface. Some products, like IoT devices and wearables, do not have a UI at all.
While programmers take responsibility for more testing, testers may want to stay relevant by increasing their value and becoming more technical.
There are a few ways to perform API testing.
At the simplest, you can just put the web service URI—that is, the path and parameters—into the browser address line, and the response will be displayed within the browser window. There are also basic and sophisticated add-ons available for free for all popular browsers, and there are free and commercial standalone tools. Finally, there are automation frameworks supporting different languages.
Here’s an example using the RESTED Firefox add-on to place a request and review the response from the free online service JSON Test.
Comments
Post a Comment