Comparative Analysis of Large Language Model Tools for Automated Test Data Generation from BDD
Automating processes reduces human workload, particularly in software testing, where automation enhances quality and efficiency. Behavior-driven development (BDD) focuses on software behavior to define and validate required functionalities, using tools to translate functional requirements into automated tests. However, creating BDD scenarios and associated test data inputs is timeconsuming and heavily reliant on a good input data set. Large Language Models (LLMs) such as Microsoft’s Copilot, OpenAI’s ChatGPT-3.5, ChatGPT-4, and Google’s Gemini offer potential solutions by automating test data generation. This study evaluates these LLMs’ ability to understand BDD scenarios and generate corresponding test data across five scenarios ranked by complexity. It assesses the LLMs’ learning, assertiveness, response structuring, quality, representativeness, and coverage of the generated test data. The results indicate that ChatGPT-4 and Gemini stand out as the best tools that met our expectations, showing promise for advancing the automation of test data generation from BDD scenarios.
Authors
- Vânia de Oliveira Neves (ORCID: https://orcid.org/0000-0003-4648-2263)
- Aline Paes (ORCID: https://orcid.org/0000-0002-9089-7303)
- Fernando Antonio Grangeiro Filho
- Isela Mendoza
- Gustavo Medeiros
Publication Details
- Published
- 2024-09-30
- DOI
- https://doi.org/10.5753/sbes.2024.3423
- Citations
- 5
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.43
Funders
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro