Manuscript Offprint
arXiv:2608.27094An Empirical Evaluation of Using Large Language Models for Automated Model-Based Test Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Large language models (LLMs) have shown strong potential for automating, analysing, and interpreting software engineering tasks, such as software testing. Model-based testing (MBT) is a software testing technique that poses a broad scalability challenge for industrial adoption. This paper proposes an empirical evaluation of Large Language Models (LLMs) for automated model-based test generation to address scalability challenges, compared with a state-of-the-art model-based testing tool and its built-in algorithms. Our evaluation indicates strong potential to optimize and shorten test paths and step sizes using recent state-of-the-art LLMs on four realistic systems: two web applications and two hardware applications.
Keywords
Empirical Evaluation, Large Language Models, Model-Based Test Generation, Model-Based Testing
Büyük dil modelleri (LLM), yazılım testi gibi yazılım mühendisliği görevlerini otomatikleştirme, analiz etme ve yorumlama konusunda güçlü bir potansiyel göstermiştir. Model tabanlı test (MBT), endüstriyel benimseme için geniş ölçelenebilirlik sorunu ortaya koyan bir yazılım test teknikidir. Bu makale, ölçelenebilirlik sorunlarını ele almak amacıyla, otomatik model tabanlı test üretimi için Büyük Dil Modellerinin (LLM) deneysel bir değerlendirmesini önermekte ve bunu en son teknolojiye sahip bir model tabanlı test aracı ve yerleşik algoritmalarıyla karşılaştırmaktadır. Değerlendirmemiz, iki web uygulaması ve iki donanım uygulaması olmak üzere dört gerçekçi sistem üzerinde, son teknoloji LLM'ler kullanarak test yollarını ve adım boyutlarını optimize etme ve kısıltma konusunda güçlü bir potansiyel göstermektedir.
Anahtar Kelimeler
Ampirik Değerlendirme, Büyük Dil Modelleri, Model Tabanlı Test Üretimi, Model Tabanlı Test
1. Introduction
Large language models have shown prominent potential in automating, analysing, and interpreting software engineering tasks [1, 2]. They are also actively involved in the software testing process, as part of software engineering activities [3, 4, 5, 6].
Model-based testing (MBT) is a software testing approach in which models are used to describe the expected behavior of the system under test (SUT) [7, 8]. Automated test generation is a fundamental part of model-based testing where testers can generate abstract test cases (offline mode) or directly run the automated test cases on the system (online mode) under test. It has evolved significantly, with extensive research expanding its application across web, mobile, and embedded systems [9, 10, 11]. Numerous studies and taxonomies have categorized a broad range of MBT tools and techniques [12, 13, 14, 15].
UYMS'26: 17. Ulusal Yazılım Mühendisliği Sempozyumu (UYMS), Mayıs 14–16, 2026, Mugla, Turkiye
Corresponding author.
These authors contributed equally.
☑ hafizesanli@posta.mu.edu.tr (H. Sanli); Onur.Kilincceker@uantwerpen.be (O. Kilincceker); cihat.cetinkaya@mu.edu.tr (C. Cetinkaya)
© 2026 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
CC BY
Scalability poses a broad challenge for the industrial adoption of MBT [7, 16, 17, 18]. Common practice suggests that longer tests are preferable [19]; however, prior work on test reduction has demonstrated that more compact test cases achieving the same coverage goals enhance scalability [20, 21].
In this study, we empirically assess Large Language Models (LLMs) for automated model-based test generation to address scalability challenges. Specifically, we investigate how well LLMs perform in producing shorter tests compared to the baseline state-of-the-art model-based testing tool (GraphWalker ) with its built-in algorithms.
Based on all the previous discussion, we present the following contributions to the literature.
• We present an automation pipeline (called LLM4MBT) for automating the process of model-based test generation via LLMs.
• We introduce an empirical evaluation on the usage of recent LLMs for automated model-based test generation.
• We perform experiments on four realistic SUTs: two web applications (Parabank and Testinium) and two hardware applications (TLC and RISC-V) for answering 5 research questions and show that LLM4MBT feasible.
• We publicly share our dataset, LLM4MBT pipeline implementation and replication instruction at https://github.com/hafizesanli/LLM4MBT (Version 1).
The rest of this paper is organized as starting with the approach we propose in Section 2 and we present the research questions and evaluation setup in Section 3 and our empirical evaluation in Section 4. We describe the potential threats to validity including their mitigation methods in Section 5. We discuss the related work in Section 6 and conclude the paper and share the future work in Section 7.
2. Approach
Our work presents a systematic framework for evaluating the capability of Large Language Models (LLMs) to generate valid model-based test suites for GraphWalker models. Unlike traditional automated test generation approaches that rely on algorithmic traversal or heuristic-based exploration, we investigate whether LLMs can leverage their learned knowledge of software testing principles and GraphWalker specifications to produce test paths that achieve specific coverage criteria.
Our methodology evaluates five state-of-the-art LLMs (GPT-5.1, GPT-5.2, Claude Opus 4.5, Claude Sonnet 4.5, and Gemini 2.5 Pro) against four GraphWalker models of escalating complexity. These models range from a simple Traffic Light Controller (TLC) to a highly complex enterprise Test Management Platform (Testinium) containing 129 vertices and 259 edges. The primary objective is to determine if a single, well-structured prompt can elicit syntactically and logically valid test suites that meet predefined coverage goals.
2.1. LLM4MBT Pipeline Architecture
Our proposed LLM4MBT framework implements a multi-layered pipeline architecture for systematic evaluation of LLMs in the context of model-based test generation. Figure 1 illustrates the complete system architecture, which consists of four distinct containers following the C4 model architecture principles [22]: Input Layer, Test Generation Layer, Processing Layer, and Evaluation & Reporting Layer.
Input Layer: The pipeline initiates with the Input Layer (Container 1 in Figure 1), which manages all input data sources for the experimental framework. This layer comprises two primary components: (i) Graph Models, consisting of four GraphWalker models represented in JSON format—TLC (10 vertices, 18 edges), Risc-V (16 vertices, 36 edges), Parabank (75 vertices, 144 edges), and Testinium (129 vertices, 259 edges)—which vary significantly in complexity to enable comprehensive evaluation across different scales; and (ii) Prompts, stored in prompts. json, which contains manually crafted prompt templates for three distinct path generation strategies: Random Edge Coverage (REC), Quick Random Edge
See https://graphwalker.github.io.

Figure 1: LLM4MBT pipeline architecture
Coverage (QEC), and Vertex Coverage (VC). These input components are distributed to subsequent layers to facilitate systematic test generation across all experimental conditions.
Test Generation Layer: The Test Generation Layer (Container 2 in Figure 1) represents the core experimental subjects of our evaluation framework. This layer incorporates five state-of-the-art Large Language Models as external systems: GPT-5.1 and GPT-5.2 from OpenAI, Claude Opus 4.5 and Claude Sonnet 4.5 from Anthropic, and Gemini 2.5 Pro from Google. Each LLM receives identical inputs consisting of the graph models and strategy-specific prompts, ensuring experimental consistency. The combinatorial design of this layer, 5 LLMs × 3 strategies × 4 models, generates 60 distinct test suites, which are systematically organized into strategy-specific directories (REC-/, QEC-/, VC-*/) for subsequent processing and analysis.
Processing Layer: The Processing Layer (Container 3 in Figure 1) implements the core computational logic for test execution and coverage analysis. This layer consists of four interconnected components:
Model Parser: Implemented in graph_conversions.py through the generate_graph_from_graphwalker_json() function, this component transforms JSON model specifications into internal graph representations, extracting vertices, edges, and their relationships for subsequent processing.
Test Parser: Located in main.py and implemented via parse_test_suite_from_file(), this component processes LLM-generated test suites, extracting individual test cases in GraphWalker's raw format where each element is represented as a JSON object containing the currentElementName field.
Execution Engine: Responsible for path validation and test execution, this component (apply_test_execution_on_model() in main.py) validates whether generated paths conform to the model's graph structure. It incorporates intelligent fallback mechanisms (find_fallback_vertex()) to handle invalid transitions, thereby enabling fair evaluation even when LLMs generate partially incorrect test sequences.
Coverage Analyzer: Implemented through calculate_coverage() in graph_conversions.py, this component computes two fundamental metrics: Edge Coverage (EC) and Vertex Coverage (VC), defined as:
where and represent the sets of traversed edges and vertices, respectively.
To ensure validity, the Coverage Analyzer’s computations are validated against reference baselines generated by GraphWalker’s native test generation engine, as indicated by the dotted validation arrow in Figure 1.
Evaluation & Reporting Layer: The final layer (Container 4 in Figure 1) implements the evaluation logic and report generation mechanisms. The Decision component applies predefined success criteria to classify each test suite as PASS or FAIL based on the condition: OR . These thresholds were established based on industry standards for model-based testing adequacy.
The Report Generator component (save_single_test_report() and save_comparison_reports() in main.py) produces two categories of outputs: (i) Individual Reports, stored in test_reports/, which document the performance of each test suite independently in both JSON and readable text formats; and (ii) Comparison Reports, stored in comparison_reports/, which aggregate results across all LLMs and strategies to facilitate comparative analysis. These reports provide comprehensive documentation of coverage metrics, execution statistics, and pass/fail outcomes for all 60 experimental conditions.
The modular architecture illustrated in Figure 1 enables systematic evaluation while maintaining clear separation of concerns: data management (Input Layer), test generation (Test Generation Layer), execution and measurement (Processing Layer), and result aggregation (Evaluation & Reporting Layer). This design facilitates reproducibility and extensibility for future research incorporating additional models, LLMs, or coverage strategies.
2.2. Algorithm Details
The evaluation framework employs a rigorous validation algorithm to assess the quality of the LLM generated paths. The core logic centers on Path Validation and Coverage Analysis.
Execution Logic and Fallback Mechanism: The execution engine iterates through each transition in the generated test suite. For every step, the algorithm verifies the existence of an edge E between the current vertex and the target vertex . To account for the stochastic nature of LLMs, we implement a fallback recovery mechanism:
If an invalid transition is encountered, the engine does not terminate the entire suite. Instead, it attempts to restart the traversal from a known stable vertex (e.g., "start" or "v_Login"). This allows for the measurement of "partial success" and ensures that valid segments of a suite are still credited toward total coverage.
Coverage Metrics: Our framework calculates two primary metrics to assess the quality of LLM-generated test suites, with success criteria defined as Edge Coverage 70% OR Vertex Coverage 85%:
Edge Coverage (EC): Quantifies the proportion of unique edges traversed during test execution relative to the total number of edges in the model. It was formally given in (1), where denotes the set of edges traversed by the test suite and represents all edges defined in the model.
Vertex Coverage (VC): Measures the proportion of unique vertices visited during test execution relative to the total number of vertices in the model. This metric is defined in (??), where represents the set of vertices visited by the test suite and denotes all vertices in the model.
These metrics provide complementary perspectives on test adequacy: edge coverage emphasizes transition testing (interactions between states), while vertex coverage focuses on state space exploration. The dual criteria ensure that test suites achieving either high transition coverage or comprehensive state coverage are considered successful, accommodating different testing priorities and model characteristics. The Coverage Analyzer component validates these computations against reference baselines generated by GraphWalker's native test generation engine to ensure measurement accuracy.
3. Research Questions and Evaluation Setup
This section presents our research questions, motivation, and experimental setup for conducting the experiments to address them.
3.1. Research Questions
Our empirical evaluation is designed to address the following research questions (RQs).
Evaluation of Coverage
RQ1: To what extent does LLM4MBT achieve vertex and edge coverage in model-based test generation? In GraphWalker, we set coverage ratios to 100% for edges and vertices. In the prompt for utilized LLMs, we also set a 100% coverage target; however, due to failing test paths, we typically do not expect to achieve 100% coverage for any LLM.
Comparative Analysis
RQ2: How does the coverage of LLM4MBT-generated test steps compare to the GraphWalker baseline? As noted in RQ1, although we do not expect 100% coverage, the overall test step length is expected to be shorter than that of the GraphWalker baseline. Our motivation is to highlight those comparisons in this RQ.
Ablation Study
RQ3: How do specific prompt components influence the effectiveness of LLM4MBT-generated test steps?
As part of our ablation study, we aim to examine how LLMs behave under different prompts and to quantify their individual contributions to overall performance.
Model Dependency
RQ4: To what degree does the coverage achieved by LLM4MBT correlate with the capabilities of the underlying LLM?
The experimental results may vary with the five state-of-the-art LLMs used, and we aim to quantify the extent to which these results depend on the underlying LLMs.
3.2. Evaluation Setup
Our evaluation encompasses 4 realistic GraphWalker models across 2 domains: embedded systems and web applications. A traffic light controller (TLC) is a simple embedded system and is a finite state machine representing a traffic light controller with states q0-q8, and a start vertex [23, 24]. RISC-V is an embedded CPU model with various instruction sets and pipelines [23, 24]. Parabank is a multi-module banking web application with Login, Register, and AccountOverview modules [18]. Testinium is an enterprise test management web platform with multiple modules: Login, Dashboard, Reports, Projects, Scenarios, and Suites [9, 25].
As provided in Table 1, our evaluation comprises five state-of-the-art Large Language Models as external systems: GPT-5.1 and GPT-5.2 from OpenAI, Claude Opus 4.5 and Claude Sonnet 4.5 from Anthropic, and Gemini 2.5 Pro from Google.
4. Evaluation Results
In this section, we answer the four RQs through experiments on four realistic GraphWalker models across five state-of-the-art LLMs given in Table 1.
See https://github.com/kilincceker/MBIT4HW.
See https://github.com/openhwgroup/cv32e40p.
See https://github.com/parasoft/parabank.
See https://github.com/vgarousi/MBTofTestinium.
Table 1 Characteristics of Large Language Models used in the experiment
| Model | Year | Parameters | Provider | Features |
|---|---|---|---|---|
| GPT-5.1 | 2025 | Not disclosed | OpenAI | Multimodal (text+image); adaptive reasoning; improved conversational tone |
| GPT-5.2 | 2025 | Not disclosed | OpenAI | Multimodal (text+image); enhanced reasoning (Thinking mode); improved coding and spreadsheet capabilities |
| Claude Opus 4.5 | 2025 | Not disclosed | Anthropic | Multimodal (text+image+code); frontier reasoning; advanced coding; effort parameter; token-efficient |
| Claude Sonnet 4.5 | 2025 | Not disclosed | Anthropic | Multimodal (text+image+code); best coding performance; computer use; agentic tasks; improved reasoning |
| Gemini 2.5 Pro | 2025 | Not disclosed | Multimodal (text+image+audio +video); enhanced reasoning; Deep Think mode; 1M token context window |
Table 2 Coverage and test outcomes for LLM4MBT and GraphWalker
| Project | LLM4MBT (CLAUDE OPUS 4.5-Quick Random) | GraphWalker(Test Steps-Edge) | ||||||
|---|---|---|---|---|---|---|---|---|
| Total | Passing (%) | Vertex | Edge | Test Steps (#) | Contribution (%) | Random | Quick Random | |
| Traffic Light Controller | 46 | 44 (95.6%) | 100.0% | 94.4% | 89 | 18 (16.8%) | 2809 | 107 |
| RISC-V Controller | 54 | 54 (100.0%) | 100.0% | 100.0% | 105 | 9 (7.8%) | 532 | 114 |
| Parabank | 225 | 46 (20.4%) | 100.0% | 100.0% | 351 | 376 (51.7%) | 3523 | 727 |
| Testinium | 358 | 358 (100.0%) | 100.0% | 91.0% | 657 | 492 (42.8%) | 20799 | 1149 |
| Average | 79.0% | 100.0% | 96.3% | 300 | 29.7% | 6916 | 524 | |
4.1. RQ1: LLM4MBT's Coverage
To evaluate the coverage effectiveness of LLM4MBT, we conducted experiments across four different model-based testing projects (Traffic Light Controller(TLC), RISC-V, Parabank, and Testinium), comparing it against GraphWalker's baseline strategies.
As shown in Table 2, LLM4MBT achieved 100.0% average vertex coverage and 96.3% average edge coverage, demonstrating comprehensive coverage metrics.
Table 3 shows the varying performance among LLM providers, and Table 3 shows the average performance of all LLMs. These results indicate that LLM4MBT can generate comprehensive test suites with significantly greater efficiency than traditional walk-based approaches, while achieving coverage levels comparable to or exceeding those of baseline tools. Table 3 further demonstrates that this efficiency pattern holds across different LLM providers, with all models requiring significantly fewer steps than GraphWalker while achieving comparable coverage.
4.2. RQ2: LLM4MBT vs. GraphWalker
While RQ1 established LLM4MBT's coverage capabilities, RQ2 examines the efficiency trade-off between coverage and test suite size relative to GraphWalker. Table 2 reveals a significant efficiency advantage for LLM4MBT. Notably, LLM4MBT resulted in only about 300 average test steps, compared with GraphWalker's 524 steps (Quick Random), representing a substantial efficiency improvement over random approaches while maintaining comparable coverage. Moreover, Table 2 shows that our best performing LLM and its algorithm (Claude Opus 4.5-Quick Random) contribute with an average of 29.7% to GraphWalker's best performing algorithm (quick random) based on the given formula in (2). Also, once the model size grows, the contribution gaps and percentage increases.
Table 3 Model Capability Leaderboard: Comparative Analysis of LLM4MBT Coverage
| Model Engine | Provider | Quick Random Edge Coverage | Random Edge Coverage | ||||||
|---|---|---|---|---|---|---|---|---|---|
| TLC | Risc-V | Parabank | Testinium | TLC | Risc-V | Parabank | Testinium | ||
| Claude 4.5 Opus | Anthropic | 94.44% | 100.00% | 100.00% | 91.09% | 100.00% | 100.00% | 0.00% | 90.70% |
| Claude 4.5 Sonnet | Anthropic | 94.44% | 100.00% | 84.03% | 89.15% | 100.00% | 100.00% | 97.22% | 89.15% |
| GPT-5.2 | OpenAI | 61.11% | 100.00% | 79.86% | 60.08% | 100.00% | 100.00% | 74.31% | 36.43% |
| GPT-5.1 | OpenAI | 100.00% | 100.00% | 79.86% | 88.37% | 94.44% | 100.00% | 73.61% | 36.43% |
| Gemini 2.5 Pro | 100.00% | 0.00% | 100.00% | 86.82% | 94.44% | 0.00% | 31.94% | 0.00% | |
| Average | 89.99% | 80.00% | 88.75% | 83.10% | 97.77% | 80.00% | 55.41% | 50.54% | |
Achieving 96.3% average edge coverage with only 300 average test steps, compared to GraphWalker's 100.0% coverage requiring 6916 steps (Random) or 524 steps (Quick Random). This represents a 23.0x reduction in test suite size relative to the Random and a 1.7x reduction relative to Quick Random, while maintaining near-complete coverage.
4.3. RQ3: Prompt Effect
As part of our ablation study, we examined how different prompt structures and components affect LLM behavior and their contribution to test generation performance. Analysis of 'prompts.json' reveals critical prompt engineering insights such as Role Definition, Coverage Strategy Specification, Output Format Example, and Constraint Instructions.
Terminology Precision: Using "quick_random" instead of "quick random" significantly improved success rates across all LLMs. Initial attempts with "quick random" frequently failed or produced incorrect outputs.
Provider Specific Behavior: GPT models initially attempt to generate Python scripts rather than direct test suites, requiring explicit negative instructions. Claude models handled the task more directly without such constraints.
Instruction Clarity: Adding explicit constraints prevented file copying behavior and improved generation quality, particularly for GPT 5.1 which showed higher sensitivity to instruction ambiguity.
Model Batching: Generating multiple models in a single prompt worked reliably for Claude models but caused failures with GPT models, necessitating per model prompts for consistent results. The 'prompts.json' in our dataset (publicly available at https://github.com/hafizesanli/LLM4MBT) contains those prompt engineering insights.
4.4. RQ4: Effect of Different LLMs
We evaluated five state-of-the-art LLMs to quantify how model capabilities affect test generation performance. Table 3 shows significant performance variations across LLM providers. For Quick Random Edge Coverage, Claude Opus 4.5 achieved the most consistent high performance with 100% edge coverage scores on RISC-V and Parabank; GPT 5.1 demonstrated 100% edge coverage with RISC-V performance but showed variability on complex models. Gemini 2.5 Pro, demonstrating the highest variance, achieved 100% edge coverage in the TLC and Parabank models, but completely failed on RISC-V. For Random Edge Coverage, Claude models and GPT 5.2 achieved 100.0% coverage on TLC and RISC-V. Claude Sonnet 4.5 showed superior performance on complex models, whereas Gemini 2.5 Pro again showed high variability.
Anthropic's Claude models demonstrated the most reliable and consistent performance across all models and strategies. OpenAI's GPT models showed moderate consistency with better performance on simpler models. Google's Gemini 2.5 Pro exhibited model-specific strengths but lacked generalization, suggesting a strong correlation between LLM reasoning capabilities and test generation effectiveness.
These results indicate that LLM architectural differences and training paradigms (Table 1) significantly affect test-generation quality, with reasoning consistency being more critical than raw model size for MBT tasks.
5. Threats To Validity
This section presents potential threats to our empirical evaluation and outlines strategies to mitigate them.
Internal Validity: Due to the generative nature of LLMs (Claude, GPT, and Gemini), the same prompt can yield different test paths across runs. We plan to mitigate this by multiple iterations/seeds and use a specific temperature setting, e.g., T = 0. However, because our results depend on GitHub Copilot’s capabilities, we were unable to specify those temperature parameters in our current work.
The results from GraphWalker depend heavily on the traversal strategy used (e.g., Random, Quick Random). Therefore, due to the random effect, each run yields different test paths. LLM outputs are inherently stochastic; running multiple trials for each configuration would yield more reliable results. As future work, we will address these by performing multiple iterations (at least 30) or using seeds.
As demonstrated in RQ4, even minor variations in prompt structure can substantially influence coverage. However, these findings may be particular to the prompt engineering strategies we used. To mitigate this, we conducted an ablation study as part of our empirical evaluation with five state-of-the-art LLMs.
Construct Validity: Even though high vertex and edge coverage are standard MBT performance metrics, they do not always correlate with the capability to find real-world software bugs. A test suite could achieve 100% coverage without catching a logic flaw if the oracles are weak. To address this, we plan to use mutation testing at the model and code levels to assess their correlation [26, 27, 24]. Therefore, we will integrate the test execution phase into our existing pipeline architecture.
External Validity: We evaluated four different GraphWalker models (Traffic Light, RISC-V, Parabank, Testinium). These results may not generalize to significantly larger industrial systems with thousands of states or highly non-deterministic behavior. For addressing this, we selected the GraphWalker models from two distinguishable domains (hardware and web applications)
The effectiveness of LLM4MBT may vary across different modeling languages (e.g., Statecharts, Petri Nets, BPMN). To mitigate this threat, we employed a state-of-the-art model-based testing tool, GraphWalker, widely used in academia and industry.
6. Related Work
The role of Large Language Models (LLMs) in software engineering has shifted from simple code assistants to strategic partners active throughout all phases of the Software Development Life Cycle (SDLC). Significant productivity gains are being achieved by LLMs in software testing, where the field is shifting from manual scripting toward autonomous test agents and intelligent oracles. A pivotal empirical evaluation on the use of LLMs for automated unit test generation was conducted by [6], in which it was demonstrated that coverage targets comparable to traditional tools could be achieved while identifying complex edge cases. The prominent potential of LLMs in automating, analyzing, and interpreting software engineering tasks was highlighted in their work. Beyond simple script generation, LLMs are now utilized as decision-makers to verify whether a system behaves correctly. This is supported by empirical studies in [5], which show that LLM-based approaches are highly effective at detecting critical bugs and perform as well as traditional tools in achieving coverage targets. The practical utility of LLMs has been empirically validated in specialized domains; for instance, the successful automation of a complete software testing process in the automotive industry was demonstrated in [28]. It has been shown that end-to-end testing life cycles in complex, safety-critical environments can be handled by LLMs.
To the best of our knowledge, no study has systematically evaluated the latest Large Language Models (LLMs) for automated Model-Based Testing (MBT) across both web and hardware applications using graph-based specifications. While the efficacy of LLMs has been demonstrated in unit testing and general industrial processes, their ability to navigate complex graph structures to achieve optimized coverage remains underexplored. In this study, the LLM4MBT pipeline is introduced to bridge this gap. It is demonstrated that near-complete coverage can be maintained with significantly fewer test steps than traditional algorithms, thereby directly addressing the scalability challenges inherent in MBT.
7. Conclusion
Large language models have shown strong potential for software engineering tasks, particularly software testing. Model-based testing (MBT) is a software testing technique. To address the broad scalability challenge for industrial adoption of MBTs, our paper presents an empirical evaluation of Large Language Models (LLMs) for automated model-based test generation, compared with a state-of-the-art model-based testing tool (GraphWalker) and its built-in algorithms (random and quick random for edge and vertex coverage settings). Our evaluation indicates strong potential to optimize and shorten test paths and step sizes using the recent five state-of-the-art LLMs (GPT-5.1, GPT-5.2, Claude Opus 4.5, Claude Sonnet 4.5, and Gemini 2.5 Pro) against four GraphWalker models (two web applications (Parabank and Testinium) and two hardware applications (TLC and RISC-V)) of escalating complexity.
Data availability
The dataset, LLM4MBT pipeline implementation, and replication instructions are available at https://github.com/hafizesanli/LLM4MBT (Version 1).
Declaration on Generative AI
During the preparation of this work, the author(s) utilized Grammarly and Bing Microsoft Translator to check grammar and spelling. The author(s) reviewed and edited the content as needed and assumes full responsibility for the content of the publication.
References
[1] X. Hou, Y. Zhao, Y. Yu, Z. Liao, Z. Zheng, P. He, Large language models for software engineering: A survey and taxonomy, IEEE Transactions on Software Engineering (2025).
[2] A. Fan, B. Gokkaya, M. Harman, M. Lyubarskiy, S. Sengupta, S. Yoo, J. M. Zhang, Large language models for software engineering: Survey and open problems, in: 2023 IEEE/ACM International Conference on Software Engineering: Future of Software Engineering, IEEE, 2023, pp. 31–53.
[3] J. Wang, Y. Huang, C. Chen, Z. Liu, S. Wang, Q. Wang, Software testing with large language models: Survey, landscape, and vision, IEEE Transactions on Software Engineering 50 (2024) 911–936.
[4] J. Molina, C. Augusto, L. Briand, Large language models for software testing: A research roadmap, in: Proceedings of the 34th ACM SIGSOFT ISSTA, 2025.
[5] Y. Li, P. Liu, H. Wang, J. Chu, W. E. Wong, Evaluating large language models for software testing, Computer Standards & Interfaces 93 (2025) 103942.
[6] M. Schäfer, S. Nadi, A. Eghbali, F. Tip, An empirical evaluation of using large language models for automated unit test generation, IEEE Transactions on Software Engineering 50 (2023) 85–105.
[7] S. R. Dalal, A. Jain, N. Karunanithi, J. Leaton, C. M. Lott, G. C. Patton, B. M. Horowitz, Model-based testing in practice, in: Proceedings of the 21st international conference on Software engineering, 1999, pp. 285–294.
[8] M. Utting, B. Legeard, Practical model-based testing: a tools approach, Elsevier, 2010.
[9] V. Garousi, A. B. Keles, Y. Balaman, Z. Ö. Güler, A. Arcuri, Model-based testing in practice: An experience report from the web applications domain, Journal of Systems and Software 180 (2021).
[10] S. Karlsson, A. Čaušević, D. Sundmark, M. Larsson, Model-based automated testing of mobile applications: An industrial case study, in: 2021 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW), IEEE, 2021, pp. 130–137.
[11] M. N. Zafar, W. Afzal, E. Enoiu, A. Stratis, A. Arrieta, G. Sagardui, Model-based testing in practice: An industrial case study using graphwalker, in: Proceedings of the 14th Innovations in Software Engineering Conference, 2021, pp. 1–11.
[12] M. Utting, B. Legeard, F. Bouquet, E. Fourneret, F. Peureux, A. Vernotte, Recent advances in model-based testing, Advances in computers 101 (2016) 53–120.
[13] W. Li, F. Le Gall, N. Spaseski, A survey on model-based testing tools for test case generation, in: International Conference on Tools and Methods for Program Analysis, Springer, 2017, pp. 77–89.
[14] H. G. Gurbuz, B. Tekinerdogan, Model-based testing for software safety: a systematic mapping study, Software Quality Journal 26 (2018) 1327–1372.
[15] T. Ahmad, J. Iqbal, A. Ashraf, D. Truscan, I. Porres, Model-based testing using uml activity diagrams: A systematic mapping study, Computer Science Review 33 (2019) 98–112.
[16] H. Hemmati, L. Briand, A. Arcuri, S. Ali, An enhanced test case selection approach for model-based testing: an industrial case study, in: Proceedings of the eighteenth ACM SIGSOFT international symposium on Foundations of software engineering, 2010, pp. 267–276.
[17] H. Hemmati, A. Arcuri, L. Briand, Reducing the cost of model-based testing through test case diversity, in: IFIP International Conference on Testing Software and Systems, 2010, pp. 63–78.
[18] Y. Koroglu, M. Beyazit, O. Kilincceker, S. Demeyer, F. Wotawa, Towards improving automated testing with graphwalker, in: 2025 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW), IEEE, 2025, pp. 54–58.
[19] A. Arcuri, Longer is better: On the role of test sequence length in software testing, in: 2010 Third International Conference on Software Testing, Verification and Validation, IEEE, 2010, pp. 469–478.
[20] G. Rothermel, M. J. Harrold, J. Von Ronne, C. Hong, Empirical studies of test-suite reduction, Software Testing, Verification and Reliability 12 (2002) 219–249.
[21] A. E. V. B. Coutinho, E. G. Cartaxo, P. D. d. L. Machado, Analysis of distance functions for similarity-based test suite reduction in the context of model-based testing, Software Quality Journal 24 (2016) 407–445.
[22] A. Vázquez-Ingelmo, A. García-Holgado, F. J. García-Peñalvo, C4 model in a software engineering subject to ease the comprehension of uml and the software, in: 2020 IEEE Global Engineering Education Conference (EDUCON), IEEE, 2020, pp. 919–924.
[23] O. Kilincceker, E. Turk, M. Challenger, F. Belli, Regular expression based test sequence generation for hdl program validation, in: 2018 IEEE International Conference on Software Quality, Reliability and Security Companion (QRS-C), Ieee, 2018, pp. 585–592.
[24] O. Kilincceker, E. Turk, F. Belli, M. Challenger, Model-based ideal testing of hardware description language (hdl) programs, Software and Systems Modeling 21 (2022) 1209–1240.
[25] V. Garousi, A. B. Keles, Y. Balaman, A. Mermer, Z. Ö. Güler, Coverage measurement in model-based testing of web applications: Tool support and an industrial experience report, in: 2024 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW), IEEE, 2024, pp. 37–43.
[26] F. Belli, C. J. Budnik, A. Hollmann, T. Tuglular, W. E. Wong, Model-based mutation testing—approach and case studies, Science of Computer Programming 120 (2016) 25–48.
[27] O. Kilincceker, A. Silistre, F. Belli, M. Challenger, Model-based ideal testing of gui programs—approach and case studies, Ieee Access 9 (2021) 68966–68984.
[28] S. Wang, Y. Yu, R. Feldt, D. Parthasarathy, Automating a complete software test process using llms: An automotive case study, arXiv preprint arXiv:2502.04008 (2025).