Contract Testing
Overview
Contract Testing automatically validates captured HTTP traffic against OpenAPI (Swagger) specifications. Load an API spec and all requests/responses passing through the proxy are checked against it in real-time, reporting any violations.
Catch discrepancies between API specs and actual implementations early to prevent contract violations between frontend and backend.
How It Works
- Load an OpenAPI spec file (JSON or YAML)
- Perform path matching on traffic passing through the proxy
- Compare actual requests/responses against the matched path's schema
- Report violations
Spec Management
Multiple OpenAPI specs can be loaded simultaneously, each individually toggleable.
Validation Results
Each result includes:
Use Cases
API Development Validation
Load your API spec during backend development to get immediate feedback when actual responses differ from the spec. Automatically detect field type mismatches, missing required fields, and more.
Frontend-Backend Integration Testing
Validate that actual communication follows the API contract agreed upon by frontend and backend teams.
API Migration
Load the existing spec during API version upgrades to verify that new version responses don't break existing contracts.
Usage
Desktop
- Select Contract Testing from the sidebar
- Load an OpenAPI spec file
- Validation runs automatically during traffic capture
- Review violations
