Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Class RecipeRegistry

    Queryable registry of reusable test pattern recipes.

    Provide curated SAP Fiori test patterns to AI agents and human testers.

    AI recipe lookup, test scaffolding.

    const registry = new RecipeRegistry();
    const aiRecipes = registry.forAI();
    Index

    Constructors

    Methods

    • Creates a registry seeded with an explicit list of entries.

      Parameters

      • entries: readonly RecipeEntry[]

        Recipe entries to seed the registry with.

      Returns RecipeRegistry

      A new RecipeRegistry instance containing the given entries.

      Use this factory in tests or plugins to provide a known set of recipes without modifying GENERATED_RECIPES.

      const registry = RecipeRegistry.fromEntries([authRecipe, navRecipe]);
      
    • Returns all recipes in an AI-agent-friendly format.

      Returns RecipeEntry[]

      All recipe entries ordered by insertion.

      Currently returns all registered entries. Future versions may apply token-budget-aware truncation or relevance scoring.

      const allRecipes = registry.forAI();
      const prompt = JSON.stringify(allRecipes);
    • Returns the top n recipes from the registry.

      Parameters

      • n: number

        Maximum number of recipes to return.

      Returns RecipeEntry[]

      Up to n recipe entries.

      Returns at most n entries in insertion order. If fewer than n recipes are registered, all registered entries are returned.

      const topThree = registry.getTopRecipes(3);
      
    • Searches recipes by substring match against title or description.

      Parameters

      • query: string

        Substring to search for.

      Returns RecipeEntry[]

      Matching recipe entries.

      Case-insensitive substring match. Also checks tags for matches. For semantic search, pass forAI() output directly to an LLM.

      const loginRecipes = registry.search('login');
      const samlRecipes = registry.search('saml');
    • Returns recipes matching the given filter criteria.

      Parameters

      • filter: RecipeFilter

        Optional category and/or role constraints.

      Returns RecipeEntry[]

      Matching recipe entries.

      All specified filter properties are AND-combined. An empty filter object returns all registered recipes.

      const agentRecipes = registry.select({ role: 'ai-agent' });
      const authNav = registry.select({ category: 'auth', role: 'both' });
    • Returns recipes matching the given category.

      Parameters

      • category: string

        Category string to filter by.

      Returns RecipeEntry[]

      Matching recipe entries.

      const authRecipes = registry.selectByCategory('auth');