Automated Alignment of Software Requirements and Test Cases

dc.contributor.authorIvarsson, Samuel
dc.contributor.authorSetterström, Jesper
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerGay, Gregory
dc.contributor.supervisorGomes de Oliveira Neto, Francisco
dc.date.accessioned2023-08-03T09:13:57Z
dc.date.available2023-08-03T09:13:57Z
dc.date.issued2023
dc.date.submitted2023
dc.description.abstractSoftware testing can be expensive, but there are numerous tools available to enhance its efficiency. Nevertheless, certain areas still lack adequate technology. To address this, we conducted a qualitative study to identify shortcomings in existing tools and determine what features are needed in new ones. Through Thematic Analysis of the interviews conducted, we discovered that system-level testing stands out as an area in need of improvement, with a particular emphasis on the importance of well-defined requirements for effective testing. In light of this, we propose the development of a tool that assists testers in aligning their tests with requirements and generates suggestions for new tests using a powerful Large Language Model (LLM). The tool demonstrated great efficacy in terms of accuracy and recall, achieving an average of 86.394% each. It also provided valuable suggestions for testing approaches related to requirements. However, we observed limitations in its ability to achieve perfect alignment between requirements and test cases, as it showed a tendency for false positives. This led to the tool having an average precision of 45.582%. Moreover, the tool exhibited high efficiency when handling smaller input sizes. However, as the input size increased, we noticed a more than linear growth in analysis time, suggesting potential scalability challenges.
dc.identifier.coursecodeDATX05
dc.identifier.urihttp://hdl.handle.net/20.500.12380/306739
dc.language.isoeng
dc.setspec.uppsokTechnology
dc.subjectSoftware testing
dc.subjectRequirements Engineering
dc.subjectREST
dc.subjectRequirements and Test Alignment
dc.subjectPrompt Engineering
dc.subjectLarge Language Models (LLM)
dc.subjectTool Development, Design Science
dc.subjectComputer Science and Engineering
dc.subjectMaster Thesis
dc.titleAutomated Alignment of Software Requirements and Test Cases
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeSoftware engineering and technology (MPSOF), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 23-85 SI JS.pdf
Storlek:
1.73 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Storlek:
2.35 KB
Format:
Item-specific license agreed upon to submission
Beskrivning: