1. What is an API Test Plan?
Answer: An API Test Plan is a document that outlines the testing strategy, objectives, resources, schedule, and scope for testing API endpoints. It ensures the API performs as expected in terms of functionality, security, performance, and usability.
2. What is the base URL of the Fake REST API used for testing?
Answer: The base URL is: https://fakerestapi.azurewebsites.net/index.html
3. What basic operations should you validate in API testing?
Answer:
- Create (POST)
- Read (GET)
- Update (PUT)
- Delete (DELETE)
4. What is functional testing in API testing?
Answer: It ensures the API behaves as per the expected functionality defined in the requirements. For example, testing if a POST request successfully creates a book or user.
5. How do you validate error handling in API testing?
Answer: By sending incorrect, incomplete, or unexpected input and checking if the API returns the correct HTTP status codes and error messages.
6. What tools are commonly used for API testing?
Answer:
- Postman
- REST Assured
- Swagger UI
- SoapUI
👉The Next Questions-2: API TEST PLAN