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

    Function defineConfig

    • Type helper for Praman config files — returns input unchanged.

      Parameters

      • input: {
            ai?: {
                anthropicApiKey?: string;
                apiKey?: string;
                apiVersion?: string;
                deployment?: string;
                endpoint?: string;
                maxTokens?: number;
                model?: string;
                provider?: "openai" | "azure-openai" | "anthropic";
                temperature?: number;
            };
            auth?: {
                baseUrl: string;
                client?: string;
                language?: string;
                password?: string;
                strategy?: "btp-saml"
                | "basic"
                | "office365"
                | "custom";
                username?: string;
            };
            controlDiscoveryTimeout?: number;
            discoveryStrategies?: ("direct-id" | "recordreplay" | "registry")[];
            ignoreAutoWaitUrls?: string[];
            interactionStrategy?: "ui5-native" | "dom-first" | "opa5";
            logLevel?: "error" | "debug" | "warn" | "info" | "verbose";
            opa5?: { autoWait?: boolean; debug?: boolean; interactionTimeout?: number };
            preferVisibleControls?: boolean;
            selectors?: {
                defaultTimeout?: number;
                preferVisibleControls?: boolean;
                skipStabilityWait?: boolean;
            };
            skipStabilityWait?: boolean;
            telemetry?: {
                endpoint?: string;
                exporter?: "otlp"
                | "azure-monitor"
                | "jaeger";
                openTelemetry?: boolean;
                serviceName?: string;
            };
            ui5WaitTimeout?: number;
        }

        Config input to pass through.

      Returns {
          ai?: {
              anthropicApiKey?: string;
              apiKey?: string;
              apiVersion?: string;
              deployment?: string;
              endpoint?: string;
              maxTokens?: number;
              model?: string;
              provider?: "openai" | "azure-openai" | "anthropic";
              temperature?: number;
          };
          auth?: {
              baseUrl: string;
              client?: string;
              language?: string;
              password?: string;
              strategy?: "btp-saml"
              | "basic"
              | "office365"
              | "custom";
              username?: string;
          };
          controlDiscoveryTimeout?: number;
          discoveryStrategies?: ("direct-id" | "recordreplay" | "registry")[];
          ignoreAutoWaitUrls?: string[];
          interactionStrategy?: "ui5-native" | "dom-first" | "opa5";
          logLevel?: "error" | "debug" | "warn" | "info" | "verbose";
          opa5?: { autoWait?: boolean; debug?: boolean; interactionTimeout?: number };
          preferVisibleControls?: boolean;
          selectors?: {
              defaultTimeout?: number;
              preferVisibleControls?: boolean;
              skipStabilityWait?: boolean;
          };
          skipStabilityWait?: boolean;
          telemetry?: {
              endpoint?: string;
              exporter?: "otlp"
              | "azure-monitor"
              | "jaeger";
              openTelemetry?: boolean;
              serviceName?: string;
          };
          ui5WaitTimeout?: number;
      }

      The input unchanged.

      Used in praman.config.ts for IDE autocomplete and type checking.

      // praman.config.ts
      import { defineConfig } from 'playwright-praman';
      export default defineConfig({ logLevel: 'debug' });