API Testing Interview Questions | Eklavya Online

API Testing Interview Questions

What are the advantages of API testing?

Advantages of API testing are: Test for core functionality: API testing provides access to the application without the user interface. The core functionality of the application will be tested before the GUI tests. This will help to detect the minor issue which can become bigger during the GUI testing. Time effective: API testing is less …

What are the advantages of API testing? Read More »

What are the principles of an API test design?

Here, are the seven principles of API test design. Exhaustive Testing: Exhaustive testing is not possible. Instead we need optimal amount of testing which is based on the risk assessment of the application. Defect Clustering: Defect Clustering states that a small number of modules contain the most of the defect detected. Approximately 80% of the …

What are the principles of an API test design? Read More »

What is messaging in RESTFUL Web Services?

RESTFUL Web Services use the HTTP protocol as a communication tool between the client and the server. This is the technique when the client sends a message in the form of HTTP request the server send back the HTTP reply which is called Messaging. This message consists message data and Meta data i.e. information on …

What is messaging in RESTFUL Web Services? Read More »

What is API framework?

A framework or software framework is a platform for developing software applications. API framework is a foundation on which software developer can build applications for a specific platform. Example: A framework can include predefined classes and functions that can be used to process input, manage hardware devices and interact with system software. Framework is similar …

What is API framework? Read More »

What are the components of an HTTP request?

An HTTP request have five components. These are: Action showing HTTP method like GET, PUT, POST, DELETE. Uniform Resource Identifier (URI): URI is the identifier for the resource on the server. HTTP version: Indicate the HTTP version like- HTTP V1.1. Request Header: Request Header carries metadata for the HTTP request message. Metadata could be a …

What are the components of an HTTP request? Read More »

What are the common tests that performed on API?

Here, are the common tests that performed on API are as: Response of the API should be verified based on the request. We will verify that the return value is based on request. When API is updating any data structure we should verify the system is authenticating the outcome. We will verify whether the API …

What are the common tests that performed on API? Read More »

What is the HTTP protocol supported by REST?

GET: GET is used to request data from the specified resource. GET request can be cached and bookmark. It remains in the browser history and has length restriction. When dealing with sensitive data GET requests should not be used. POST: POST is used to send data to server for creation or updating the resources. POST …

What is the HTTP protocol supported by REST? Read More »

What exactly needs to verify in API testing?

In API testing, we send a request to API with the known data and then analysis the response. We will verify the accuracy of the data. Will see the HTTP status code. We will see the response time. Error codes in case API returns any errors. Authorization would be check. Non-Functional testing such as performance …

What exactly needs to verify in API testing? Read More »