API Testing_Questions
API Testing_Questions
using curl and validate the response with Rest Assured. This
differences between the Robot Framework and Rest
Annotations in Rest Assured: | explained the @Test
API testing?
9. How to fetch data from nested json via rest assured?
10. How do you validate API? What are the challenges you
need to use — SOAP or REST?
3) Write a script to test a REST API that handles CRUD
10 Rest Assured
2. when(): The when() method is used to define the HTTP
.get("/api/users/2")
the expected HTTP status code of the response
given() .log().all() when() .get("/api/users/
Response response = given() .when() .get("/api/users/
17. Why do we go for Apache API? What is the basic
and validate the API's response when the limit is exceeded.
stable, the update is rolled out to the rest. Example: Release
What is the purpose of web service in soap Ul?
What is REST?
What is the difference between SOAP and REST web
What are the methods of rest web services?
When to go for soap and rest web services?
What is the difference between soap and rest?
How to generate reports in soap Ul?
What is the use of XPath in soap UI instead of XPath in
How do you know whether your test case passed the soap
How many requests have you tested in your soap till now?
Instead of having soap, why are the rest of the web services
What are the challenges you faced with soap UI?
Have you been involved in the rest API testing?
7. Api response codes
25. RestAssured API Assert syntax
What does a status code 400 in an API indicate?
How would you extract data from an API call response in
19) How to keep API Tests idempotent?
21) Is it possible to integrate API generated cookies directly
1. Explain the API testing you've done in your previous
projects and the tools you used for API testing.
implementations other than SOAP?
3. What is the difference between SOAP vs REST?
4. In which option is REST response cached?
5. What are the different types of methods present in REST?
concept or API. Here we follow again the same principle of
4. How do you start API testing?
19) What does 409 error code indicate in API Testing?
API Concepts
1) What are the components of an HTTP request?
2) What is the difference between API and unit testing?
3) What is an HTTP response?
4) How we can add validation points in postman?
8) What is Rest, Soap & GraphQL in APls
9) What do you test in standalone API?
3) How to validate a API response has correct status code?
4) What happens when API response returns Form Data
5) How to setup Basic Auth in Postman?
7) How to save a demo response for an API request?
8) How will you validate an API rqst if VPN is required for it
9) How do you filter results in a API request using Postman?
10) How to setup custom headers in Postman?
in API Testing
1) How do you handle response headers in Rest Assured
2) What is the purpose of the Matchers class in Rest
Answer: The Matchers class in Rest Assured provides
payload in Rest Assured?
method in Rest Assured?
‘config(JsonConfig.jsonConfig())' method in Rest Assured?
‘auth().oauth2AuthorizationCodeFlow()' method in Rest
7) What is the purpose of the auth().none() method in Rest
8) How can you handle assertion failures gracefully in Rest
of sensitive data (e.g., API keys, database passwords)?
API, Command Line, Batch Processing.
7. What are the different Status codes in API?
methods in API testing.
13. Discuss HTTP status codes like 401 and 503.
14. How do you validate the response code in API
16. Explain the difference between 200 and 201 HTTP
17. Provide the syntax for query parameters in API
-> Image sent by AWS API to backend services,
some API.
@ What is API Testing?
API Testing involves verifying application programming
@ What is the difference between REST and SOAP APIs?
REST: Lightweight, uses JSON or XML, stateless, and
works over HTTP/HTTPS.
SOAP: Protocol-based, uses XML, supports stateful
operations, and works over HTTP/HTTPS, SMTP, etc.
@® Explain common HTTP methods used in API testing.
@ What are the standard HTTP status codes, and what
© What is the difference between API Testing and Unit
API Testing: Validates end-to-end business logic and
© Which tools are commonly used for API Testing?
SoapUI: Used for SOAP and REST API testing.
@ What are the different types of API authentication?
API Key: Unique identifier to access APIs.
What are some best practices for writing API test
(0 What is a Mock API, and why is it used?
Mock APIs simulate the behavior of a real API, allowing
testing when the actual API is unavailable or under
7. What are the different Status codes in API?
streams api?
9) Why are you using Apache HTTP client library in
in API testing
What framework are you using for API testing ? Explain.
What HTTP methods you have worked on in API testing?
API Testing Interview Questions
1. What is an API?
2. What are the advantages of API testing?
3. Explain the different types of API testing.
4. What are the common protocols used in API testing?
(HTTP, REST, SOAP)
5. What are the main differences between API and Web
6. What is the difference between API testing and Unit
(API testing checks a group of components, Unit testing
7. What are the core components of an HTTP request?
8. What are some common HTTP methods and what are
9. What does an HTTP status code tell you?
10. What is the importance of statelessness in API
API?
(REST, SOAP, GraphQL)
12. Compare the differences between REST, SOAP, and
(REST uses resources, SOAP uses XML, GraphQL lets
13. What are the principles of good API design?
14. What are some common API testing tools?
(Postman, REST Assured, SoapUI)
15. Describe the steps involved in API testing.
16. How do you perform API Load Testing?
(Simulate lots of users using the API at the same time.)
(Sending weird data to the API to see if it breaks.)
19. How would you approach testing an API that has
20. How would you test an API that is not yet fully
21. How should we test the API security?
22. What are some common API security vulnerabilities?
3. A critical API endpoint is returning unexpected errors.
8. Can you explain the concept of HTTP methods (GET,
API testing?
9. What is the difference between REST and SOAP APIs?
10.What are the common status codes in API responses
What is API testing, and why is it important ?
What is the difference between REST and SOAP
authorization in API testing? How would you test
validating a RESTful API?
testing an API?
What are the components of an HTTP request?
What is the difference between API and unit
&) What is an HTTP response?
“5 How can we add validation points in Postman?
&:)) What is REST, SOAP, and GraphQL in APIs?
Postman:
How to validate that an API response has the correct
kal What happens when an API response returns Form
%) How to set up Basic Auth in Postman?
W/) How to save a demo response for an API request?
How will you validate an API request if VPN is
9] How do you filter results in an API request using
Postman?
10} How to set up custom headers in Postman?
How you cover end to end API testing ?
What are the exceptions faced while API testing ?
authentication for an API request ?Explain
«> : How to perform data driven testing in postman ?
API.
sample API endpoint and measure response times.
the API is under 2 seconds.
a | Explain the steps involved in testing an API.
© What are the commonly used HTTP methods in API
@ How do you handle dynamic data in API responses
6) &) what are some common challenges faced in API
8. In Postman, how do you delete a variable after test
. What is HTTP Methods?
How do you handle API testing in BDD using RestAssured
API:
-> What is the difference between SOAP and REST APIs?
-> Explain the different HTTP methods used in REST
in REST APIs?
REST APIs?
-> How would you test the performance of a REST API?
31. What are the components of an API Request?
31. What are the components of an API Request?
3) What is serialization and deserialization in rest
5) Write rest assured code for sending post request ?
6) How do you pass headers in rest assured ?
- API Testing: Postman, Playwright, Cypress
2. Pass request specification in API testing
1. HTTP errors: 4xx (client-side), 5xx (server-side)
12. API testing framework used
13. Data generation & validation in API testing
14. API authentication techniques
15. RESTful vs SOAP services
17. API framework utilities;
26. API test case for Amazon UPI verification with govt.
for efficient API testing
7. In Postman, how do you delete a variable after test
in Rest Assured?