jeudi 25 mars 2021

Test a big body response in JSON on Postman

I have a body response on Postman that return this for me:

[
{
    "key": "Dateline Standard Time",
    "value": "(UTC-12:00) International Date Line West"
},
{
    "key": "UTC-11",
    "value": "(UTC-11:00) Coordinated Universal Time-11"
},
{
    "key": "Aleutian Standard Time",
    "value": "(UTC-10:00) Aleutian Islands"
}]

So, inside the Tests tab, what should I write to test if the response is EXACTLY that in the same order?

Thx!

Aucun commentaire:

Enregistrer un commentaire