Response Body:
[
{
"id": "100067191",
"customerTypeId": 2,
"firstName": "Tanya R.",
"lastName": "Smith",
"nextScheduledPremierOrder": {
"cv": null,
"qv": null,
"orderType": null,
"scheduledOn": null,
"price": {
"total": null
}
},
"rewards": {
"balance": null
},
"rank": {
"id": 0,
"description": "OPTAVIA Coach"
},
"certified": "0",
"licensed": "",
"phoneNumber": "916-617-0194",
"businessEmail": "[email protected]",
"accountEmail": "[email protected]",
"address": {
"line1": "637 Fourness Dr",
"line2": null,
"city": "West Sacramento",
"state": "US-AK",
"postalCode": "95605-2223",
"countryCode": "US-AK"
},
"socialAccounts": {
"facebook": {
"url": null,
"username": null
},
"instagram": {
"url": null,
"username": null
},
"twitter": {
"url": null,
"username": null
}
},
"highestAchievedRank": {
"id": 0
},
"volume": {
"pqv": "0.0000",
"fqv": "0.0000",
"gen0Qv": "0.0000",
"gqv": "0.0000"
},
"activationOn": null,
"businessCoach": {
"id": "5",
"firstName": "Company",
"lastName": "Account",
"rank": {
"id": 70
}
},
"globalDirector": {
"id": "30118781",
"firstName": "Paula",
"lastName": "Bryan",
"rank": {
"id": 110
}
},
"presidentialDirector": {
"id": "2591401",
"firstName": "Lisa",
"lastName": "Castro",
"rank": {
"id": 140
}
},
"earnedQsb": 0,
"orderingEntitiesCount": 0
}
]
pm.expect(jsonData[0].rank.description).to.eql(pm.iterationData.get('description'));
Tried but not working, error exist: expected 'OPTAVIA Coach' to deeply equal 'OPTAVIA Coach'
Sheet I cant attach but its very simple where as coulmn header as “description” and value as “OPTAVIA Coach”.
cc @gopagonirakesh98