I am seeing in the second request the body is {“playerId”:"Right(empty iterator)} Expected : 3 requests with body as {“playerId”:1} {“playerId”:2} {“playerId”:3}
Couldn’t you just extract playerIds directly from the first jsonPath query instead of doing it manually through a foreach block ?
e.g. $.data[*].playerId then a foreach on “pList”.
I have a similar setup wherein I am saving the multiple players. However, in case of empty result list, the request is marked as KO.
For example, if the output is
{ "result": "SUCCESS", "data": [] }
In this case, request is marked as KO below Request: player-request: KO jsonPath($.value[*]).findAll.exists, found nothing
I understand this is because jsonpath() is inside check(). I was seeing the dontValidate in some other thread, but it doesn’t exist in current implementation.