NETWORK5 MIN READ

Catch an environment leak before it ships

Fail a production build that quietly calls staging, localhost or a debug endpoint.

The problem

A production deploy goes out and, for a subset of users, the app quietly talks to staging because one base URL was never switched. Nothing looks wrong. Data writes to the wrong place for days. No visual or functional test will ever see this, because the page works, it just works against the wrong backend.

The idea

A customs check on outbound traffic. Every request gets inspected, and anything headed somewhere it should not go gets stopped at the gate.

What you will catch

  • An assertion that no request hit staging, localhost or a debug host
  • A release gate that fails the build on a misrouted environment

How it works

Every request URL is in the captured network log, including third party and background calls. You assert that none of them match the hosts that should never appear in production.

Run it now

kane-cli --tui
# then paste this objective:
Go to https://practicesoftwaretesting.com and browse a product category.
Assert: no network request was made to a staging, localhost or debug URL.

Or one line, for CI or sharing

kane-cli run "Go to https://practicesoftwaretesting.com and browse a product category.
Assert: no network request was made to a staging, localhost or debug URL." --agent

What prints

Example run. Your numbers will vary by site, build and run. The PASS / FAIL and the zeros are the stable result, the raw timings and counts are illustrative.

▶ navigate + browse category                   ok
▶ assert no staging/localhost calls   0 found  ✓ PASS

RESULT  PASS   exit 0   ~1m   ~9 to 15 credits

Adapt it to your app

Go to <your production build> and complete <a representative flow>.
Assert: no network request was made to "staging", "localhost" or "<your debug host>".

Why it works

The check reads request hosts from the captured log, so it catches calls the UI never surfaces, including third party scripts and background requests.

What it unlocks

A one line production release gate. Wire it into CI so a misrouted environment fails the build instead of reaching users.

More Use Cases

CONSOLE

Catch the bug a screenshot misses

Your visual test is green and the page still loaded broken. This catches the server error and the thrown error the camera cannot see.

PERFORMANCE

X-ray any page

Point Kane CLI at any URL and get back every number your DevTools would show you, in one structured result.

COOKIES

See the cookie your test scripts are blind to

Assert an HttpOnly session cookie exists, the secure cookie that document.cookie and most test tools cannot read.

NETWORK

Check the response, not just the status

Assert the endpoint returned the right shape, an array with items or a field with a value, not merely a 200.

NETWORK

Catch the API failure behind a green page

Assert the real network result, a 200 where it matters and no 5xx anywhere, even when the page looks perfect.

CONSOLE

Catch the error that only fires on a click

Find the error that a page load check never sees because it only happens when the user acts.

COOKIES

Catch a cookie missing the Secure flag

Fail the moment any cookie is set without the Secure flag, so a session token can never travel over plain HTTP.

LOCAL STORAGE

Keep secrets out of local storage

Assert that no obviously sensitive value, a password, a card number, raw personal data, is sitting in storage any script could read.

GENERATE

Describe what to test, get the test cases

Say what you want to test in one sentence and Kane CLI generates the scenarios and the Positive, Negative and Edge cases, no browser, no writing them by hand.

GENERATE

Reuse what you already have with memory

Turn on the memory layer and generation reuses your relevant existing cases and avoids drafting duplicates of coverage you already wrote.

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