jeudi 16 juillet 2020

Test for Json output in postman console shows false but pass in Test tab

Doing test for array properties list for users in postman console shows fail but tests tab shows pass.

var responseData =pm.response.json();
pm.test("Test for UserFound", function () 
{console.log(pm.expect(responseData.users[0].firstname) === ("test"));

}); Test tab shows Pass, but console shows false

Let me know if anything missing. consolepostman

Aucun commentaire:

Enregistrer un commentaire