13 – Top 10 REST-Assured API Automation Interview Questions And Answers.
restassured interview questions
In document style web services, we can transport an XML message as part of SOAP request which is not possible in RPC style web service. Document style web service is most appropriate in some application where XML message behaves as document and content of that document can alter and intention of web service does not rely on the content of XML message.
RESTFUL is referred for web services written by applying REST architectural concept are called RESTful services, it focuses on system resources and how state of resource should be transported over HTTP protocol to different clients written in different language. In RESTFUL web service HTTP methods like GET, POST, PUT and DELETE can be used to perform CRUD operations.
Rest Assured API Testing Interview Questions
Error code for authentication and Authorization
What is the difference between put and patch requests?
Is there any way to verify the response on UI? It was asked in an interview after performing API testing how do you verify on UI.
How to debug/read/rewrite req/response of API over HTTPS using Charles?
What is the difference between oath 1 and oath 2?
Enlist some common tests that are performed on APIs?
How to identify oath 1 and oath 2?
What is the purpose of the oath?
Oath generation testing
When to use the post method
What patch method and when to use it
What are other tools for API testing, apart from postman
What all to think/consider for switching Automations framework
The internal and external API token
Generate Access token
What have mainly used HTTP methods other than post get put and delete
What have mainly used HTTP methods other than post get put and delete
How does basic Authorization work?
Explain in brief the different types of output observed of an API.
Can booleans parameterized
What all testing you will perform on an API
Whats SQL injection, how to do it
Explain in brief the different types of output observed of an API. – JSON, XML, HTML, text
Heartbeat call and logistics call
Https local map for Charles proxy
What will you check first when a lot of failures in API automation?
What will you do when the API structure changes?
Which dependency is good to handle Json operations?
How do you keep Json requests in the automation framework?
Which of the following takes more time to script. Get or Post a call?
Tell me your approach to automating an API that is under development
Tell me a complex scenario you automated so far
What will be your action, when a mandatory header which is passed in all the services becomes optional?
What is the difference between API and WebService?
What is the difference between SOAP & Rest API?
Can you write a sample of API(URL) and JSON?
How do you handle the Authentication token?
How many types of Authentication are in POSTMAN/ Rest-Assured.
What is the difference between OAuth1.0 and OAuth2.O, When and where do you use and how? Can you write a sample code?
What is the base URI in RestAssured?
Can you explain RequestSpecification request = RestAssured.given();
What will be returned type of response.jsonPath().getJsonObject(“XYZ”);
How do you extract the values of JSON and how do you validate the response.
Can you write a code for saving the response in a JSON file?
How do you validate the headers of the response?
What is the difference between Headers and Header classes?
What is difference between response.header(“xyz”) and response.headers() methods.
Can you extract all the headers from the response at run time?
What is JSONObject() , request.header(“xyz”), response.path(“lable”) , response.body().asString() , response.getBody().prettyPrint(); , RestAssured.given().queryParam(“xyz”,”abc”);
What is difference between request.get(“https//dev-mode.com/api/allcustomers”) and request.request(Method.GET,”/ allcustomers “);
What is the difference between PUT and Patch? Have you ever used and where.
What are status code(2xx ,3xx ,4xx, 5xx) in API.
How do you print your response in JSON format?
How do you post body in POST and how many ways to post.
What all are the dependencies for Rest-Assured.
Rest API Testing Interview Questions For Testers
What is the difference between the patch and put method in RestApi?
When we use the get method data is not secured and when we use to post this method hides data?
What is Authentication?
Why do we use mocks or stubs?
What is the difference between rest API and microservices?
Why we do get parameter session and variable declaration in API?
What are the main methods that we use for API automation?
What are the JSON converters headers of API?
Once the response comes, what actually do we get?
How to create API?
How does caching work in microservices?
What is REST ASSURED?
What are the expectations the Technical panel sees for the tester from an API Automation perspective?
Why do we do API Testing what is the advantage and where we can do API testing?
Can anybody explain POJO
What are web services and API and differences between them
What are the Authenticated techniques/Types? we can use it to access the rest API?
What are the different ways to pass authentication in API requests?
What are Web services?
What is the difference between SOAP and REST
What is REST API
What is the difference between Web services testing and API testing
Difference between XML and HTML
What is Assertion
Types of Assertions
Difference between Xpath and XQuery
Types of Properties and their syntaxes
What is Data-Driven Testing
What is the Data Source Test step
Explain about JDBC process
How to Connect JDBC to SOAP UI
What is Connection String in JDBC
Difference between SOAP UI FREE v/s SOAP UI PRO
What are Data Sink and Data gen test steps in SoapUI pro
How to Transfer value using Property Transfer
What are Mock services
How to do Service mocking
What is the process of SOAP UI Testing
What is WSDL
What are the parameters are in WSDL
Explore the WSDL
Is WSDL is necessary for SOAP UI
Difference between HTTP and HTTPS
Why HTTP is important in Webservices
What is an Endpoint?
What are the HTTP methods and HTTP Status Codes?
Explain different types of HTTP methods and Usage
Explain different Status codes
Types of HTTP Status codes
What is the Request Header ? and its format?
What is Response Header ? and Its format?
What are tools are available for SOAP testing
Do u have experience in Load Testing
How to test Load Testing
What are TPS, Response Time, and Breakeven point
Absolute vs Relative Xpath?
What are Name Space and its usage
How to write Xpath for access attributes?
SOAP UI Architecture
How to generate Reports in Free Version
Different HTTP methods
HTTP status codes ( 200/400/500 series)
401 vs 403
Query and path parameters
How to construct JSON request (POJO/JSON Object/JSON Arrays)
How to validate Response ( POJO / JSON path /object Mapper)
How to validate/test API(different cases )
What are Authorization or API keys
RestAssured code snippets or HTTP client code snippets
Difference between REST and SOAPUI.
The method in REST.
Difference between PUT and PATCH call
How to integrate postman into the project?
How will you handle dynamic payloads in API?
How do you capture specific response values and pass them to other requests?
What challenges did you face in API testing?
What is the difference between Authorization and Authentication?
What are the API status codes, you have come across?
What is the difference between OAuth1.0 and OAuth2.O, When and where do you use and how. Can you write a sample code?
How do you get the response from one API and send it to another API?
What is Rest?
What tools are avail for REST?
What is JSON?
What is URI?
What is “R” in URI?
What are Params/Parameters?
What is HTTP?
Tell me a few HTTP methods and Status Codes?
What is the process to validate response data?
What Is the JSON path?
What is Header data?
What is an Authorization token?
What is the payload?
Steps to test REST application?
What is the usage of collections in POSTMAN?
What is WADL?
POST vs PUT
How will you handle server issues in API testing both in postman and rest assured.. like 5xx.. explain
What is an API?
What’s the diff between Rest vs SOAP
What are the different HTTP methods?
What are the different status codes and when will they occur?
What are the different ways you validate XML responses?
What are the different ways you validate the rest of the API response?
How do you use POJO? Sample POJO code for a JSON
How do you pass payload to rest API calls during automation?
Explain your automation framework?
Explain challenges that you face during the automation of the rest API’s
What are the diff types of testing you do with an API
What is the diff between regular calls vs OAuth calls?
How do you test security testing using APIs
How do you do performance testing with APIs
What is the difference between Put vs Patch?
We have 200 API and for all 200 APIs, there are 7 different fields..how you will validate. what will be your approach?
There are 25 fields you need to validate from API response what will be your approach. how will you validate? Will you create 25 variables to store responses for every field?
There are 1000 API post request calls to create records. The best approach to do that is to make our test cases run in any chrome version irrespective of the chrome driver version?
What is the RAML what is the use?
How to handle dynamic bearer token authentication (token has changed every one hour)
How do u know your URL and query parameters and path parameters are working or not
Where do use is given and when and then in your framework
How to create a post request with dynamic data in your framework
Explain your framework
Rest and sop difference?
What does mean by rest is light compared to soap
Why soap is more secure than rest.
Different response code
When we get a stale element exception.
Explain overloading and overriding with examples.
Explain all the oops concepts you used in your framework.
If you are not able to find any element then what techniques you will apply.
Verification and validation of different examples.
Response time in rest and soap services. Is any difference?