API Testing
API Testing
What is an API?
In this scenario, the waiter’s role is similar to an API. As a waiter, the API
takes a request from a source, takes that request to the database, fetches
the requested data from the database and returns a response to the
source.
If you are using a flight service engine say Expedia, where you search for
flights on a specific date. Once you pass the data such as Source,
Destination, Onward Date and Return Date and click on search. Expedia
sends a request to airlines through an API as per your search details. The
API then takes the airline’s response to your request and delivers it right
back to the Expedia.
API gets the request from the user and gives the response without
exposing internal logic. API acts like an Abstraction in OOPs concept.
Fuzz testing: To test the API by forcibly input into the system in order to
attempt a forced crash
3. To verify whether the API triggers some other event or request another
API
1. API Testing is time effective when compared to GUI Testing. API test
automation requires less code so it can provide faster and better test
coverage.
2. API Testing helps us to reduce the testing cost. With API Testing we can
find minor bugs before the GUI Testing. These minor bugs will become
bigger during the GUI Testing. So finding those bugs in the API Testing will
be cost effective to the Company.
4. API Testing is quite helpful in testing Core Functionality. We can test the
APIs without a user interface. In GUI Testing, we need to wait until the
application is available to test the core functionalities.
1. Basically, on API Testing, we send a request to the API with the known
data and we analyse the response.
2. Data accuracy
4. Response time
6. Authorization checks
1. Postman
2. Katalon Studio
3. SoapUI
4. Assertible
5. Tricentis Tosca
6. Apigee
7. JMeter
8. Rest-Assured
9. Karate DSL
11. Parasoft
12. HP QTP(UFT)
13. vREST
14. Airborne
18. Hippie-Swagger
20. Mockbin
22. Pyresttest
26. Unirest
27. WebInject
UNIT TESTING:-
1. Unit testing is conducted by Development Team
API TESTING:-
5. In API testing, the scope of testing is wide, so all the issues that are
functional are considered for testing
Some of the challenges we face while doing API testing are as follows:-
4. Reliability issues
5. Improper messaging
8. Improper errors
4. Create test cases with all possible inputs combinations for complete
test coverage