I hope you guys can help me here. I’m not sure if I’m missing something or it’s a Postman bug:
As you can see in the screenshot, JSON response shows a validation error because some of the required fields are missing from the body. However, my test is still passing, even tho there are no “name”, “logline” or “userdId” properties in the json response. It should have failed at the very first step because jsonData.name would be “undefined”.
- So far, it seems like Postman is skipping pm.test() and marking it as Passed if the response is some kind of validation error. So it doesn’t matter what the assertion is, it will always pass.
Any advice is appreciated. Thanks.
Postman v. 7.3.4