Run End-to-End Tests from Your Terminal with Kane CLI

Author and Run Tests Right from the Terminal in Natural Language, with an Evidence-Backed Pass or Fail from a Real Browser.

npm install -g @testmuai/kane-cli

How Kane Exploration Mapped a 15-Screen Store That Had No Spec

A real Kane Exploration run on a 15-screen demo store with no spec: six runs, 21 flows, 64 findings and 23 proposed tests, plus a playbook for your own app.

Published

Summarise with AI

Thirteen minutes of exploration across two runs turned a store with no spec into a map of 15 screens and 21 flows, 64 findings with evidence and 23 proposed tests. Those numbers come from one Kane Exploration project, and this post walks through each of them.

Say you've just been handed an e-commerce site with a home page, product listings, brand pages, a cart, a checkout, account pages and a contact form. There is no PRD, no list of user flows and no test plan, and you've been asked to put tests on the flows that matter before the next release.

The usual first step is working out what the app does: reading the code, asking whoever is left on the old team, and writing it all down so someone can turn it into a test plan. Kane Exploration, part of both KaneAI and Kane CLI, is built to do that first step for you and keep the result current as the app changes.

The project below explored Automation Exercise, a public e-commerce practice site, over six runs on 24 October. It is also the worked example in the Kane Exploration docs.

The Setup: One Project, One URL

A Kane Exploration project holds one map of one app, so the first step is a TestMu AI Test Manager project for the store. From Kane CLI, the setup looks like this:

npm install -g @testmuai/kane-cli
kane-cli login
kane-cli projects create "Store exploration"
kane-cli explore run --project <project-id> --url https://automationexercise.com

The same run can start from KaneAI in the browser by pasting the URL. Every run in this project went to HyperExecute, so each one carried on without a laptop attached. All the numbers and screenshots in this post come from that project's Exploration view in Test Manager after run 6.

Two choices are worth making before the first run on your own app:

  • Policy - the read-only policy never submits a form or presses controls like Delete or Pay. The mutating policy is the default; it submits forms to reach more screens and belongs on staging copies with test data.
  • Sign-in - an app behind a login needs a setup step such as --deps "Logged in as {{username}} / {{password}}", or the agents stop at the sign-in screen.

Six Runs Built a Map of 15 Screens and 21 Flows

The map did not appear in one pass. Each run added to the same map, and all of the useful work happened in the last two runs:

RunDurationWhat it added to the map
Runs 1 to 4None recordedNothing, because each run ended before it reached a screen
Run 58 minutes11 screens and 11 flows
Run 65 minutes4 more screens and 10 more flows
Kane Exploration Activity tab for automationexercise.com listing six runs on HyperExecute, with runs 1 to 4 marked Found nothing and runs 5 and 6 completed in 8 and 5 minutes

The first four runs matter because your first runs on a new app may look the same. If a run ends with an empty map, check its history with kane-cli explore sessions, which lists every run with its stop reason, before you change anything else.

After run 6, the map held 15 screens, and Kane Exploration had grouped them into four business areas on its own:

Business areaScreensFindings
Brand products621
Home and help419
Shop and cart314
Account210

Those 15 screens were connected by 21 flows: 14 verified end to end, 5 changed and queued for a re-check on the next run, and 2 broken.

The grouping is the part a test plan usually takes longest to write. Seeing the store as four business areas shows where the revenue flows sit (Shop and cart) and which area needs credentials before anyone can test it (Account).

Two Broken Flows Pointed at the Same Screen

The overview for run 6 summed the exploration up in one line: 2 flows broke, 20 high-severity findings need review, and the explorer is stuck at sign-in.

Kane Exploration overview for run 6 of automationexercise.com showing 15 screens, 21 flows, 64 findings, 0 bugs and 8 use cases written, with a Needs Attention list

The two broken flows were "Contact support" and "Contact support or manage subscription", and both stopped at the Contact Us screen. A list of separate test failures would hide that pattern, because each failure would show up on its own with nothing tying them together. On the map, the two broken lines meet at the same box, so the place to look first is obvious.

The sign-in block is a different kind of finding. The agents reached the Account area but had no credentials, so the map flagged the gap instead of guessing past it. The fix on your own app is a --deps sign-in step with test-account variables, after which the next run explores what sits behind the login.

Reading 64 Findings by Rule Instead of One by One

Across the six runs, Kane Exploration flagged 64 findings: 20 high, 35 medium and 9 informational. Nobody wrote an assertion to find them, because the detectors for console errors, failed requests, broken links, slow requests and accessibility run on every screen the agents reach.

Kane Exploration flow status with 14 verified, 5 changed and 2 broken flows next to a findings panel with 20 high, 35 medium and 9 info findings and the top accessibility rules

The raw count looks alarming until you group it by rule. The top problems panel told the real story:

Accessibility ruleSeverityScreens affected
Buttons must have discernible textHigh15 of 15
Form elements must have labelsHigh3 of 15
Select element must have an accessible nameHigh1 of 15
Elements must meet minimum color contrast ratio thresholdsMedium15 of 15

A rule that fires on every screen usually points to one shared component, such as an icon button in the site header, so a single fix can clear 15 findings at once. Sort by rule and by screen, look for the shared cause, and fix the component instead of the page; the WCAG 2.2 guidelines explain what each rule protects.

The map's bug count stayed at zero, and that is by design. Kane Exploration treats every finding as a lead until someone on the team promotes it to a bug, because an agent without a spec can mistake a deliberate design choice for a defect; the reasoning behind that choice is in how an AI agent explores a web app and designs tests. Each finding carries an Evidence Pack with a clip, Network and Console tabs and before and after screenshots, so the person promoting it has what they need to decide.

Note

Note: Run the same exploration on your own staging app with the read-only policy, then sort the findings by rule. Sign up for TestMu AI and start from KaneAI or Kane CLI.

The Map Turned Into 8 Use Cases and 23 Tests

While the runs went on, design jobs read the map and wrote 8 use cases with 23 tests into the store's Test Manager project. Each use case was marked as proposed, so the team could tell what came from the map and what a person had already reviewed.

The review step matters more on an app with no spec than anywhere else. A test written from observed behavior describes what the app does today, including any bug the agents walked past, so a reviewer keeps the tests that match intended behavior and fixes the ones that describe a defect. The two Contact Us flows are the obvious example: a test that expects the broken behavior would pass and hide the problem.

From Kane CLI, the reviewed tests come down into a folder and run like any other Kane CLI test:

kane-cli explore context status <exploration-id>
kane-cli context pull --project <project-id>
kane-cli testrun run .testmuai/tests/<name>_test.md
kane-cli cover

The first run of a pulled test writes its steps in a real Chrome browser, which takes a few minutes and uses more credits than a replay. Later runs replay the recorded steps for far fewer credits, so the tests are cheap to keep in CI with Kane CLI on every pull request, next to whatever Playwright, Selenium or Cypress suite the store already has.

How to Run the Same Playbook on Your Own App

The store example follows a pattern that works on most apps nobody has written down:

  • Start on a staging copy with the read-only policy, so the first runs only look and never change data.
  • Add a sign-in step with test-account variables as soon as the map shows a sign-in block, because the screens behind a login are usually the ones that matter most.
  • Read the map before the findings list, and check which business areas the agents found and which flows are broken.
  • Group findings by rule and by screen, and fix shared components first.
  • Leave labels and notes on screens, and mark risky screens or controls as do not touch, so the next run spends its time where your users do.
  • Review the proposed use cases and tests, fix any that describe a bug, and add the approved ones to CI.
  • Run Kane Exploration again on each release candidate, so new and changed screens show up on the map and changed flows get re-checked.

Kane Exploration covers web apps today. If your product also has native mobile apps, KaneAI and Kane CLI already test those, and the flows you approve from the web map tell you which mobile flows to cover first.

Kane CLI - Testing Agent in Your Terminal

Try It on the App Your Team Knows Least

Kane Exploration comes with the KaneAI Max plan. Start a read-only run from KaneAI by pasting a staging URL, or install Kane CLI with npm install -g @testmuai/kane-cli and run kane-cli explore run against the app.

Explore your app with Kane Exploration, and keep the docs open for the flags you will reach for on run two.

Was this helpful?

Author

Shantanu Wali

Shantanu Wali

Author · 34 posts

Shantanu Wali is Vice President of Product Management at TestMu AI, where he owns several product lines across the testing platform, including the Real Device Cloud and the Digital Experience Testing Cloud. He has also contributed significantly to the development and scaling of KaneAI, TestMu AI's flagship GenAI-native testing agent that uses natural language to make software testing faster and more reliable in this AI era. He brings 7+ years of experience across software development and product management, starting as a backend developer at Infosys building solutions for Fortune 500 clients. Shantanu holds an MBA from IIM Calcutta and a B.Tech in Mechanical Engineering.

Kane Exploration Use Case FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests