Advance API Testing Interview QnA Part 2 - 5 QnA
Advance API Testing Interview QnA Part 2 - 5 QnA
You can verify the Data Types of key and Value by JSON Schema Validation
You can verify the same using pattern, JSON Path extra
Question 1 - How will you validate 10,000 Records
where Data Type mismtach happens in Response? They are checking How you handle large chunk data.
https://www.jsonschema.net/
Read more
https://www.youtube.com/c/TheTestingAcademy/search?query=json%
20schema
They want to see Create, Update, Delete and Get a Booking as verfication https://restful-booker.herokuapp.com/apidoc/index.html
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.
w3.org/2003/05/soap-envelope">
<soap12:Body>
Given payload, verify conversion <FahrenheitToCelsius xmlns="https://www.w3schools.com/xml/">
<Fahrenheit>75</Fahrenheit>
Question 3 - Make a SOAP Request to URL given
</FahrenheitToCelsius>
and fetch the VERIFY THE expected? </soap12:Body>
</soap12:Envelope>
{
"firstname": "John",
"lastname": "Terry",
"totalprice": 5000,
"depositpaid": false,
Response is shared "bookingdates": {
"checkin": "2020-01-01",
"checkout": "2020-12-31"
},
"additionalneeds": "Lunch"
}
package com.example;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"key"
})
@Generated("jsonschema2pojo")
public class Example {
Advance API Testing Interview QnA Part 2 - 5 QnA
@JsonProperty("key")
private String key;
@JsonProperty("key")
public String getKey() {
return key;
}
"key" : "value"
}
It is used when you don’t want to give restriction on your members and give
user complete access of your entity
This increases the chance that this can be reused in multiple project types (
web, desktop, console etc).
https://www.jsonschema2pojo.org/
Full Framework
Subtopic 2
https://www.getpostman.com/collections/759cc00b76c41cdc9435
LIVE Projects