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:
Run multiple independent browser tests concurrently to reduce total execution time. Instead of running tests sequentially (sum of all durations), parallel execution runs them simultaneously: total time equals the longest single test.

When to Run in Parallel

Split objectives and run in parallel when:
  • An objective has more than 15 steps: long objectives drift; split them
  • Tasks are independent: no shared browser state or sequential dependencies
  • You’re testing different features: login vs. checkout vs. settings
  • You’re testing different user roles: admin flow vs. customer flow
Each sub-objective must be self-contained: it navigates to its own URL, authenticates independently, and asserts its own outcomes.

Sequential Pattern

Run three tests one after another:
Total time: sum of all three durations.

Parallel Pattern (Shell Background Processes)

Total time: duration of the longest test.

Batch Summary Format

After all tests complete, present results like this:

AI Agent Sub-Task Pattern

For AI coding agents (Claude Code, Codex CLI, Gemini CLI), use the agent’s parallel task mechanism to spawn multiple sub-agents simultaneously. Each sub-agent runs one Kane CLI command and returns structured results. Agent prompt template (give this to each sub-agent):

Resource Limits

Each parallel Kane CLI instance opens its own Chrome browser. Monitor resources when running many parallel tests:
  • Each instance uses ~150–300 MB RAM
  • 4 concurrent tests = ~800 MB – 1.2 GB RAM
  • Each instance uses its own CDP port (9222–9230)
Start with 4 parallel tests and scale up based on your environment.
Always use --headless for parallel runs: multiple visible browser windows cause confusion and unnecessary resource overhead.