Manuals / API Testing / Chapter 4
B · Test Design · intermediate · Week 2–3 · Chapter 4 of 11
Negative tests & edge cases
Happy paths are table stakes. Pro API testers ship negative cases: invalid payloads, missing auth, wrong methods, boundary values.
Path progress30%
Step 1 of 4
Negative categories
Invalid JSON, missing required fields, wrong types, unauthorized, forbidden, not found, method not allowed.
Do this now
Add 5 negative requests to collection. Assert 4xx status AND error message shape.
Was this step clear?
Chapter learning outcomes
- Negative case categories
- Error body assertions
- Boundary testing
Clear these before you leave
Side quest
Negative matrix
Table in NEGATIVE-TESTS.md: scenario, request, expected status, expected body keys.