Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

PATCH Request In REST Assured

Category: Rest Assured
RestAssured
			.given()
					.baseUri("https://hireqa.co.in/register/1")
					.cookie("token", "12345678")
					.contentType(ContentType.JSON)
					.body(jsonString)
			// WHEN
			.when()
					.patch()
			// THEN
			.then()
					.assertThat()
					.statusCode(200)
					.body("firstname", Matchers.equalTo("Phani"))
					.body("lastname", Matchers.equalTo("Nagula"));

Leave a Reply

Your email address will not be published. Required fields are marked *