HTTP Testing
- •
What it is
- •
checks whether an HTTP service behaves according to tis stated contract using controlled requests and observable responses
- •
- •
Test dimensions
- •
method, target URL, request headers, request body, expected status, response headers, and response body.
- •
for negotiation: missing headers, supported types, wildcards, preference weights, and explicit rejection with
q=0. - •
for caching: first response, repeat request, validators, conditional requests, and invalidation after changes.
- •
- •
Practice
- •
separate protocol behavior from browser effects such as cached responses and CORS enforcement.
- •
inspect headers and body independently; a successful status alone does not verify the representation.
- •
a HEAD response has no message body, even when its metadata describes the corresponding GET representation.
- •
- •
Relataed