Engineers need automated support for software testing. Generative AI is a novel technology for generating new content; however, its applicability for test case generation is still unclear. This work considers the following question: Can generative AI produce test cases in industrial software applications? We framed our question in the automotive domain. We performed our evaluation in collaboration with a large automotive manufacturer to assess to what extent generative AI can produce test cases (a.k.a. test scripts) from informal test case specifications. We considered 1) informal test case specifications defined in Rational Quality Manager, an industrial test management tool from IBM, and 2) executable test scripts specified as ecu.test packages supported by the ecu.test tool from Tracetronic. We used generative AI to produce the test scripts from the informal test case descriptions. Our results show that generative AI can produce correct or near-correct test scripts in a reasonable number of cases. We also analyzed the effects of prompt design, choice of generative AI model, and context accuracy on the effectiveness of our solution and reflected on our results.

(2025). Can Generative AI Produce Test Cases? An Experience from the Automotive Domain . Retrieved from https://hdl.handle.net/10446/316225

Can Generative AI Produce Test Cases? An Experience from the Automotive Domain

Menghi, Claudio;
2025-01-01

Abstract

Engineers need automated support for software testing. Generative AI is a novel technology for generating new content; however, its applicability for test case generation is still unclear. This work considers the following question: Can generative AI produce test cases in industrial software applications? We framed our question in the automotive domain. We performed our evaluation in collaboration with a large automotive manufacturer to assess to what extent generative AI can produce test cases (a.k.a. test scripts) from informal test case specifications. We considered 1) informal test case specifications defined in Rational Quality Manager, an industrial test management tool from IBM, and 2) executable test scripts specified as ecu.test packages supported by the ecu.test tool from Tracetronic. We used generative AI to produce the test scripts from the informal test case descriptions. Our results show that generative AI can produce correct or near-correct test scripts in a reasonable number of cases. We also analyzed the effects of prompt design, choice of generative AI model, and context accuracy on the effectiveness of our solution and reflected on our results.
2025
Inglese
Proceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering
979-8-4007-1276-0
456
467
online
United States
New York
Association for Computing Machinery (ACM)
FSE Companion 2025: Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering, Trondheim, Norway, 23-28 June 2025
33rd
Trondheim, Norway
23-28 June 2025
Settore IINF-05/A - Sistemi di elaborazione delle informazioni
Software Testing; LLM; generative AI; Automotive Software
info:eu-repo/semantics/conferenceObject
7
Wynn-Williams, Stephen; Tyrrell, Ryan; Pantelic, Vera; Lawford, Mark; Menghi, Claudio; Nalla, Phaneendra; Artail, Hassan
1.4 Contributi in atti di convegno - Contributions in conference proceedings::1.4.01 Contributi in atti di convegno - Conference presentations
open
Non definito
273
(2025). Can Generative AI Produce Test Cases? An Experience from the Automotive Domain . Retrieved from https://hdl.handle.net/10446/316225
File allegato/i alla scheda:
File Dimensione del file Formato  
2025_FSE_Industy.pdf

accesso aperto

Versione: publisher's version - versione editoriale
Licenza: Creative commons
Dimensione del file 573.52 kB
Formato Adobe PDF
573.52 kB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

Aisberg ©2008 Servizi bibliotecari, Università degli studi di Bergamo | Terms of use/Condizioni di utilizzo

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10446/316225
Citazioni
  • Scopus 1
  • ???jsp.display-item.citation.isi??? 0
social impact