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

    Function loadConfig

    • Loads, validates, and freezes Praman configuration.

      Parameters

      Returns Promise<
          Readonly<
              {
                  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;
              },
          >,
      >

      Frozen, validated PramanConfig with all defaults applied.

      const config = await loadConfig({ overrides: { logLevel: 'debug' } });