Quantcast
Channel: How to do 'OR' Operation in POSTMAN Tool - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Danny Dainton for How to do 'OR' Operation in POSTMAN Tool

$
0
0

You could do this, it was close to what you had already:

pm.test('Frequency Check', () => {    _.each(pm.response.json(), (arrItem) => {        pm.expect(arrItem.FREQUENCY).to.be.oneOf(["1 Month" , "3 Months" , "6 Months" , "1 Year rolling", "Since Inception"])    })})

I changed the response data slightly, so you can see what it looks like when it fails:

Postman


Viewing all articles
Browse latest Browse all 2

Trending Articles