AutoBE
    Preparing search index...

    Namespace AutoBeTest

    AST type system for programmatic E2E test function generation through AI function calling.

    This namespace defines a comprehensive Abstract Syntax Tree structure that enables AI agents to construct complete E2E test functions at the AST level. Each type corresponds to specific TypeScript language constructs, allowing precise control over generated test code while maintaining type safety and business logic accuracy.

    The system is designed for systematic generation where AI function calls build test scenarios step-by-step, mapping business requirements to executable code. Instead of generating raw TypeScript strings, AI agents construct structured AST objects that represent:

    • Complete test function flows with proper data dependencies
    • Realistic API call sequences with captured responses
    • Comprehensive validation using TestValidator assertions
    • Complex business logic with conditional flows and error handling
    • IFunction: Root container representing complete test functions
    • Statements: Building blocks for test logic (API operations, expressions, conditionals)
    • Expressions: Value computations, API calls, data access, and validations
    • Literals: Direct values for realistic business data
    • Random Generators: Dynamic test data creation with business constraints
    • Predicates: TestValidator assertions for comprehensive validation

    In E2E testing, this typically maps to complete business scenarios like:

    • Customer purchase workflows (registration → product selection → payment → confirmation)
    • Seller product management (authentication → product creation → inventory management)
    • Multi-role interactions (seller creates product → customer purchases → admin processes)

    Each generated function represents a realistic business workflow with proper data flow, where API responses from earlier steps provide inputs for subsequent operations, creating authentic test scenarios that mirror real-world application usage.

    Samchon

    This namespace documentation is excluded from AI function calling schemas

    Interfaces

    IApiOperateStatement
    IArrayFilterExpression
    IArrayForEachExpression
    IArrayLiteralExpression
    IArrayMapExpression
    IArrayRepeatExpression
    IArrowFunction
    IBinaryExpression
    IBlock
    IBooleanLiteral
    IBooleanRandom
    ICallExpression
    IConditionalExpression
    IConditionalPredicate
    IElementAccessExpression
    IEqualPredicate
    IErrorPredicate
    IExpressionStatement
    IFormatRandom
    IFunction
    IIdentifier
    IIfStatement
    IIntegerRandom
    IKeywordRandom
    INewExpression
    INotEqualPredicate
    INullLiteral
    INumberRandom
    INumericLiteral
    IObjectLiteralExpression
    IPatternRandom
    IPickRandom
    IPostfixUnaryExpression
    IPrefixUnaryExpression
    IPropertyAccessExpression
    IPropertyAssignment
    IReturnStatement
    ISampleRandom
    IStringLiteral
    IStringRandom
    IThrowStatement
    ITypeOfExpression
    IUndefinedKeyword

    Type Aliases

    IExpression
    IStatement