Illustrative example
Sample test case
- Title
- Request without a token is rejected
- Precondition
- An endpoint that requires login. Postman is set up.
- Test data
- Request without an authorization header.
- Steps
- Send a request to the endpoint without a token.
- Check the status code and response body.
- Expected result
- Status 401 with a clear error message. No data is returned.