Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
676 views

I have this output [ {"name": "a"}, {"name": "b"} ] And the following code given() .get("endpoint") .then() .body("$.name", hasItem(&...
mdong's user avatar
  • 375
0 votes
1 answer
221 views

I have tried to create GPath expression with filter criteria to return "my-notes" in list of object when '"my-type"' is SPECIAL like : '"data.my-node.nodes.findAll{it.'my-type'...
saba's user avatar
  • 549
0 votes
1 answer
40 views

How to get a new list from the list of objects? I need a new list of objects to POST request this list of objects i get from response: { "success": true, "body": { "...
vVv's user avatar
  • 3
0 votes
1 answer
443 views

I was trying to find the summation of deceased count from JSON object extract from the following JSON response https://api.covid19india.org/state_district_wise.json Snippet from above is json "...
nikhil udgirkar's user avatar
1 vote
2 answers
979 views

I want to get the value of status from my response. So that i can assert it. I'm using rest assured with java & serenity BDD. Response { "locationType": "STORE", "...
Aishu's user avatar
  • 1,340
1 vote
1 answer
1k views

I am using rest assured with Serenity BDD and using Groovy Gpath to navigate thru JSON. Now, I have a scenario like where I need to get the Cost values more than 2 with below JSON. is there any way to ...
Ravi's user avatar
  • 13
2 votes
1 answer
342 views

I have this following method in which I return a List<ImField> object using the List<GPathResult> filteredList. I perform filteredList.each closure where I generate class at runtime and ...
Abhishek Dasgupta's user avatar
0 votes
1 answer
584 views

I have to get a max value for userId using RestAssured and Gpath syntax. I dont know what i should type in body after then. I have tried so many ways but it does not work. @BeforeClass public void ...
idzik's user avatar
  • 1
0 votes
1 answer
447 views

I receive the following response on a bad request against my API. I am using RestAssured for my rest response assertions. { "message": "An entity of type topic was passed in an invalid format", ...
Ihor M.'s user avatar
  • 3,218
0 votes
1 answer
2k views

I have following JSON response anonymous body and I need to parse nested arrays dynamically to retrieve a key's value based on a condition by using find or findAll in the groovy's closures [ { "...
Raj's user avatar
  • 31
0 votes
1 answer
157 views

Given the data model <outerTag> <tagA> </tagB> </tagA> <tagC> <interestingContent> ... </interestingContent> ...
Nerethar's user avatar
  • 347
0 votes
1 answer
124 views

Using Rest Assured in Java to test some APIs. Trying to use GPath to return a value. Why does this work? int i = response.path("Result.find{it.Amount>293.50 && it.Amount<293.52 &&...
Anton's user avatar
  • 870
1 vote
1 answer
509 views

I'm using RestAssured to help me with some testing. Given the following XML: <OptionalExtra ID="PREB" Description="Premium meal beef" Code="PREB" Supplier="PRI" FPC="extra.pax.flightmeal" Type=...
Steerpike's user avatar
  • 1,863
1 vote
1 answer
2k views

Edited... My knowledge in Groovy is basic and I need to perform the following action which I have no idea how to do. let's say I have this XML: <soap:Envelope xmlns:soap="http://schemas.xmlsoap....
Yossi Even's user avatar
2 votes
2 answers
2k views

Following is a sample XML: <root> <persons> <person gender="female">X</person> <person gender="female">Y</person> <person gender="...
Tapas Bose's user avatar
0 votes
1 answer
1k views

Need to parse an XML document that contains attributes within a header context. <?xml version="1.0" encoding="UTF-8"?> <S38:manageRequest xmlns:S38="http://ns.com/S38" xmlns:header="http://...
Plasma's user avatar
  • 2,922
0 votes
1 answer
1k views

I'm not sure what I'm doing wrong here and I'm having a hell of a time with getting this to work properly. Using this JSON: { "books": [ { "category": "reference", ...
Nabeel S.'s user avatar
2 votes
1 answer
6k views

I'm new to rest-assured and I'm currently spiking it in order to implement it in our testing framework. The problem I'm facing is to extract an object from a Json array from the REST response. The ...
Spook_0088's user avatar
1 vote
1 answer
2k views

I am using the RestAssured framework in Java, whose documentation contains this note Note that the "json path" syntax uses Groovy's GPath notation and is not to be confused with Jayway's JsonPath ...
Vlad.Bachurin's user avatar
1 vote
1 answer
961 views

In the following (partial)JSON response: { "costPrices": { "3226186": [ { "fromDate": 1420066800000, "toDate": null, "product": { I'm ...
sjottil's user avatar
  • 43
0 votes
0 answers
975 views

Given this XML <?xml version="1.0" encoding="UTF-8"?> <data> <level0 id="1" t="0" l0id="0"> <level1 id="lev1id01" att1="2015-05-12" val="12" status="0" year="2015" ...
lospejos's user avatar
  • 1,986
2 votes
2 answers
1k views

Suppose having XML: <?xml version="1.0" encoding="UTF-8"?> <data> <level0 id="2" t="1"> <level1 id="lev1id21" att1="2015-05-12" val="121" status="0" year="2015" month=...
lospejos's user avatar
  • 1,986
2 votes
1 answer
875 views

Given xml: <d> <r1 dt="2011-06-10"> <r11 dt="2012-07-10" /> <r12 rdt="2011-10-11"> <r121 dt="2010-05-13" /> </r12> </...
lospejos's user avatar
  • 1,986
1 vote
1 answer
575 views

with the XML code below: def soapResponse = " <Results> <ResultSet fetchSize="10"> <Row rowNumber="1"> <ID_ORDER>144107</ID_ORDER> <...
user1599401's user avatar
2 votes
2 answers
3k views

I have the following xml: <list> <cars> <model>2012</model> <make>GM</make> </cars> </list> I want to print these values as ...
Bharath Reddy's user avatar