61 API Testing Interview Questions
61 API Testing Interview Questions
61 API Testing Interview Questions
Questions.
1. What is an API?
Many APIs have a certain limit set up by the provider. Thus, try to
estimate your usage and understand how that will impact the
overall cost of the offering. Whether this will be a problem
depends in large part on how data is leveraged. Getting caught
by a quota and effectively cut-off because of budget limitations
will render the service (and any system or process depending on
it) virtually useless.
1. Validation Testing
2. Functional Testing
3. UI testing
4. Load testing
5. Runtime/ Error Detection
6. Security testing
7. Penetration testing
8. Fuzz testing
9. Interoperability and WS Compliance testing
During the API testing process, a request is raised to the API with
the known data. This way you can analyze the validation
response. While testing an API, you should consider:
Accuracy of data
Schema validation
HTTP status codes
Data type, validations, order and completeness
Authorization checks
Implementation of response timeout
Error codes in case API returns, and
Non-functional testing like performance and security
testing
(https://www.katalon.com)
16. What are differences between API Testing and Unit Testing?
Parameter Selection
Parameter Combination
Call sequencing
Output verification and validation
Another important challenge is providing input values,
which is very difficult as GUI is not available in this case.
19. What are the testing methods that come under API testing?
22. What kinds of bugs that API testing would often find?
Missing or duplicate functionality
Fails to handle error conditions gracefully
Stress
Reliability
Security
Unused flags
Not implemented errors
Inconsistent error handling
Performance
Multi-threading issues
Improper errors
Swagger
Miredot
Slate
FlatDoc
API blueprint
RestDoc
Web service API specification
26. How often are the APIs changed and, more importantly,
deprecated?
APIs, especially modern RESTful APIs, are a nice creation that can
certainly simplify and accelerate integration efforts, which makes
it more likely you will benefit from them. But APIs can and do
change for various reasons, sometimes abruptly, and hence REST
APIs do not differ from traditional integration methods in this
respect. If an API call is obsolete and disappears, your procedure
will interrupt and it is important to understand how often the APIs
you depend on change or are deprecated.
PUT and POST operation are quite similar, except the terms of
the result generated by them.
41. What is the upper limit for a payload to pass in the POST
method?
<GET> appends data to the service URL. But, its size shouldn’t
exceed the maximum URL length. However, <POST> doesn’t
have any such limit.
47. What is the major obstacle users faced when using SOAP?
55. How does the message security model allow the creation of
SOAP more secure to use?
REST is easier to use for the most part and is more flexible. It has
the following advantages when compared to SOAP:
61. What are the factors that help to decide which style of Web
services – SOAP or REST – to use?
But you can read the following facts before opting for any of the
styles.
Wish you confidence and luck in your testing career! If you have
any suggestions on this topic, please do not hesitate to add to
here. We look forward to a better and more adequate list to all
testers.