← All Posts

What is automated testing? Why determinism decides what works

Published on

Updated on

What is automated testing? Why determinism decides what works

Automated testing is the practice of using software to run tests against an application and compare the actual result with an expected one, without a person executing each step by hand. Teams use it to confirm that every release still behaves correctly, to catch regressions early and to repeat the same checks at a scale manual testing cannot match.

Most explanations stop at that definition. The part that decides whether automated testing works is discussed far less often. A test can only be automated when “correct” has a fixed, predictable answer, and a surprising amount of software does not work that way. Once you see that line clearly, the confusing parts of automation start to make sense. What to automate, why suites turn flaky and what AI genuinely changes all trace back to it.

Why determinism decides what automated testing can cover

A deterministic test is one where the same input always produces the same output, so the expected result can be written down in advance. 1 + 1 always equals 2, with no exceptions.

That matters because of how automated tests work. Every test compares an actual result with an expected one, and the comparison only means something if the expected result is fixed. If the “right” answer moves around, a pass tells you nothing and a fail tells you even less.

Most UI testing is deterministic by design. The same login with the same credentials should always reach the same dashboard, which is exactly why it automates well. Some things are genuinely not deterministic, such as a personalized recommendation feed, an AI-generated summary or a judgment about whether a screen looks right. Treating them as if they were deterministic is where automated suites quietly become unreliable. The same logic applies to testing AI features, where an output that varies by design cannot be checked against one fixed answer.

Automated testing vs manual testing and what each one does

When a person tests a feature by hand, they are doing four separate things:

  1. Navigating: getting the application into the right state.
  2. Acting: entering data, clicking and submitting.
  3. Observing: noticing what happened.
  4. Judging: deciding whether what happened is correct.

Automated testing replaces the first three cleanly because they are mechanical. It only replaces the fourth where the correct answer was fixed in advance. That is why repeatable checks such as login, checkout and regression suites suit automation, while exploratory testing, usability review and one-off validations still depend on human judgment.

This is the real boundary between automated and manual testing. It is not a list of test types. It is a line drawn by whether judgment was predefined or genuinely exercised in the moment.

Build cost and maintenance cost in automated testing

Two numbers sit behind every automation decision. Build cost is what it takes to write the first version of a test. It is usually a one-time cost, and it is the only number most teams budget for. Maintenance cost is what it takes to keep that test working every time the application changes underneath it. It recurs, it compounds, and it is the number that determines return on investment.

A suite that is cheap to build but expensive to maintain can cost more over a year than one that took longer to create but rarely needs attention. Vendor claims such as 85% less maintenance or 95% less maintenance speak to the second number, while claims such as 15x faster creation speak to the first. Knowing which number a claim refers to is the quickest way to judge whether it matters for your team.

A worked example of one login test, from Day 1 to Day 41

Day 1: the test is written. It has an action (enter credentials, submit), data (a test account stored in a test data management platform), and an assertion (a dashboard element is present). That takes roughly 15 to 30 minutes.

Days 2 to 40: it runs automatically on every deploy and passes silently. This is automation working exactly as intended, and it is invisible because of it.

Day 41: the login page gets redesigned. The button label changes and the dashboard element gets renamed. The test fails, correctly, because something genuinely changed.

The actual cost of maintenance isn’t “the test broke.” It is the 10 to 20 minutes it takes a person to confirm it is a stale selector and not a real bug, then fix it. That repeats every time this page changes, for as long as the test exists.

Where automated testing breaks down without determinism

  • Personalized or dynamic content: a recommendation engine or a live data feed, where “correct” varies by design, not by bug.
  • Subjective visual or UX judgment: “does this look right” doesn’t reduce to a fixed assertion without losing the thing that made the judgment valuable.
  • One-off checks: a migration validation run exactly once has no repeated executions to earn back its build cost.
  • Workflows still in active flux: automating against a page being redesigned weekly means re-paying the Day 41 cost every week.

How AI changes automated testing

Build cost: natural language test creation removes the manual authoring step from Day 1. More importantly, it removes the scripting-skill requirement that is usually the real bottleneck, so people who understand the product can create tests without writing code.

Maintenance cost: on Day 41, a self-healing test recognizes the change and updates itself, escalating to a person only when it cannot confidently resolve the change alone. That removes the recurring 10 to 20 minute interruption, though not the underlying event. This is what AI test maintenance refers to.

Neither change removes determinism as a requirement. AI-generated tests still need a fixed expected outcome to check against. What changes is who defines that outcome and who maintains it, not whether it is needed.

FAQs

Automated testing is the use of software to execute tests against an application and compare actual results with expected ones, without a person running each step manually. It works best for repeatable checks such as login flows, regression suites and API validations, where the correct outcome is known in advance.
No. Automated testing is the broader practice of running tests with software. AI testing applies AI to parts of that process, such as creating tests from plain language or repairing tests automatically when the application changes. AI can lower the effort of building and maintaining tests, but an automated test still needs a fixed expected outcome to check against.
Traditional test automation does, because tests are written as scripts and then maintained as the application changes. Platforms that support natural language test creation remove most of that scripting requirement, so people without scripting skills can create and run tests.
The main types are unit tests, integration tests, API tests, end-to-end tests, regression tests and performance tests. Each one checks a different layer of the application, but all of them compare an actual result with a predefined expected result.
A deterministic test produces the same result every time it runs against the same input and the same application state. Because the expected result never changes, a pass or a fail carries real meaning. Flaky tests often point to something in the test, the data or the environment that is not predictable.
Only partly. An output that varies by design cannot be checked against a single fixed answer. Teams can still automate the parts that are fixed, such as whether the feature loads, whether required fields are present and whether the output stays within defined limits, while leaving subjective quality to human review.
Start with stable, frequently repeated workflows that carry real business risk, such as login, checkout and core regression paths. These have predictable outcomes and run often enough to repay the build cost. Pages that are being redesigned every week and one-off checks are poor starting points.
No. AI takes over the mechanical work of navigating, acting, observing and maintaining tests. Deciding what correct means, exploring unexpected behavior and judging subjective quality still need people. The role shifts from writing and repairing scripts toward defining expected outcomes and reviewing results.
━━━━

See how Klarent can achieve 90%+ test coverage in just two weeks.

Book a free 30 minute call
Dyuwan Shukla, Product Manager at Klarent

Written by

Dyuwan Shukla

Product Manager at Klarent

View full bio

More blogs