RUM JavaScript API - 1.345.1
    Preparing search index...

    Interface DynatraceConfig

    Configuration for connecting to a Dynatrace environment during Playwright tests.

    interface DynatraceConfig {
        agentProvider?: () => string;
        appId: string;
        dumpEventsOnFail?: boolean;
        endpointUrl: string;
        ignoreWarnings?: string[];
        token: string;
    }
    Index

    Properties

    agentProvider?: () => string

    Specify an optional function that returns a promise resolving to a string of JavaScript code representing the RUM agent. If provided, this function will be used instead of fetching the agent from the Dynatrace endpoint.

    appId: string

    The application ID to identify the correct RUM JavaScript to fetch. You can find this in the URL if you open the Experience Vitals app and select the frontend you want to test. Example: APPLICATION-ABCDEF0123456789

    dumpEventsOnFail?: boolean

    Dump the array of Dynatrace events into the console in case an assertion fails.

    endpointUrl: string

    The URL of the Dynatrace API endpoint to connect to, see RUM manual insertion tags API for details. Example: https://{your-environment-id}.live.dynatrace.com or https://{your-activegate-domain}/e/{your-environment-id}

    ignoreWarnings?: string[]

    Accepts an array of regular expressions to match against Dynatrace-related warnings. By default, these warnings trigger test fails. If you anticipate warnings and don't want your tests to fail, use this setting to ignore them by message. Example: ["invalid property my_app_data.\w+[0-9_]*"]

    token: string

    The authentication token for the installation. See Tokens and authentication.