0% found this document useful (0 votes)
39 views2 pages

API Automation Interview Questions

The document contains a comprehensive list of interview questions focused on API automation testing, covering basic concepts, Postman-specific queries, and Java with REST Assured. It also includes questions about TestNG, framework integration, scenario-based challenges, and conceptual topics related to APIs. This resource is aimed at preparing candidates for roles in software development engineering in test (SDET) and quality assurance (QA).

Uploaded by

madhubalan0411
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

API Automation Interview Questions

The document contains a comprehensive list of interview questions focused on API automation testing, covering basic concepts, Postman-specific queries, and Java with REST Assured. It also includes questions about TestNG, framework integration, scenario-based challenges, and conceptual topics related to APIs. This resource is aimed at preparing candidates for roles in software development engineering in test (SDET) and quality assurance (QA).

Uploaded by

madhubalan0411
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

@Kushal Parikh – SDET QA - https://www.linkedin.

com/in/kushalparikh11/

API Automation Testing – Interview Questions

Basic API & Manual Testing Concepts


 What is an API? How does it work?
 What are the different types of HTTP methods used in REST APIs?
 What is the difference between GET and POST?
 What status codes have you worked with? What does a 200/400/401/500 status code
mean?
 What is JSON and how is it different from XML?
 How do you test APIs manually using Postman?
 How do you validate a response body and status code in Postman?
 Can you explain the structure of an API request?

Postman-Specific Questions
 What are Postman Collections and Environments?
 How do you send a POST request in Postman with a JSON body?
 How can you chain APIs using Postman?
 Have you written any tests in the “Tests” tab in Postman?
 How do you extract a value from a JSON response in Postman?

Java + REST Assured (API Automation)


 What is REST Assured and why do we use it?
 What are the key components of a REST Assured test? (given(), when(), then()) –
Explain with example.
 How do you validate the response body and status code in REST Assured?
 How can you pass headers and query parameters in a request?
 How do you extract a value from the response using JSONPath?
 Have you handled authentication in REST Assured? (Basic Auth, Bearer Token)
 What is API Chaining and how do you implement it in automation?
 How do you log request and response data in REST Assured?

TestNG, Framework, Tools Integration


 Why do you use TestNG with REST Assured?
 What is the role of Maven in your API automation framework?
 How do you run your tests from the command line?
 How do you handle test data (hardcoded, external, or via properties files)?
 Have you created any reporting with Extent or Allure?
 How do you manage your automation code using Git?
 What is CI/CD and how do you integrate API tests into Jenkins?

Scenario-Based Questions
 You receive a 500 Internal Server Error. How will you debug it?
@Kushal Parikh – SDET QA - https://www.linkedin.com/in/kushalparikh11/

 How would you automate an API that requires OAuth2 authentication?


 If the response time of an API is too high, what would you do?
 How do you verify if a value in the response appears in a list of objects?
 How do you handle dynamic data in API requests or assertions?

Bonus - Conceptual Questions


 What is the difference between SOAP and REST?
 What is a RESTful API?
 What is the purpose of Swagger or OpenAPI documentation?
 Explain idempotency in REST APIs.
 What challenges have you faced while working on API automation?

You might also like