Quantcast
Channel: Postman API testing: Unable to assert a value is true - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Danny Dainton for Postman API testing: Unable to assert a value is...

You could also just do this:pm.test('Check the response body properties', () => { _.each(pm.response.json(), (item) => { pm.expect(item.Verified).to.be.true...

View Article


Answer by Nguyen Quoc Dung for Postman API testing: Unable to assert a value...

Root cause:Your result is an array but your test is verifying an object. Thus, the postman will throw the exception since it could not compare.Solution:Use exactly value of an item in the list with if...

View Article

Postman API testing: Unable to assert a value is true

I am testing an API with a GET request that returns the following data: {"Verified": true,"VerifiedDate": 2018-10-08}I am trying to test that the first field comes back true, and the second field has a...

View Article
Browsing latest articles
Browse All 3 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>