QuizAdvanced

Postman Test Assertions

Learn how Postman scripts assert response status and body in the Tests tab.

In Postman, you want to write a test that fails if a GET endpoint does not return HTTP 200. Which snippet placed in the 'Tests' tab correctly does this?