In Qodex, test rules define the expected behavior of your APIs including assertions on response data, status codes, and even validations against your database.
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
Common examples:
Status code should be 200
Response body should contain user_id
Error message should be shown if email is missing
Click to apply the rules directly, or customize as needed.