Test field validation errors
Medium70 pts~25 min
- Field validation
- Negative testing
Practice app · Acme REST API
A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.
Your starter code already declares BASE_URL — call the API relative to it.
Objective
Send several invalid fields at once and assert each one is reported individually.
Your task
- 1POST BASE_URL + "/users" with { "name": "", "email": "not-an-email", "role": "owner" }.
- 2Assert 400 VALIDATION_ERROR.
- 3Assert error.fields has entries for name, email and role.
Acceptance criteria
- POST /users returns 400
- At least 3 assertions pass
Fixtures
- apiKey
- tqa_live_key_123
- basicUser
- admin
- basicPassword
- secret
- username
- qa@target.dev
- password
- Test@123
API testing · API Testing · Authorization & negative testing