How to validate whether an array of objects in the response is sorted by a field ??
Sample Response { "result": { "list": [ { "proceduresId": 282, "name": "dark knightnew batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 281, "name": "latest_trendsnew batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 284, "name": "new batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 280, "name": "new batch workflow 123new batch workflow 123", "templateId": null, "isLocked": 0 } ], "count": 4 }, Hi, I am trying to write a script assertion to validate whether the objects in listarray are sorted by "proceduresId" field. Please help. Thanks HarshaSolved1.4KViews0likes2CommentsPassing array from groovy to request in Ready!API 2.3.0
Hi, I am passing multiple dates to my request, From groovy I returning this:[2018-06-11, 2018-06-13, 2018-06-11, 2018-06-14, 2018-06-11, 2018-06-14] Before version 2.3.0 I was using the script below to access each element (this one gives 2018-06-11): ${Groovy-CheckIn-CheckOut#result#$[0]} However in latest version it returns empty, also GetData no longer recognizes this array. Is there other way to access, is it related to JSON version update (I am not using one)?808Views0likes0Comments