What is API testing, and why it's necessary to do it?
- API is nothing but an application program interface which interacts with endpoints in the form of request and response, where JSON/XML response will get for request calls like GET, PUT POST DELETE, etc.
- JSON(JavaScript Object Notation)/XML(extensive markup language) is lightweight, easy to read data which is in the form of tags and values.
- API's consist of protocols like HTTP/HTTPS , URI (uniform resource identifier) , Parameters like ID, Name, etc and query like ?lang=1
for example
In the market, many tools are available for API Testing like Postman, Rest-Assured etc..then why to go for Karate API testing tool?
- Karate API Tool is simple and easy to use for automation of multiple API's
- its supports assertion for response and Headers which helps to find blank or incorrect response getting
- Data-driven testing is possible where CSV/excel can be used to import data into an API's
- This tool has a feature of parallel execution of API's which reduces the time of execution when a large number of API's needs to be executed
- universal declaration of parameters which can be called in any API's available in feature file
- sequential execution of feature file can be done using this tool, this will helps to set sequence for the API's which performs CRUD operation
- each response is stored in logs and report can be generated with the help of cucumber library
- creating tags like 'Sanity API's' 'Regression API's' can be created which helps to run a bunch of API's only
for more information related to Karate, API tool refer https://github.com/intuit/karate/
Comments
Post a Comment