API Testing · Junior · Question 70 of 75
Why verify side effects after a successful POST?
- 1Side effects are only checked in UI tests, not API tests
- 2The API may answer 201 while data, emails or events are wrong
- 3POST requests never change anything on the server side
Show the answer
Correct answer: The API may answer 201 while data, emails or events are wrong
Explanation
Read the resource back, check the database or the message queue, or check that an email was sent.