How to verify my value is Greater than or not?

Hello @Roshin_08 :wave:

You can try simple greater than symbol or above

 pm.test("Billing amount is less than 2500", function(){
            pm.expect(jsonData.data.bill<2500)
//or based on the req
//pm.expect(jsonData.data.bill<=2500)
});

Else chai below method works too.

 pm.test("Billing amount is less than 2500", function(){
            pm.expect(jsonData.data.bill).to.be.below(2500)
});

It’s better to go with the basic lesser than , greater than options :blush:

5 Likes