API Testing Bytes
Few of my colleagues are frequently asking me about API Testing related questions that API Tester should know. Here is a byte of some questions I found on internet-
- What is API Testing and Why API Testing?
- Is there any difference between SOAP and REST API testing? If so, how?
- Key things you test in an API - let's say a GET API to fetch a list of 5 records with id and name
- GET vs POST
- POST vs PUT vs PATCH - example for each
- What do you mean when you say PUT is idempotent? Conditions for idempotency?
- Do you follow any strategy for sending large payloads in POST.
- Is it a good idea to have assertions for request headers when testing apis?
- How do you get a request header in Rest-Assured?
- If I send a text file as an input in a POST call, what will be the content-type?
- Key things to test when you API response feeds into a down stream system?
- URI vs URL - with a simple example.
- What is JWT and it's format. How does JWT authentication works?
- Do you know if caching is applied in the rest api's that you test? How do you test caching in api's
- How do you test expired or invalid tokens in your API's?
- How do you test user roles and permissions in your API, tell us some of the best practices that you follow for testing such user permissions in API's.
- Have you heard of the term rate-limiting? Can you explain when should we use rate limiting in API's
- Do you generate reports of the api tests that you run? What are some key attributes to include in the report.
- Have you heard of the term api gateway? What does it do?
- What is the difference in path param and query params?
- Do we need to use POJO class and serialisation in RestAssured, when we can directly send request body in the form of String?
- Can I use cookies with rest assured - if so how can I set a cookie for a domain?
- Do you know what is a HEAD request? Can you think of a scenario when HEAD request would be needed.
- Is POST a cacheable method? Is PUT a cacheable method?
- Difference between api virtualisation and mocking?
- What is JSON Schema? Can I use same json schema for validating the response of two different api's?
- What is API caching and in how many ways can we cache api response.
Comments
Post a Comment