AutoBE
    Preparing search index...

    Random string generator with length constraints.

    Generates random strings within specified length ranges. Useful for creating variable-length text data like names, descriptions, codes, and identifiers for use in API operations and business logic testing.

    E2E testing scenarios:

    • User names and nicknames for API operation parameters
    • Product descriptions and content for API requests
    • Generated codes and tokens for business operations
    • Text content of varying lengths for validation testing
    • Custom identifiers for business entity creation

    API usage: Commonly used to generate string parameters for IApiOperateStatement calls with appropriate length constraints.

    interface IStringRandom {
        maxLength?: null | number & Type<"uint32">;
        minLength?: null | number & Type<"uint32">;
        type: "stringRandom";
    }
    Index

    Properties

    maxLength?: null | number & Type<"uint32">

    Maximum string length.

    • Null: No maximum length constraint
    • Number: Maximum number of characters

    Business considerations:

    • 255 for typical database field limits
    • 50 for names and titles in business systems
    • 1000 for descriptions and content fields
    • System-specific character limits for API operations

    AI length setting: Respect database constraints and UI limitations while allowing realistic content length variation for API operations.

    minLength?: null | number & Type<"uint32">

    Minimum string length.

    • Null: No minimum length constraint
    • Number: Minimum number of characters

    Business considerations:

    • 3 for minimum usernames in business systems
    • 8 for minimum passwords for security requirements
    • 1 for required non-empty fields in API operations
    • Business-specific minimum requirements for validation

    AI length setting: Consider business validation rules and user experience requirements for minimum lengths, especially for API parameter constraints.

    type: "stringRandom"

    Type discriminator.