k6-cucumber-steps API Reference - v2.0.10-alpha.0
    Preparing search index...

    Function k6TheBaseUrlIs

    • Sets the base URL for all API requests.

      Supports environment variable replacement using {{VARIABLE_NAME}} syntax. Values are resolved from:

      • globalThis[VARIABLE_NAME]
      • __ENV[VARIABLE_NAME] (k6 environment)
      • __ENV[K6_VARIABLE_NAME] (prefixed k6 environment)

      Parameters

      • url: string

        The base URL to use for API requests

      Returns void

      Given the k6 base URL is "https://jsonplaceholder.typicode.com"
      Given the k6 base URL is "{{API_BASE_URL}}"