↧
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 ArticleAnswer 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 ArticlePostman 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
More Pages to Explore .....