Tuesday, April 1, 2025

 

𝐑𝐞𝐬𝐭-𝐀𝐬𝐬𝐮𝐫𝐞𝐝 𝐀𝐏𝐈 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐓𝐞𝐬𝐭𝐢𝐧𝐠 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐐&𝐀 𝐟𝐨𝐫 𝐄𝐱𝐩(2 𝐭𝐨 5 𝐲𝐫𝐬)


1.What is the difference between API and WebService?
2.What is the difference between SOAP & REST API?
3.Can you write a sample of an API (URL) and JSON response?
4.How do you handle an authentication token?
5.How many types of authentication are available in POSTMAN/Rest-Assured?
6.What is the difference between OAuth 1.0 and OAuth 2.0? When and where do you use them, and can you write a sample code?
7.What is `baseURI` in RestAssured?
8.Can you explain `RequestSpecification request = RestAssured.given()`?
9.What will be the returned type of `response.jsonPath().getJsonObject("XYZ")`?
10.How do you extract values from JSON, and how do you validate the response?
11.Can you write a code to save the response in a JSON file?
12.How do you validate the headers of a response?
13.What is the difference between `Header` and `Headers` classes?
14.What is the difference between `response.header("xyz")` and `response.headers()` methods?
15.Can you extract all the headers from the response at runtime?
16.What is `JSONObject()`, `request.header("xyz")`, `response.path("label")`, `response.body().asString()`, `response.getBody().prettyPrint()`, `RestAssured.given().queryParam("xyz", "abc")`?
17.What is the difference between `request.get("https://example.com")` and `request.request(Method.GET, "/allcustomers")`?
18.What is the difference between PUT and PATCH? Have you ever used them, and where?
19.What are status codes (2xx, 3xx, 4xx, 5xx) in API?
20.How do you print your response in JSON format?
21.How do you post a body in POST, and how many ways are there to post?
22.What are the different dependencies you have used for Rest-Assured?



0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

Blog Archive