Skip to content
CodeKruPro

The POST returned 201. Is the test done?

QuizEasy-Medium

POST /customers returns 201 and a body with the new customer. What should the test do next to prove the customer was really saved?

  • Read it back with GET /customers/{id} (or query the database) and compare the stored fields with what was sent
  • Nothing; 201 proves it was saved
  • Send the same POST again and expect 201 again
  • Check that the response time was under one second

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in