Rest Assured Using JAVA For SDETs
Rest Assured Using JAVA For SDETs
3xx (300 – 399): You are required to take further action to fulfill the request.
4xx (400 – 499): There's bad syntax and the request cannot be completed.
5xx (500 – 599): The server entirely fails to complete the request.
@BeforeClass
public void setup() {
// Set the base URI for Rest Assured
RestAssured.baseURI = "https://jsonplaceholder.typicode.com";
}
RestAssuredRestAssured.baseURI: Root or baseURL for all the APIs used for tests.
RequestSpecification: This interface allows you to specify how the request should look like. You can add headers, cookies, body, etc.,
to the request
Dependencies Used: