Union type representing all possible statement types in test functions.
Statements are the building blocks of test function logic, each serving
specific purposes in the E2E testing context:
IApiOperateStatement: Primary mechanism for all SDK API operations with
automatic response handling and data capture
IExpressionStatement: Execute utility functions and validations without
value capture
IIfStatement: Handle conditional business logic (prefer predicates for
validation)
IReturnStatement: Function termination (rarely used in tests)
IThrowStatement: Explicit error scenarios
Note: IBlockStatement is intentionally excluded from this union as it
should only be used in special contexts (like if/else branches) rather than
as a general statement type in the main function flow.
AI selection strategy: Choose statement type based on the business action
being performed. Use IApiOperateStatement for all API operations with
automatic data capture, predicates for validations, and other statement
types for specific non-API needs.
Union type representing all possible statement types in test functions.
Statements are the building blocks of test function logic, each serving specific purposes in the E2E testing context:
Note: IBlockStatement is intentionally excluded from this union as it should only be used in special contexts (like if/else branches) rather than as a general statement type in the main function flow.
AI selection strategy: Choose statement type based on the business action being performed. Use IApiOperateStatement for all API operations with automatic data capture, predicates for validations, and other statement types for specific non-API needs.