Master Thesis MSTR-2026-34

BibliographyChhaparwal, Adit: AI-based test code generation for automotive ECU networks.
University of Stuttgart, Faculty of Computer Science, Electrical Engineering, and Information Technology, Master Thesis No. 34 (2026).
96 pages, english.
Abstract

Modern automotive functions depend on distributed Electronic Control Units (ECUs) that exchange signals over in-vehicle networks. Validating such interactions requires executable test artefacts that stimulate network inputs, observe responses, and remain traceable to natural-language requirements. This thesis investigates whether Large Language Models (LLMs) can support this task by generating ECU network test artefacts within a controlled and auditable workflow. The thesis presents a prototype pipeline that translates non-proprietary automotivestyle requirements into a structured intermediate representation (IR), validates the IR against a schema and signal map, and deterministically generates CAPL artefacts for test-code and response-simulation use cases. The architecture deliberately separates probabilistic LLM output from deterministic normalization, validation, code generation, and evaluation. This separation supports traceability, repeatability, and failure analysis in a safety-relevant engineering context. The evaluation uses a frozen campaign of 234 generation rows covering 22 CPDS-style requirements and three inference configurations. Results show that the IR-mediated approach is feasible for test-code generation: all test_code rows were schema-valid, and the checked CAPL artefacts compiled successfully in the CANoe-based compile study. This provides evidence of compile-time toolchain acceptance for the checked subset rather than full runtime behavioural correctness. However, semantic agreement with reference IR remained limited, with modest stimuli and checks F1 scores. Responsesimulation generation was weaker: pure response_simulation rows showed low schema validity, while valid combined artefacts could still be translated into compilable CAPL. Deterministic inference improved reproducibility of structural outcomes, but did not guarantee semantic correctness. The main conclusion is that LLM-based generation can be useful as an assisted drafting mechanism for ECU network test development when constrained by an explicit IR, validation gates, compiler checks, and human review. The approach is not sufficient for autonomous validation or safety certification, but it provides a practical basis for traceable and reproducible AI-assisted test artefact generation.

Full text and
other links
Volltext
Department(s)University of Stuttgart, Institute of Architecture of Application Systems, Architecture of Application Systems
Superviser(s)Aiello, Prof. Marco; Hirmer, Dr. Pascal
Entry dateAugust 13, 2026
   Publ. Institute   Publ. Computer Science