Hi,
New to postman. I am looking for some help in adding an assertion in postman tests to check two attribute values are equal. In below example, I want to assert “available” value is equal to “stock” value under Details array. Could someone please provide me with a script for this?
{
“org”: “RRR”,
“Channel”: "US ",
“Products”: [
{
“productId”: “12345678”,
“Types”: [
{
“Type”: “SHIP”,
“Details”: [
{
“segment”: “Men”,
“available”: 100.0,
“Stock”: 100.0,
“Locations”:
}
]
}
]
}
]
}