Skip to main content

Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
Variables keep credentials and test data out of your objectives. Context files give the agent persistent background information — guidance, conventions, and notes that apply across runs.

Variables

Format

Variables are JSON objects keyed by name. Each entry describes a single variable:

Usage in Objectives

Reference variables with {{key}} syntax:
Before the objective is sent to the agent, {{email}} and {{password}} are rewritten to internal namespaced forms; the agent sees the resolved values at runtime.

Loading Order

Variables are merged from four sources in this order. Later sources override earlier ones for the same key:
  1. Global directory~/.testmuai/kaneai/variables/*.json
  2. Local project directory.testmuai/variables/*.json (relative to where you invoke kane-cli)
  3. File flag--variables-file <path>
  4. Inline flag--variables '<json>' (highest priority)
Within a directory, files are read in alphabetical order; later files override earlier files for duplicate keys. Files that fail to parse as JSON are skipped with a warning.

Inline Variables

Pass a JSON object directly on the command line:

Variables from a File

Point at a single JSON file:

Project-Local Variables

Drop one or more *.json files into .testmuai/variables/ inside your project’s working directory. They load automatically whenever you run kane-cli from that directory.
Project-local variables override global variables but are overridden by file and inline flags.

Global Variables

For values you want available across every project on your machine, place *.json files in ~/.testmuai/kaneai/variables/.
Global variables have the lowest precedence — anything else with the same key wins.

Example Variable File

Secrets

Mark a variable as secret by setting "secret": true:
Secret values are masked in displayed output and logs, and are routed to the secrets store instead of being synced to Test Manager as plain variables. Use this for credentials, tokens, and anything else that should not appear in shareable artifacts.
Do not commit credential files to version control. Add .testmuai/variables/ to your .gitignore, or use environment variable substitution in CI/CD.

Context Files

Context files are plain Markdown files whose contents are passed to the agent alongside your objective. Use them for standing instructions — coding conventions, accounts to use, sites to avoid, or domain knowledge the agent should always have.

Two Levels

Example Local Context File

Override Per Run

Override either context file for a single run:
If a context file is missing or empty, it is silently ignored — no error is raised.

What to Put in Context

Global context:
  • Company terminology and naming conventions
  • Standard test account references (no hardcoded values)
  • Performance expectations (e.g., “page loads in under 3 seconds”)
  • Universal navigation patterns
Local context:
  • App overview and purpose
  • Test environment URL and known limitations
  • Navigation patterns specific to this app
  • Known UI quirks and workarounds
  • Common test flows
  • Test data references (IDs, emails: no passwords)
Keep out of context:
  • Hardcoded secrets (use variables)
  • Large code blocks or logs
  • Information that changes frequently