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?


Related Posts:


0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

150,680

Blog Archive