AutoBE
    Preparing search index...

    Interface IObjectLiteralExpression

    Object literal for creating object values directly.

    Represents direct object construction with explicit properties. The primary mechanism for creating request bodies, configuration objects, and structured data in E2E test scenarios, particularly as parameters for API operations.

    E2E testing importance: Critical for API request bodies in IApiOperateStatement calls and configuration objects that drive business operations.

    interface IObjectLiteralExpression {
        properties: IPropertyAssignment[];
        type: "objectLiteralExpression";
    }
    Index

    Properties

    Properties

    properties: IPropertyAssignment[]

    Array of property assignments defining the object structure.

    Each property represents a key-value pair in the object. Properties should correspond to actual DTO structure requirements and business data needs when used as API request bodies.

    For API operations: Must align with API schema requirements when used as arguments in IApiOperateStatement. Property names and value types should match expected DTO interfaces.

    For test data: Can mix literal values with references to captured data from previous API operations to create realistic business scenarios.

    AI validation requirement: Ensure properties match the target schema definition exactly when used for API operations, including required fields and types.

    type: "objectLiteralExpression"

    Type discriminator.