Next Article in Journal
Assessing the Determinants of Behavioural Cybersecurity in Healthcare: A Study of Patient Health Application Users in Saudi Arabia
Previous Article in Journal
Research on Emerging Technology Identification Methods Based on a Knowledge Graph of High-Value Patents
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

LLM4ATS: Applying Large Language Models for Auto-Testing Scripts in Automobiles

1
School of Information Engineering, Nanchang University, Nanchang 330031, China
2
School of Artificial Intelligence, Nanchang University, Nanchang 330031, China
3
Pazhou Laboratory, Guangzhou 510640, China
4
School of Computer Science and Engineering, South China University of Technology, Guangzhou 510641, China
*
Author to whom correspondence should be addressed.
Big Data Cogn. Comput. 2026, 10(2), 41; https://doi.org/10.3390/bdcc10020041
Submission received: 11 December 2025 / Revised: 21 January 2026 / Accepted: 22 January 2026 / Published: 28 January 2026

Abstract

This paper introduces LLM4ATS, a framework integrating large language models, RAG, and closed-loop verification to automatically generate highly reliable automotive automated test scripts from natural language descriptions. Addressing the complex linguistic structure, strict rules, and strong dependency on the in-vehicle communication database inherent in ATS scripts, LLM4ATS innovatively employs fine-grained line-level generation and a rule-guided iterative refinement mechanism. The framework first enhances prompt context by retrieving relevant information from constructed syntax and case knowledge bases via RAG. Subsequently, each generated script line undergoes rigorous verification through a two-stage validator: initial syntax validation followed by semantic compliance checks against the communication database for signal paths and value domains. Any errors trigger structured feedback, driving iterative refinement by the large language model until fully compliant scripts are produced. This paper evaluated the framework’s effectiveness on real ATS datasets, testing models including GPT-3.5, GPT-4, Qwen2.5-7B, and Qwen2.5-72B-Instruct. Experimental results demonstrate that compared to zero-shot and few-shot baseline methods, the LLM4ATS framework significantly improves generation quality and pass rates across all models. Notably, the strongest GPT-4 model achieved a script pass rate of 91% with LLM4ATS, up from 42% in zero-shot mode, and validated functional effectiveness on a specified in-vehicle hardware platform (Chery Fengyun T28 dashboard). At the same time, expert manual evaluations confirmed the superior performance of the generated scripts in correctness, readability, and compliance with industry standards.
Keywords: automated testing; automobile; RAG; prompt engineering automated testing; automobile; RAG; prompt engineering

Share and Cite

MDPI and ACS Style

Li, Z.; Li, W.; Liu, Y.; Li, W.; Chen, M. LLM4ATS: Applying Large Language Models for Auto-Testing Scripts in Automobiles. Big Data Cogn. Comput. 2026, 10, 41. https://doi.org/10.3390/bdcc10020041

AMA Style

Li Z, Li W, Liu Y, Li W, Chen M. LLM4ATS: Applying Large Language Models for Auto-Testing Scripts in Automobiles. Big Data and Cognitive Computing. 2026; 10(2):41. https://doi.org/10.3390/bdcc10020041

Chicago/Turabian Style

Li, Zeyuan, Wei Li, Yuezhao Liu, Wenhao Li, and Min Chen. 2026. "LLM4ATS: Applying Large Language Models for Auto-Testing Scripts in Automobiles" Big Data and Cognitive Computing 10, no. 2: 41. https://doi.org/10.3390/bdcc10020041

APA Style

Li, Z., Li, W., Liu, Y., Li, W., & Chen, M. (2026). LLM4ATS: Applying Large Language Models for Auto-Testing Scripts in Automobiles. Big Data and Cognitive Computing, 10(2), 41. https://doi.org/10.3390/bdcc10020041

Article Metrics

Back to TopTop