NV
Size: a a a
NV
SM
const obj = pm.response.json();
console.log(obj.map(item => item.policiesStatus.map(status => status.policyStatus)))
SM
const obj = pm.response.json();
console.log(obj.map(item => item.policiesStatus.map(status => status.policyStatus)))
NV
arr.forEach(item => {
pm.test(`Assert '${item.name}' status is true'`, () => pm.expect(item.status).to.be.true);
})
B
SM
arr.forEach(item => {
pm.test(`Assert '${item.name}' status is true'`, () => pm.expect(item.status).to.be.true);
})
NV
SM
Assert '${item.name}' status is true'
, () => pm.expect(item.status).to.be.true);NV
Assert '${item.name}' status is true'
, () => pm.expect(item.status).to.be.true);SM
NV
SM
NV
const response = pm.response.json();
const arr = _.flattenDeep(response.map(item => item.policiesStatus.map(status => status.policyStatus)))
arr.forEach(item => {
pm.test(Assert '${item.name}' status is true', () => pm.expect(item.status).to.be.true);
});
SM
const response = pm.response.json();
const arr = _.flattenDeep(response.map(item => item.policiesStatus.map(status => status.policyStatus)))
arr.forEach(item => {
pm.test(Assert '${item.name}' status is true', () => pm.expect(item.status).to.be.true);
});
NV
SM
KV
KV
Status code is ${code}
] = falseKV