Skip to main content
The top-level package exposes:
  • otp.fromUri(...)
  • configureTestkitClient(...)
  • getCurrentTestkitClient(...)
  • resetTestkitClient(...)
  • mountCifsShare(...)
  • startOpenVpn(...)
  • saveBaselineScreenshot(...)
  • saveEnvironmentVariable(...)
  • reloadEnvironmentVariables(...)
mountCifsShare(...), startOpenVpn(...), and saveBaselineScreenshot(...) all require a client configured with configureTestkitClient(...) first — see Client for how to create one. Example:

Environment variables

These helpers are intended for QA Wolf runner environments. They require the runner-provided QAWOLF_API_URL, QAWOLF_ENVIRONMENT_ID, and QAWOLF_TEAM_API_KEY environment variables. Use saveEnvironmentVariable(name, value) to save a string value to the current QA Wolf environment and update process.env[name] for the running flow. Use reloadEnvironmentVariables() to fetch the latest environment variables for the current QA Wolf environment and copy string values into process.env.

Error behavior

Client-dependent helpers — mountCifsShare(...), startOpenVpn(...), saveBaselineScreenshot(...) — throw when no client has been configured:
Environment variable helpers throw when the QA Wolf API configuration is missing or when the API request fails. saveBaselineScreenshot(...) also throws when the configured client does not provide screenshot support — see Client for the saveSnapshot port that enables it.
Last modified on September 11, 2026