- What is difference between API and WebService.
- What is difference between SOAP & Rest API.
- Can you write a sample of API(URL) and JSON.
- How do you handle Authentication token.
- How many type of Authentication in POSTMAN/ Rest-Assured.
- What is difference between OAuth1.0 and OAuth2.O ,When and where do you use and how. Can you write a sample code.
- What is baseURI 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 response.
- Can you write a code of save the response in a JSON file.
- How do you validate headers of response.
- What is difference between Headers and Header class.
- What is difference between response.header(“xyz”) and response.headers() methods.
- Can you extract all the headers from 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”)
andrequest.request(Method.GET,"/ allcustomers ");
- What is 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 way to post.
- What all are the dependency for Rest-Assured.
– Questions shared by Mr. Hari.
Happy Testing