If you want to learn more theory of API testing, you can visit the below websites. I don’t want to go into the theory so much in this post. These APIs are generally REST APIs or SOAP web services with JSON or XML message payloads being sent over HTTP, HTTPS, JMS, and MQ. In GUI testing we send inputs via keyboard texts, button clicks, drop-down boxes, etc., on the other hand in API testing we send requests (method calls) to the API and get output (responses). Thus, API testing becomes critical to test application logic. In the agile development world, requirements are changing during short release cycles frequently and GUI tests are more difficult to maintain according to those changes. API testing tests the logic tier directly and checks expected functionality, reliability, performance, and security. The logic tier comprises all of the business logic and it has more complexity than the other tiers and the test executed on this tier is called API Testing. We can test UI with GUI testing tools and we can test logic tier (API) with API testing tools. ( DB) Ideally, these three layers (tiers) should not know anything about the platform, technology, and structure of each other. ( API) 3) Data Tier – Here information and data are stored and retrieved from a Database. These are 1) Presentation Tier – User Interface ( UI) 2) Logic Tier – Business logic is written in this tier. In the modern development world, many web applications are designed based on a three-tier architecture model.
Thus, it serves as an interface between different software systems and establishes their interaction and data exchange. It comprises a set of functions that can be accessed and executed by another software system. What is API?ĪPI stands for Application Programming Interface.
In this post, I will explain what is API and API testing, what is the difference between SOAP and REST services, and how to test REST APIs with Rest Assured Library. In this Rest Assured tutorial, I will try to explain Rest API, API Testing, API Automation, REST, and SOAP protocols. Rest Assured is one of the most popular libraries which is highly used in API Test Automation in most companies.