1. AI-Suggested Rules (No Setup Required)
When you create test scenarios using the AI Agent, Qodex automatically suggests a set of relevant rules under the Suggested tab. These are intelligently generated based on:- The API’s response schema
- Typical validation patterns (e.g., status code checks, key presence)
- Historical assertions across similar endpoints
- Status code should be 200
- Response body should contain user_id
- Error message should be shown if email is missing
2. Manual Rules (Assertions + DB Validation)
If your scenario needs custom logic:- Switch to the Write tab
- Choose from:
- Assertion: validate status codes, keys, values in the response
- DB Validation: write natural language rules to cross-check against your database (e.g., Postgres)
- “If the user is created, their name and email should match the DB”
- “If token is missing, return 401”