~/talk

More than 200 OK: How to Do Negative Testing on APIs

Talkat TestFlix 2022 · 2022-10-08..10-09· [testing]
slides:none on file

Covers concrete negative API tests using Postman against the demo API at thinkingtester contact list for rokuapp.com. Shows happy paths (POST /contacts → 201, GET → 200) then three negative categories: response codes, security, and input validation. Demonstrations include missing auth header (401), invalid token "Foo" (401), cross-user access returning 404 by design, missing required firstName (400 + error), lastName 21 chars when max 20 (400 + error), and invalid birthdate Feb 29 2021 (400). Wraps up with assertions to check exact status and error messages.

AI-written summary · about

  1. 0:00Introduction
  2. 0:21Why test APIs
  3. 3:35Negative test types
  4. 5:40API security tests
  5. 9:11Input validation tests
  6. 12:45Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.