I’m using postman tests section to automate the APIs
If the response parameter is something like this "currency": "USD",
, then we assert this by pm.expect(jsonResponse.currency, 'USD');
But if the response parameter is something like this "super-card.DCC": "false",
, in which key has -
, .(dot)
in it.
Then asserting like this pm.expect(jsonResponse.postingAttributes.super-card.DCC, false);
is not working.
Its failing with ReferenceError: card is not defined
Screenshot for reference:
Can anybody help me here?