Umeå University's logo

umu.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
An In-Depth study on the Utilization of Large Language Models for Test Case Generation
Umeå University, Faculty of Science and Technology, Department of Computing Science.
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This study investigates the utilization of Large Language Models for Test Case Generation. The study uses the Large Language model and Embedding model provided by Llama, specifically Llama2 of size 7B, to generate test cases given a defined input. The study involves an implementation that uses customization techniques called Retrieval Augmented Generation (RAG) and Prompt Engineering. RAG is a method that in this study, stores organisation information locally, which is used to create test cases. This stored data is used as complementary data apart from the pre-trained data that the large language model has already trained on. By using this method, the implementation can gather specific organisation data and therefore have a greater understanding of the required domains. The objective of the study is to investigate how AI-driven test case generation impacts the overall software quality and development efficiency. This is evaluated by comparing the output of the AI-based system, to manually created test cases, as this is the company standard at the time of the study. The AI-driven test cases are analyzed mainly in the form of coverage and time, meaning that we compare to which degree the AI system can generate test cases compared to the manually created test case. Likewise, time is taken into consideration to understand how the development efficiency is affected. The results reveal that by using Retrieval Augmented Generationin combination with Prompt Engineering, the system is able to identify test cases to a certain degree. The results show that 66.67% of a specific project was identified using the AI, however, minor noise could appear and results might differ depending on the project’s complexity. Overall the results revealed how the system can positively impact the development efficiency and could also be argued to have a positive effect on the software quality. However, it is important to understand that the implementation as its current stage, is not sufficient enough to be used independently, but should rather be used as a tool to more efficiently create test cases.

Place, publisher, year, edition, pages
2024. , p. 41
Series
UMNAD ; 1451
Keywords [en]
Large Language Models, Test Case Generation, Retrieval Augmented Generation, Machine Learning, Generative AI
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:umu:diva-220672OAI: oai:DiVA.org:umu-220672DiVA, id: diva2:1835852
External cooperation
PayPal
Subject / course
Examensarbete i Interaktionsteknik och design
Educational program
Master of Science Programme in Interaction Technology and Design - Engineering
Supervisors
Examiners
Available from: 2024-02-08 Created: 2024-02-07 Last updated: 2024-02-08Bibliographically approved

Open Access in DiVA

AI_driven_Test_Case_Generation(1747 kB)4627 downloads
File information
File name FULLTEXT01.pdfFile size 1747 kBChecksum SHA-512
1cc0bfe862409838e08b780e94fbba2b9aab3da33492177f02d8fe4b146fdb352d84d59abf7de1ac4ba642a07d0c0def8cf4cef9e78c1019d7550eb8e51a1ced
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Johnsson, Nicole
By organisation
Department of Computing Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 4629 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 3129 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf