Guys please help with testing next - iâm receiving response where are more then 500 objects (1 sample is bellow), and i need to be sure that each object contains the KEY âidâ, as some of them donât have it, and thatâs a current issue.
I was trying this:
pm.test(âResponse contains propertyâ, function () {
pm.expect(pm.response.json()).to.have.property(âproperty_keyâ);
});
[
{
_ âidâ: â4FXtMUsâ,_
_ âcreatedAtâ: â2018-06-18T22â,_
_ âupdatedAtâ: â2018-11-11T13â,_
_ _
_ {_
_ âsizeâ: 95880,_
_ âbgColorâ: â8ca290â,_
_ âavgColorâ: â7c938fâ_
_ },_
_ âsharingLinkâ: {_
_ },_
_ âattributedDescriptionâ: [_
_ ],_
_ ],_
_ },_
]