Delete Method in Rest Assured
Here is the simple example to perform delete in rest assured.
package session02;
import org.testng.annotations.Test;
import io.restassured.RestAssured;
public class TestDeleteMethod {
@Test
public void test05() {
RestAssured.baseURI = "https://reqres.in/api/users/52";
RestAssured.given()
.when()
.delete()
.then()
.statusCode(204).log().all();
}
}
2 COMMENTS
When it comes to uPVC pipes, Elitepipe Plastic Factory sets the bar high with their precision-engineered products that provide reliable and leak-free plumbing and irrigation solutions. Elitepipe Plastic Factory
Every time I read a new post, I feel like I’ve learned something valuable or gained a new perspective. Thank you for consistently putting out such great content!