AutoBE
    Preparing search index...

    Union type encompassing all possible expressions in test scenarios.

    Expressions represent values, computations, and operations that can be used within statements. This comprehensive set covers all necessary constructs for building complex E2E test scenarios:

    Basic constructs:

    • Identifiers: Variable references
    • Property/Element access: Object navigation
    • Function calls: Utility invocations (NOT API calls - use IApiOperateStatement)
    • Literals: Direct values

    Advanced constructs:

    • Random generators: Test data creation
    • Operators: Logical and arithmetic operations
    • Arrow functions: Callback definitions
    • Predicates: TestValidator validation operations (preferred over manual validation)

    Note: API function calls should NOT be represented as expressions. Use IApiOperateStatement for all SDK API operations instead.

    AI selection strategy: Choose expression type based on the specific operation needed in the business scenario. For API calls, always use the dedicated statement type rather than call expressions.