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

RequestSpecification to build the request

Category: Rest Assured
RequestSpecification req= RestAssured.given()
		.accept(ContentType.JSON)
		.auth().preemptive().basic("username", "password")
		.header("headername", "headervalue")
		.param("paramname", "paramvalue")
		.cookie("cookieName", "value");

Leave a Reply

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