On the Soundness and Consistency of LLM Agents for Executing Test Cases Written in Natural Language
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The use of natural language (NL) test cases for validating graphical user interface (GUI) applications is emerging as a promising direction to manually written executable test scripts, which are costly to develop and difficult to maintain. Recent advances in large language models (LLMs) have opened the possibility of the direct execution of NL test cases by LLM agents. This paper investigates this direction, focusing on the impact on NL test case unsoundness and on test case execution consistency. NL test cases are inherently unsound, as they may yield false failures due to ambiguous instructions or unpredictable agent behaviour. Furthermore, repeated executions of the same NL test case may lead to inconsistent outcomes, undermining test reliability. To address these challenges, we propose an algorithm for executing NL test cases with guardrail mechanisms and specialised agents that dynamically verify the correct execution of each test step. We introduce measures to evaluate the capabilities of LLMs in test execution and one measure to quantify execution consistency. We propose a definition of weak unsoundness to characterise contexts in which NL test case execution remains acceptable, with respect to the industrial quality levels Six Sigma. Our experimental evaluation with eight publicly available LLMs, ranging from 3B to 70B parameters, demonstrates both the potential and current limitations of current LLM agents for GUI testing. Our experiments show that Meta Llama 3.1 70B demonstrates acceptable capabilities in NL test case execution with high execution consistency (above the level 3-sigma). We provide prototype tools, test suites, and results.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 25 references that are in the map. First posted on arXiv 23 Sep 2025.
Builds on
13 of 25 references.
References · 13
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2022Automated Repair of Programs from Large Language Modelscited by 71
- 2023Make LLM a Testing Expert: Bringing Human-like Interaction to Mobile GUI Testing via Functionality-aware Decisionscited by 41
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy
- 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases
- 2025Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications
- 2026LLMs taking shortcuts in test generation: A study with SAP HANA and LevelDB
- 2023Towards Autonomous Testing Agents via Conversational Large Language Models
- 2026WebTestPilot: Agentic End-to-End Web Testing against Natural Language Specification by Inferring Oracles with Symbolized GUI Elements
- 2026MANTRA: Synthesizing SMT-Validated Compliance Benchmarks for Tool-Using LLM Agents