How to Build Your Own AI Code Verification System >>> Join a hands-on webinar on Dec. 15th!

Whitepaper

The execution Problems of LLMs:

Why LLMs Fail to Deliver Reliable Test Automation & How Deterministic AI Fixes It.

LLM test automation
LLM test automation helps teams write tests faster, yet pipelines are getting flakier and pull requests are getting larger. When probabilistic models run tests unsupervised in CI/CD, identical prompts produce different actions, and minor page changes alter what the model does next. Once flaky results erode trust in your suite, real bugs reach production.

Written for Developers, SDETs, and Automation Engineers, this guide by Applitools Co-Founder and CTO Adam Carmi shows where AI belongs in your test pipeline. You will learn how to pair LLM test creation with a deterministic execution layer that runs the same way every time.

In this white paper, you will learn:

  • How to cut test code by up to 80%: Replacing brittle DOM locators with plain-English steps and visual checks that survive UI changes.
  • Where to draw the line: Why LLMs belong in supervised test creation, not unsupervised CI/CD execution.
  • Why prompt tricks fail at runtime: How token sampling and dynamic page states cause inconsistent runs (even with tool-calling or temperature set to zero).
  • What deterministic execution requires: Speed, repeatability, and keeping sensitive UI data away from third-party models.

Questions about LLM test automation

LLMs fail at test execution because they are a probabilistic state machine (read: they are not deterministic). At every step, an LLM randomly samples the next token based on probabilities. During unsupervised CI/CD runs dynamic page elements, dynamic loading states, or rotating ads alter the page snapshot fed into the model which causes the exact same test prompt to trigger different actions or skip assertions across runs.

No. While setting temperature to zero reduces randomness in token selection, cloud-based inference still introduces parallelism that causes variance. More importantly, the live application snapshots feeding into the model change between runs due to dynamic content or slight loading delays, altering the input sequence and changing what the model decides to do next.

Teams should use LLMs strictly for supervised test creation such as generating test cases, test data, and initial code drafts where a human reviews the output before it enters the pipeline. Unsupervised CI/CD test execution should be handled by a deterministic execution layer that computes rather than predicts, ensuring identical inputs always produce identical pass/fail results.

No. Tool-calling frameworks constrain what actions an agent can take, but they do not change the LLM's underlying probabilistic nature. On two separate runs of the same prompt the model still decides with probabilities whether to call a tool, which tool to select, and what arguments to pass. This results in inconsistent browser interactions.

Self-healing locators only fix one symptom: selectors that break when the underlying UI code changes. They do not prevent an LLM agent from skipping steps, generating inconsistent assertions, or taking hours to run. Deterministic execution (such as Applitools' Deterministic Language Model (DLM)) eliminates brittle DOM locators altogether while executing plain-English steps and visual checks the exact same way on every run.

Ready to put deterministic guardrails on your AI-generated code?

©2026 Applitools