Answers for "extract values from request specification rest assured"

0

extract values from request specification rest assured

Java :

RequestSpecification requestSpec= RestAssured.given().baseUri("Some Base URI").basePath("/SomeBasePath");
requestSpec.get();
QueryableRequestSpecification queryRequest = SpecificationQuerier.query(requestSpec);
String retrieveURI = queryRequest.getBaseUri();
System.out.println("Base URI is : "+retrieveURI);
String retrievePath = queryRequest.getBasePath();
System.out.println("Base PATH is : "+retrievePath);
Posted by: Guest on September-06-2021

Code answers related to "extract values from request specification rest assured"

Browse Popular Code Answers by Language