Comparing two different JSON response [ArrayList] Elements
Kindly need Your help & advice, I would like to compare / Match Content Assertion, but the problem is as the JSON files has multiples elements array, as described below screenshot :
right after the offer, there's a lot of OfferID -> this is considered [shop steps]as my source or files that I would like to compare,
and below screenshot is the target :
On the above screenshots is the OfferID that I would like to compare, is the OfferID actually the same ID as the previous ID [from shop step]. I doubt that I can use Match Content Assertion since the elements that I will check are too many. How to handle this scenario?
Any help is really appreciated.
FYI : @apmorales
I am not sure how you compare currently.
It should be fairly easy to compare using script assertion.
Here is the sample code to compare two lists
Of course, there may be different approaches to achieve the same.
Hi @nmrao ,
Really appreciate Your help,
I have already taken a look on the web that You shared, unfortunately, I'm not sure how to do that in ReadyAPI, since I'm new to ReadyAPI and GroovyScript.