Please use this identifier to cite or link to this item:
https://hdl.handle.net/10356/183995
Title: | Test case generation from specifications using natural language processing and large language models | Authors: | Leung, Andrew Chun Kit | Keywords: | Computer and Information Science | Issue Date: | 2025 | Publisher: | Nanyang Technological University | Source: | Leung, A. C. K. (2025). Test case generation from specifications using natural language processing and large language models. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/183995 | Abstract: | This report investigates the feasibility and effectiveness of using Natural Language Processing (NLP) and Large Language Models (LLMs), particularly GPT-4o, to automate the generation of software test cases from system specifications. Motivated by the growing need to reduce human effort and time spent on documentation tasks in software development, this project proposes an agentic framework leveraging LangChain to decompose the complex task of test case generation into smaller sub-problems. Each agent in the system is responsible for extracting features, functionalities, and test cases from natural language specifications, with validation agents ensuring alignment and consistency at each step. The methodology is evaluated using a set of diverse sample specifications, and results show that while LLMs can effectively identify key features and generate relevant test cases, the outputs are often limited in depth and completeness. Challenges include prompt sensitivity, validation inconsistencies, and output formatting constraints. Although the current implementation yields moderately successful results, it provides a strong foundation for future enhancements in automated documentation generation, with potential applications in broader areas such as use case and class diagram generation. | URI: | https://hdl.handle.net/10356/183995 | Schools: | College of Computing and Data Science | Fulltext Permission: | restricted | Fulltext Availability: | With Fulltext |
Appears in Collections: | CCDS Student Reports (FYP/IA/PA/PI) |
Files in This Item:
File | Description | Size | Format | |
---|---|---|---|---|
Leung Chun Kit Andrew Final Year Report v2.pdf Restricted Access | 374.31 kB | Adobe PDF | View/Open |
Items in DR-NTU are protected by copyright, with all rights reserved, unless otherwise indicated.