```json
{
"tests": [
{
"name": "basic_connectivity_and_auth",
"endpoint": "/postcodes/EC1A1BB",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"expected_behavior": "Returns details for the given postcode",
"metrics": ["latency", "status_code"],
"validation": {"field": "result", "type": "object", "min_length": 1}
},
{
"name": "primary_endpoint_with_realistic_payload",
"endpoint": "/postcodes",
"method": "GET",
"headers": {},
"payload": {"query": "EC1A", "limit": 5},
"expected_status": 200,
"expected_behavior": "Returns a list of suggestions for the given query",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "result", "type": "array", "min_length": 1}
},
{
"name": "measure_latency_normal_conditions",
"endpoint": "/postcodes/EC1A1BB",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"expected_behavior": "Returns quickly with valid response",
"metrics": ["latency"],
"validation": {"field": "result", "type": "object", "min_length": 1}
},
{
"name": "error_handling_bad_input",
"endpoint": "/postcodes/INVALID_POSTCODE",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 404,
"expected_behavior": "Returns an error for invalid postcode",
"metrics": ["latency", "status_code"],
"validation": {"field": "error", "type": "string", "min_length": 1}
},
{
"name": "error_handling_missing_params",
"endpoint": "/postcodes",
"method": "GET",
"headers": {},
"payload": {"longitude": 0.1276, "latitude": 51.5074},
"expected_status": 200,
"expected_behavior": "Returns nearest postcodes for given geolocation",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "result", "type": "array", "min_length": 1}
}
],
"pricing_probes": [],
"stress_profile": {
"concurrent_requests": 5,
"duration_seconds": 10,
"ramp_up": true
}
}
```