---
title: Keep the Intent. Throw Away the Script.
description: Scripts are cheap to generate now, so the intent behind a test is the asset worth keeping. Learn how to regenerate broken UI tests safely.
image: https://mkt.qa.katalon.com/hubfs/keep-the-intent-throw-away-the-script.png
---

Up to 55% off Your first purchase - Offer ends Oct 31 [Claim offer](https://mkt.qa.katalon.com/pricing?campaign_source=top-nav-banner&campaign_medium=banner&campaign_name=oct-2026)

[Contact us](https://mkt.qa.katalon.com/contact-us?contact_source=top-nav) [Log in](https://mkt.qa.katalon.com/sign-in?ref=header_start_free_trial&return_to=%2Fresources-center%2Fblog%2Fkeep-the-intent-throw-away-the-script)

[![Katalon](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-wordmark.svg)](https://mkt.qa.katalon.com/)

 True Platform

 Solutions 

[Pricing](https://mkt.qa.katalon.com/pricing)

 Resources

[Start free trial](https://mkt.qa.katalon.com/open-true-platform?ref=header_start_free_trial) [Book a demo](https://mkt.qa.katalon.com/view-a-demo?contact_source=top-nav)

[Test automation Katalon Studio Author web, mobile, API and desktop tests with no-code, low-code or full code.](https://mkt.qa.katalon.com/katalon-studio) [Test management + manual testing TestOps Plan cycles, track coverage and gate releases on one shared report.](https://mkt.qa.katalon.com/testops) [Test execution TestCloud Run suites in parallel on real browsers, devices and your own CI runners.](https://mkt.qa.katalon.com/testcloud) [Production insights TrueTest See how real users move through your product and where coverage is missing.](https://mkt.qa.katalon.com/truetest)

![](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-ai.svg)

Katalon AI runs through all four

 Generate cases from requirements, heal locators when the app changes, and summarise release readiness.

[Explore Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP server](https://mkt.qa.katalon.com/katalon-mcp)

Application under test

[Web testing Quickly create your tests, debug with advanced tools, and execute across multiple browsers.](https://mkt.qa.katalon.com/web-testing) [API testing Streamline testing for any API architecture, and unify API, web and mobile testing in one platform.](https://mkt.qa.katalon.com/api-testing) [Mobile testing Test your Android and iOS apps across browsers, devices and operating systems.](https://mkt.qa.katalon.com/mobile-testing) [Desktop testing Test your Windows apps with Studio and move between AUTs without leaving the tool.](https://mkt.qa.katalon.com/desktop-testing)

Enterprise-grade testing

 Deliver quality at any scale: Studio's ease of use, a central testing command centre, AI-assisted authoring and enterprise security controls. 

[See enterprise capabilities](https://mkt.qa.katalon.com/enterprise)

By industry

[Banking and financial services](https://mkt.qa.katalon.com/banking-financial-services-software-testing) [Retail and ecommerce](https://mkt.qa.katalon.com/retail-ecommerce-software-testing) [Tech, telco and SaaS](https://mkt.qa.katalon.com/tech-telco-saas-software-testing) [Healthcare](https://mkt.qa.katalon.com/healthcare-software-testing) [Insurance](https://mkt.qa.katalon.com/insurance-software-testing) [Government and public sector](https://mkt.qa.katalon.com/government-and-public-sector-software-testing)

Learn

[Product docs Guides, feature specs, and API reference for every product.](https://docs.katalon.com) [Katalon Academy Over 50 free courses, with certifications on Katalon tools.](https://academy.katalon.com) [Release notes What shipped, product by product.](https://docs.katalon.com/katalon-platform/release-notes/katalon-testops-release-notes)

Get help

[Katalon community Advice, tips, and working examples from thousands of testing pros.](https://mkt.qa.katalon.com/community-hub) [Technical support Raise a ticket with the team and track it through to a fix.](https://support.katalon.com) [Trust center Security, privacy, and compliance documentation.](https://trust.katalon.com/)

Insights

[Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars and events](https://mkt.qa.katalon.com/webinars) [Reports](https://mkt.qa.katalon.com/reports) [Success stories](https://mkt.qa.katalon.com/case-studies) [![](https://katalon.com/images/the-future-of-software-testing/tfost-icon.png?width=32&height=32&name=tfost-icon.png) The Future of Software Testing](https://thefutureofsoftwaretesting.com)

[![](https://katalon.com/images/qa-leaders-live/qa-leaders-webinar-banner.png?width=1916&height=1156&name=qa-leaders-webinar-banner.png) Upcoming webinar QA Leaders Live: Navigating the Future of Software Quality October 27, 2026 Four live episodes on AI, automation, and delivering quality at scale. Register now](https://mkt.qa.katalon.com/webinars/qa-leaders-live)

[Download Studio](https://mkt.qa.katalon.com/download) [Browse integrations](https://mkt.qa.katalon.com/integrations) [Talk to an expert](https://mkt.qa.katalon.com/contact-us)

[![Katalon](https://mkt.qa.katalon.com/hubfs/website-assets-2026/brand/katalon-wordmark.svg)](https://mkt.qa.katalon.com/)

 True Platform

[Katalon Studio](https://mkt.qa.katalon.com/katalon-studio) [TestOps](https://mkt.qa.katalon.com/testops) [TestCloud](https://mkt.qa.katalon.com/testcloud) [TrueTest](https://mkt.qa.katalon.com/truetest)

 Katalon AI

[Explore Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP](https://mkt.qa.katalon.com/katalon-mcp)

 Solutions

Application under test

[Web testing](https://mkt.qa.katalon.com/web-testing) [API testing](https://mkt.qa.katalon.com/api-testing) [Mobile testing](https://mkt.qa.katalon.com/mobile-testing) [Desktop testing](https://mkt.qa.katalon.com/desktop-testing)

By industry

[Banking and financial services](https://mkt.qa.katalon.com/banking-financial-services-software-testing) [Retail and ecommerce](https://mkt.qa.katalon.com/retail-ecommerce-software-testing) [Tech, telco and SaaS](https://mkt.qa.katalon.com/tech-telco-saas-software-testing) [Healthcare](https://mkt.qa.katalon.com/healthcare-software-testing) [Insurance](https://mkt.qa.katalon.com/insurance-software-testing) [Government and public sector](https://mkt.qa.katalon.com/government-and-public-sector-software-testing)

Enterprise-grade testing

[See enterprise capabilities](https://mkt.qa.katalon.com/enterprise)

[Pricing](https://mkt.qa.katalon.com/pricing)

 Resources

Learn

[Product docs](https://docs.katalon.com) [Katalon Academy](https://academy.katalon.com) [Release notes](https://docs.katalon.com/katalon-platform/release-notes/katalon-testops-release-notes)

Get help

[Katalon community](https://mkt.qa.katalon.com/community-hub) [Technical support](https://support.katalon.com) [Trust center](https://trust.katalon.com/)

Insights

[Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars and events](https://mkt.qa.katalon.com/webinars) [Reports](https://mkt.qa.katalon.com/reports) [Success stories](https://mkt.qa.katalon.com/case-studies) [The Future of Software Testing](https://thefutureofsoftwaretesting.com)

Get started

[Download Studio](https://mkt.qa.katalon.com/download) [Browse integrations](https://mkt.qa.katalon.com/integrations) [Talk to an expert](https://mkt.qa.katalon.com/contact-us)

[Start free trial](https://mkt.qa.katalon.com/open-true-platform?ref=header_start_free_trial) [Book a demo](https://mkt.qa.katalon.com/view-a-demo?contact_source=top-nav)

[Contact us](https://mkt.qa.katalon.com/contact-us?contact_source=top-nav) [Log in](https://mkt.qa.katalon.com/sign-in?ref=header_start_free_trial&return_to=%2Fresources-center%2Fblog%2Fkeep-the-intent-throw-away-the-script)

 All All News Products Insights Community

- [All](https://mkt.qa.katalon.com/resources-center/blog)
- [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news)
- [Products](https://mkt.qa.katalon.com/resources-center/blog/tag/products)
- [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights)
- [Community](https://mkt.qa.katalon.com/resources-center/blog/tag/community)

 Search

Click

![search icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/search_page/search_lilac_icon.svg)

# Keep the Intent. Throw Away the Script.

Scripts are cheap to generate now, so the intent behind a test is the asset worth keeping. Learn how to regenerate broken UI tests safely.

[Start free trial](https://mkt.qa.katalon.com/sign-up?ref=blog_insight_hero_banner_download_studio_hero) [Book a demo](https://mkt.qa.katalon.com/view-a-demo#see-katalon-action)

Best Practices

General QA

![Hero Banner](https://mkt.qa.katalon.com/hubfs/keep-the-intent-throw-away-the-script.png)

[![logo](https://mkt.qa.katalon.com/hubfs/katalon_logo%20(1).svg)](https://mkt.qa.katalon.com/)

[All](https://mkt.qa.katalon.com/resources-center/blog) [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news) [Products](https://mkt.qa.katalon.com/resources-center/blog/tag/products) [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights) [AI](https://mkt.qa.katalon.com/resources-center/blog/tag/ai) [DevOps and CI/CD](https://mkt.qa.katalon.com/resources-center/blog/tag/devops-and-ci-cd) [Community](https://mkt.qa.katalon.com/resources-center/blog/tag/community)

[View Demo](https://mkt.qa.katalon.com/view-a-demo) [Download Studio](https://mkt.qa.katalon.com/download)

[Blog](https://mkt.qa.katalon.com/resources-center/blog) / [Insights](https://mkt.qa.katalon.com/resources-center/blog/tag/insights) /

Keep the Intent. Throw Away the Script.

## Keep the Intent. Throw Away the Script.

![Alex Martins](https://mkt.qa.katalon.com/hubfs/Alex_Martins_f0ba8e4005.png)

[Alex Martins](https://mkt.qa.katalon.com/author?name=alex-martins)

Vice President, AI Transformation Updated on

Learn with AI

Linkedin

Facebook

X (Twitter)

Mail

Learn with AI

I'll give you the takeaway from this blog right now: the part of a test worth keeping is what it's meant to prove, not the script that proves it. Scripts have become cheap to generate, so we should stop treating them as something precious to maintain. Keep the intent. Throw away the script.

Last time I wrote that [the first time an AI agent runs a manual test case, it can leave an automated test behind](https://mkt.qa.katalon.com/resources-center/blog/your-manual-tests-are-already-automation), and every later run can use that script instead of the natural-language steps. That's where this starts, not where it ends. The obvious next question is what happens when the application changes and the script stops working.

The traditional answer is that someone fixes it. I think that answer is about to change, and the reason it's changing says a lot about where testing is heading.

The short answer

Why the intent behind a test is the asset worth keeping, at a glance:

- **What to keep:** The intent, meaning what has to be true for the software to be working.
- **What to let go of:** The script. It is cheap to generate now, so it is no longer something precious to maintain.
- **When a script breaks:** Don't patch it. Hand the intent back to an AI agent and regenerate a fresh script.
- **The firm rule:** The agent can change how the test gets there, never what it proves, and a person approves what changed.
- **The default:** Agentic when needed, deterministic by default. Scripts handle the repetition, and the agent steps in when something changes.

Keep the intent. Throw away the script.

## Scripts Used to Be Assets

For most of the last twenty-five years, a test script was something you built and then protected. You invested in a framework, wrote the scripts carefully, and maintained them for years. The whole argument for that investment was amortization: build it once, run it a thousand times, and the cost per run falls toward zero.

That argument was always shakier than it looked, because [maintenance kept eating the savings](https://mkt.qa.katalon.com/resources-center/blog/the-hidden-costs-of-test-maintenance). AI finished it off. A QA manager we spoke with recently described both eras about his own team, almost in one breath. A few years ago they built a proper framework and everyone worked inside it. Today, he said, everybody kind of sets up their own. One of his engineers pointed an AI coding assistant at an old test suite and had dozens of new tests back within a day.

That isn't sloppiness. It's a rational response to a new cost curve. When a script can be generated in minutes, the case for spending years maintaining it gets a lot weaker. A test used to be an asset you built. It's becoming output you generate.

## Every Test Has Two Layers

It helps to pull a test apart. Every test is really two things stacked on top of each other.

The top layer is intent: what has to be true for the software to be working. "A returning customer can apply a promo code at checkout and the order total reflects the discount." That sentence changes when the business changes, which isn't often.

The bottom layer is implementation: which field to click, which selector to use, how long to wait for the page, which button says "Apply." That layer changes whenever someone touches the interface, which is constantly.

Now this gets delicate. For over two decades we've stored, versioned, reviewed and maintained the bottom layer, and mostly let the top layer live in people's heads or in a test case nobody reads anymore. We've been carefully looking after the part that breaks every sprint, and neglecting the part that actually matters.

## When the Script Breaks, Don't Fix It

Once you see the two layers, maintenance looks different. Today, when a script breaks, the instinct is to repair it: find the element that moved, patch the locator, rerun. Even most "[self-healing](https://mkt.qa.katalon.com/resources-center/blog/self-healing-test-automation)" approaches work this way. They're smarter at patching, but they're still patching the implementation.

The alternative is to go back up a layer. The script failed, but the intent hasn't changed. So hand the intent back to an AI agent, let it work through the application as it is today, and have it produce a fresh script. You don't repair the old one. You regenerate a new one from the thing that never moved.

This only works with one firm rule: the agent can change how the test gets there, but never what the test proves. It can find a new path to the promo code field. It can't decide the discount no longer needs to be checked. And when it regenerates, a person should be able to [see what changed and approve it](https://mkt.qa.katalon.com/resources-center/blog/reviewing-ai-generated-test-cases). That's what keeps a test trustworthy when the script underneath it is disposable.

## Why Not Just Let the Agent Run Everything?

A fair question at this point: if an agent can [work through the application from the intent](https://mkt.qa.katalon.com/resources-center/blog/natural-language-test-automation), why keep scripts at all? Why not let the agent run every test, every time?

Because it's slow and expensive, and it doesn't need to be. An agent reasoning its way through a stable checkout flow for the thousandth time is doing work that was already done. A script runs the same flow in seconds, for next to nothing, and gives the same result every time. For a [regression suite](https://mkt.qa.katalon.com/resources-center/blog/how-to-maintain-regression-tests) that runs frequently, that difference adds up fast.

So the model I believe in is simple: [agentic](https://mkt.qa.katalon.com/resources-center/blog/what-is-agentic-qa-the-complete-guide-for-2026) when needed, deterministic by default. The script handles the repetition. The agent steps in when something changes, understands what the test was meant to prove, and leaves a new script behind. If that sounds like the [fast-and-slow thinking](https://mkt.qa.katalon.com/resources-center/blog/what-jev-means-for-software-testing) I wrote about a few weeks ago, it is. Save the expensive thinking for the moments that need it.

## What Changes for Your Team

If the intent is the asset, it deserves to be treated like one. That means writing it clearly enough that someone, or something, new to the product could follow it. It means reviewing it the way you'd review a requirement, not the way you'd skim a script. And it means versioning it and linking it to the features it protects.

It also changes which skills matter most. The most valuable person on a testing team used to be the one who could build and nurse a framework. Increasingly, it's the one who can describe precisely what "working" means, and [tell whether a result is actually right](https://mkt.qa.katalon.com/resources-center/blog/katalon-ai-test-execution-and-false-passes). That was always the heart of testing. For a while it just got buried under a lot of selectors.

So here's my suggestion for your next sprint review. Next time a pile of scripts goes red after a UI change, don't ask who's going to fix them. Ask whether the intent behind them is written down well enough that nobody should have to.

## Frequently asked questions

### What Does "Keep the Intent, Throw Away the Script" Mean?

\+

It means the part of a test worth keeping is what it is meant to prove, not the script that proves it. Scripts are cheap to generate now, so stop treating them as precious. Write, review and version the intent, and regenerate the script when the application changes.

### What Is the Difference Between Test Intent and a Test Script?

\+

Intent is what the test must prove, such as a returning customer applying a promo code and seeing the discount in the order total. The script is the implementation: which field to click, which selector to use and how long to wait. Intent changes with the business. Scripts change whenever the interface does.

### Should I Really Throw Away My Test Scripts?

\+

The point is to stop treating a script as something precious to maintain. Scripts are cheap to generate now. When one breaks after an interface change, regenerate it from the intent instead of patching it, and keep the intent as the asset your team writes, reviews and versions.

### How Is Regenerating a Test Different From Self-Healing?

\+

Most [self-healing](https://mkt.qa.katalon.com/resources-center/blog/self-healing-test-automation) approaches patch the implementation, for example by fixing a locator that moved. Regeneration goes back up a layer. An AI agent takes the unchanged intent, works through the application as it is today and produces a fresh script rather than repairing the old one.

### How Do You Know a Regenerated Test Still Checks the Same Thing?

\+

With one firm rule: the agent can change how the test gets there, but never what the test proves. It can find a new path to a field. It cannot decide an assertion no longer matters. A person should also be able to [see what changed and approve it](https://mkt.qa.katalon.com/resources-center/blog/reviewing-ai-generated-test-cases).

### Why Not Let an AI Agent Run Every Test?

\+

It is slow and expensive, and it does not need to be. An agent reasoning through a stable flow for the thousandth time repeats work that was already done. A script runs the same flow in seconds and gives the same result every time. Use the agent when something changes.

### How Should a Team Treat Test Intent as an Asset?

\+

Write it clearly enough that someone, or something, new to the product could follow it. Review it the way you would review a requirement, not the way you would skim a script. Version it, and link it to the features it protects.

Explain

|

![Alex Martins](https://mkt.qa.katalon.com/hubfs/Alex_Martins_f0ba8e4005.png)

[Alex Martins](https://mkt.qa.katalon.com/author?name=alex-martins)

Vice President, AI Transformation

Over the years, Alex has had the opportunity to learn from and work with highly talented people at some of the largest software and services companies in the world where, together, they transformed the way software was developed, tested and released for countless Fortune 500 companies.

<https://www.linkedin.com/in/alexmartinsit/>

on this page

Generate your first test case before you finish this article.

Test management and execution. Manual or Automated. One platform, no syncing results between tools.

Free 30-day trial [Start free trial](https://katalon.com/open-true-platform?ref=blog_sticky_cta)

![katalon\_black\_logo](https://mkt.qa.katalon.com/hubfs/katalon_black_logo.svg)

True Platform

[Test Automation with Katalon Studio](https://mkt.qa.katalon.com/katalon-studio) [Test Management](https://mkt.qa.katalon.com/testops) [Test Execution Cloud](https://mkt.qa.katalon.com/testcloud) [Production Insights](https://mkt.qa.katalon.com/truetest) [True Information Center](https://mkt.qa.katalon.com/true-information-center)

Solutions

[Katalon AI](https://mkt.qa.katalon.com/ai-powered-testing-platform) [Katalon MCP](https://mkt.qa.katalon.com/katalon-mcp) [Web Testing](https://mkt.qa.katalon.com/web-testing) [Mobile Testing](https://mkt.qa.katalon.com/mobile-testing) [API Testing](https://mkt.qa.katalon.com/api-testing) [Desktop Testing](https://mkt.qa.katalon.com/desktop-testing) [Visual Testing](https://mkt.qa.katalon.com/visual-testing) [Integrations](https://mkt.qa.katalon.com/integrations)

Resources

[Virtual Labs](https://cec.katalon.com) [Blog](https://mkt.qa.katalon.com/resources-center/blog) [Webinars](https://mkt.qa.katalon.com/webinars) [Reports](https://katalon.com/reports) [Software Testing Glossary](https://mkt.qa.katalon.com/software-testing-glossary) [Write for us](https://katalon.com/katalon-guest-post-guidelines) [What is Agentic QA?](https://mkt.qa.katalon.com/resources-center/blog/what-is-agentic-qa-the-complete-guide-for-2026)

Support

[Documentation](https://docs.katalon.com) [Community](https://forum.katalon.com) [Technical Support](https://katalon-inc.my.site.com/support/) [Training and Certification](https://academy.katalon.com/) [Sample Projects on GitHub](https://github.com/katalon-studio)

Company

[About Katalon](https://mkt.qa.katalon.com/about-us) [Events](https://mkt.qa.katalon.com/events) [News](https://mkt.qa.katalon.com/resources-center/blog/tag/news) [Brand Assets](https://mkt.qa.katalon.com/brand-assets) [Partners](https://mkt.qa.katalon.com/partners) [Careers](https://mkt.qa.katalon.com/careers) [Careers Blog](https://mkt.qa.katalon.com/careers/blog)

1720 Peachtree Street NW, Suite 870, Atlanta, GA 30309

General inquiries: [business@katalon.com](mailto:business@katalon.com)

Legal inquiries: [legal@katalon.com](mailto:legal@katalon.com)

Partnership inquiries: [partner@katalon.com](mailto:partner@katalon.com)

<https://www.facebook.com/KatalonPlatform> <https://twitter.com/KatalonPlatform> <https://www.linkedin.com/company/katalon/> <https://www.youtube.com/@KatalonTruePlatform>

[Legal](https://mkt.qa.katalon.com/terms) [Privacy](https://mkt.qa.katalon.com/terms#privacy-policy) [Security](https://mkt.qa.katalon.com/security)

Do Not Sell or Share My Personal Information

Copyright © 2026 Katalon, Inc. All rights reserved.

Click

![Katalon](https://mkt.qa.katalon.com/hubfs/contact-us-modal-2026/logos/katalon-horizontal-white-green.svg)

## Talk to someone who knows testing

Tell us what you are trying to solve and we will bring the right specialist to the call.

A reply within one business day A walkthrough on your own scenarios No obligation, and no sales sequence

**4.5** on G2 Trusted by 30,000+ quality teams

Thank you! We will contact you soon.

Click

Thanks for reaching out!

 We'll contact you shortly via email.   
In the meantime, you can start exploring with a 30-day trial of Studio Enterprise.

<iframe src="https://demo.arcade.software/vRJKNvm3VUmzeJknwpDi" title="Katalon Studio Tutorials" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

Your 30-day trial comes with:

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Full access to Studio Enterprise

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Web, mobile, desktop, API testing

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

Easy setup, 1-click integrations

![Icon](https://d1h3p5fzmizjvp.cloudfront.net/themes/katalon_4/images/pages/signup_dec2023/benefit_ticket_icon.svg)

No credit card required

[Download Studio Enterprise](https://mkt.qa.katalon.com/download)