Deck #1 Flashcards
Name the essential parts of an application
- Data Layer
- Logic Layer
- Presentation Layer
What is the data layer?
Where data is retrieved from the database and file system and then stored.
What is the logic layer
The brain of the application, this processes the data between the layers, coordinating the application, processing commands, and making logical decisions. This layer is made of the API.
What is the presentation layer?
This top layer of the app is the user interface, which translates tasks into something the user understands.
What is an API?
Application Programming Interface:
- An API acts as an interface between two different applications so that they can communicate with each other.
What is API testing?
testing that APIs and the integrations they enable work in the most optimal manner
Techincal def of an API
Http based service that returns JSON or XML data by default
How to test APIs?
make API calls in order to receive an output before observing and logging the system’s response.
How to increase test coverage and accuracy of APIs?
Since APIs are the central hub of data for many applications, data-drive testing for APIs can help
Why is API testing important?
The API is what gives value to the application.
- If any API doesn’t work efficiently and effectively, it will never be adopted, regardless if it is a free and open API or one that you charge per call or group of calls.
- if an API breaks because errors weren’t detected, it could not only break a single application but a chain of business processes hinged to it.
Define a smoke test for an API
make a call and verify you receive a response
What is the typical output of an API?
- A Pass or Fail status
- Data or information
- A call to another API
Questions to ask yourself when testing an API
- Who is your target audience? Who is your API consumer?
- What environment/s should the API typically be used?
- What is defined as a Pass or a Fail? What data is the desired output? What is the chain of events?
- What other APIs could this API interact with?
What is load testing of an API?
verify the API can handle a large amount of calls
What is Creativity Test of an API?
the API can be used in different ways (Called by other APIs)