-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImportant Questions of API Tesing
55 lines (47 loc) · 3.7 KB
/
Important Questions of API Tesing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Questions for the Interview POV:
1. Difference between PUT and POST.
2. What is POJO.
3. How to set values in POJO class.
4. How to convert POJO class to JSON class.
5. What is JSON Path.
6. What is Query parameter.
7. What is path parameter.
8. How to create JSON object body.
9. What are the major challenges faced in API testing?
10. How do you extract data from a response in Rest Assured?
11. What is the maximum size of a payload that can be sent via the POST method?
12. Can a GET query be made in place of a PUT to create a resource? N
13. How many types of Authentication are there in POSTMAN / Rest-Assured?
14. How is chaining carried out in REST Assured?
15. What are Serialization and Deserialization in Rest Assured?
16. What is the best way to keep sensitive data out of the log in rest assured?
17. How can we get size of JSON array in Rest assured?
18. What are Authorization or API keys
19. How do you test security testing using APIs
Scenario-based API Testing Interview Questions for SDET/ QA Automation Role 👇👇👇
API Testing Fundamentals
👉 Why is API Testing important in modern software development?
👉 Can you share real-world scenarios where you choose between GET and POST HTTP methods?
👉 Explain POST, PUT, and PATCH with real-life examples from web applications you've worked on.
👉 What does idempotence mean in the context of APIs, and why is it a valuable trait in API design?
👉 When conducting API testing, how do you prioritize and approach the validation of request headers, especially in terms of security and regulatory compliance?
📌 API Testing Techniques
👉 Compare SOAP and REST API testing by drawing parallels with well-known web services.
👉 Put yourself in the shoes of a QA tester for a Weather API. What specific aspects would you focus on while verifying the response data for a GET request?
👉 In the context of Rest-Assured, describe your process for extracting and applying request header values effectively in various test scenarios.
👉 When compiling API test reports, what key information and metrics do you include to deliver comprehensive insights and support decision-making?
📌 API Concepts and Technologies
👉 Can you provide concrete use cases illustrating the distinction between URI and URL, emphasizing their practical relevance in API design?
👉 Drawing from your experience, discuss your approaches for testing API endpoints that deal with expired or invalid authentication tokens, in a real-world context.
👉 Explain how an API Gateway enhances API functionality and security, citing cases where it made a noticeable difference in your projects.
📌 HTTP Methods and Idempotency
👉 Can you recall specific scenarios from your projects where you opted for POST, PUT, or PATCH, and explain how their idempotent nature influenced your decision-making?
👉 Provide real-world insights into whether POST and PUT HTTP methods are cacheable.
📌 API Security
👉 Share notable instances in your career where implementing rate limiting was crucial to mitigate security threats or prevent resource overutilization in APIs.
📌 Header Testing and Request Handling
👉 Discuss practical scenarios where asserting request headers played a key role in your API testing efforts, and explain how this contributed to test quality.
👉 Walk us through your methodology for extracting and utilizing request header values in Rest-Assured for various testing scenarios, providing real-life use cases.
📌 JSON and Data Formats
👉 Discuss your experience in implementing POJO classes and serialization in RestAssured to maintain data consistency and enhance testing efficiency.
👉 Your approach to validating API responses, emphasizes the role of JSON Schema in ensuring data integrity.