I’m a totally newbie, so apologies in advance if I’m asking for something obvious, but I’ve tried to find an answer unsuccessfully.
I’m getting a JSON response with several items and I can sort these items using a sorting parameter. I would like to test if the items are sorted as expected and I’ve been able to do it for numbers and dates, but I’m unable to do it when the elements I’m comparing are two strings.
I capture consecutive strings in a couple of variables and my assertion is as simple as:
but I get the AssertionError: expected ‘name’ to be a number or a date
Do you have any idea of how to do this comparison in Postman?