Descriptive title explaining what is being validated.
🚨 CRITICAL: This MUST be a simple string value, NOT an expression! 🚨
❌ WRONG - DO NOT use expressions of any kind:
✅ CORRECT - Use direct string values only:
Should clearly describe the business context and expectation being tested. This title appears in test failure messages to help with debugging.
Examples:
AI title strategy: Use business-meaningful descriptions that explain the validation purpose and help developers understand test failures.
Type discriminator.
Expected value expression (first parameter to TestValidator.equals).
Represents the value that should be returned or the expected state after a business operation. Typically literal values or previously captured data from earlier API operations.
Common patterns:
AI value selection: Choose expected values that reflect realistic business outcomes and match the API response schema.
Actual value expression (second parameter to TestValidator.equals).
Represents the actual value returned from API operations or business operations that needs validation. Often property access expressions extracting specific fields from captured API response data.
Common patterns:
AI expression construction: Ensure the actual value expression extracts the correct data from API responses according to the schema structure.
Equality validation predicate for TestValidator assertion.
Generates TestValidator.equals() calls to verify that two values are equal. This is the most commonly used validation pattern in E2E tests for confirming API responses match expected values and ensuring data integrity throughout business workflows.
Preferred over manual validation: Use this instead of
IIfStatement
with throw statements for equality checking.E2E testing scenarios:
AI function calling usage: Use after API operations (IApiOperateStatement) to validate response data and confirm business logic execution. Essential for maintaining test reliability and catching regressions.