Questions tagged [rest-assured-jsonpath]

For use only with the popular REST-Assured API testing framework for Java.

Path-based query syntax for JSON documents in the REST-Assured framework for API testing. Not to be confused with the JsonPath specification (http://goessner.net/articles/JsonPath/)

Docs: https://github.com/rest-assured/rest-assured/wiki/Usage#json-using-jsonpath

382 questions
-1
votes
1 answer

How to extract a specific value from Json response and use this value in the input payload json file in Rest Assured Automation Testing

I am not using any POJO Classes. Instead i am using External json file as payload file for 2 of my API's (Get API and Delete API). Add API >> Adds the book name, book shelf, other book details along with unique place_id. Delete API >> Used to delete…
-1
votes
1 answer

How to bypass errors and parse json field values

How to deserialize below JSON? When i am using below code Response response=engine.getResponse(Method.GET,strURL,strBAUsername,strBAPassword,null,ContentType.JSON); userEdit=response.as(TestUserRoleInfoList.class); // TestUserRoleInfoList is a POJO…
Uday
  • 1,433
  • 10
  • 36
  • 57
-1
votes
1 answer

Fetching data from an API, and using it as payload into a POST call

I have this test scenario where I need to fetch details from an API, write it to a file , make updates to a JSON array and update the file use the new file as a payload. I've been able to do the first two steps but not able proceed in the…
demouser123
  • 4,108
  • 9
  • 50
  • 82
-1
votes
1 answer

Rest Assured - JsonPath - I need two values to extract at the same time based on condition

I'm facing difficulty in extracting the values using JsonPath. Here is my json, applications:[ { "ab": 123, "isReady": true, "proId": 234 }, { "ab": 345, "isReady": false, "proId": 098 }, { "ab":…
Shr4N
  • 435
  • 3
  • 18
-4
votes
1 answer

Below is the output of my RestAssured API. How to calculate size of id's or list. Help me

@Test public void getData() throws IOException { Response res = given(). header("authToken",userToken). when(). get("/students"). then(). contentType(ContentType.JSON). extract(). response(); …
Sunil
  • 1
1 2 3
25
26