Методи генерації тест-кейсів у тестуванні мікросервісів на основі застосування великих мовних моделей
Вікторія Валеріївна Бандура, Роман Ігорович Храбатин · The Scientific Issues of Ternopil Volodymyr Hnatiuk National Pedagogical University Series pedagogy · 2026
The paper addresses the problem of using large language models (LLMs) for automated test case generation in the testing of software systems with microservice architecture. The relevance of the study is driven by the increasing complexity of microservice architectures, which are characterized by distributed components, API-based interactions, and the need for comprehensive integration testing, as well as by the active adoption of artificial intelligence tools in software engineering education and practice. Particular attention is paid to the use of large language models by students of the F2 “Software Engineering” specialty during the creation of test scenarios. The aim of the study is to conduct a comparative analysis of the effectiveness of large language models in generating test cases for microservice testing and to identify typical errors and hallucinations that occur in their outputs. The research employs a standardized description of a software system with microservice architecture and unified textual prompts to ensure the correctness and comparability of results obtained from different models. The generated test cases are evaluated according to several criteria, including coverage completeness, compliance with API specifications, logical correctness of test steps, presence of negative and edge-case scenarios, and suitability of the results for practical and educational use. The results demonstrate that large language models are capable of automating the generation of basic test cases for software systems with microservice architecture; however, their effectiveness varies depending on the type and orientation of the model. General-purpose language models provide high readability and well-structured test scenarios, which is beneficial in educational contexts, whereas specialized software engineering–oriented models show better compliance with API descriptions and more systematic generation of negative and edge-case tests. At the same time, typical hallucinations were identified, including the generation of non-existent endpoints, incorrect request parameters, and logically inconsistent expected results. The practical significance of the obtained results lies in their potential use for developing methodological recommendations on the appropriate and safe application of large language models in microservice testing within the training of future software engineers.
Cited by 0 works. Open-access PDF