Negative Testing¶
Scenario-focused guides for generating negative test cases from OpenAPI specs.
Start here:
- Generating negative tests - CLI + Gradle workflows and verification tips
- YAML config - Shareable configuration
Each scenario guide includes:
- A minimal OpenAPI snippet for the scenario
- Inspected test case output
- Fixture-backed output excerpts (real test case names)
- Expected status code explanation
Parameter Validation¶
- Path Parameters - Tests for invalid path parameter values (pattern violations, wrong formats)
- Query Parameters - Tests for missing required parameters and invalid query values
- Header Parameters - Tests for missing required headers and security header validation
Request Body Validation¶
- Request Body Schema - Tests for missing request bodies and schema violations
Targeted Generation¶
Use Include Operations to generate tests only for specific paths and methods.
Related Configuration¶
- Ignore Rules - Exclude specific rules or test cases
- YAML Config - Config file structure and precedence