Clustering Black Box Test Cases by Embedding Models for Test Suite Reduction: An experiment with log files and test case descriptions
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Gruppering av svartlåde-testfall med inbäddningsmodeller för testsvitsreducering : Ett experiment med loggfiler och testfallsbeskrivningar (Swedish)
Abstract [en]
Software testing is essential for ensuring software reliability. At Ericsson, regression testing is a core component to ensure the quality of their products. Maintaining large test suites is costly and inefficient. As the test suites grow, the uncertainty of which part of the system has been tested increases, making it harder to develop new test cases. This is especially pronounced in black-box testing where code coverage metrics are unavailable. Therefore, test suites are prone to redundancy, causing unnecessary runtime overhead, especially when the suites are run continuously. Hence, deriving similar test cases and removing duplications can improve maintenance and reduce costs.
Since large language models (LLMs) have revealed promising results in finding similarities, this thesis investigates if LLMs can, in combination with clustering, find similar test cases better than a traditional approach. In particular, we explore TeleRoBERTa as the LLM and TF-IDF as the traditional approach. To achieve this, we propose a pipeline that takes different types of test case data, a natural language part consisting of test case descriptions, which is complemented by data from generated log files. The data is preprocessed, vectorized using TF-IDF or TeleRoBERTa, and clustered using HDBSCAN to produce clusters of functionally similar test cases. Finally, two cluster-based reduction methods are also performed to obtain a reduced test suite.
We evaluated our solution using the test suite of a telecommunication system developed by Ericsson. The results reveal that the clusters created using TF-IDF and TeleRoBERTa accurately represent those created by experts, but perform differently based on context. The results reveal that TeleRoBERTa performs better than TF-IDF when using test case descriptions, but worse when using log files. Moreover, with a combination of both datasets, TeleRoBERTa performs similarly as opposed to only using test case descriptions. In addition, TF-IDF performs similarly across all experiments. Analyzing the clusters also reveals that TeleRoBERTa tends to create clusters with test cases that share more similar names and descriptions than TF-IDF. Finally, the cluster-based reductions proposed need to be investigated further.
Place, publisher, year, edition, pages
2025. , p. 69
Keywords [en]
LLM, Clustering, Machine learning, Log files, Test cases, Black-box testing, TF-IDF, TeleRoBERTa, Test suite reduction, Test suite minimization, Telecommunication
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:liu:diva-214831ISRN: LIU-IDA/LITH-EX-A--25/016--SEOAI: oai:DiVA.org:liu-214831DiVA, id: diva2:1975437
External cooperation
Ericsson AB
Subject / course
Computer science
Presentation
2025-06-03, Thomas Bayes, Linköping University, House B, Linköping, 13:00 (English)
Supervisors
Examiners
2025-06-302025-06-242025-07-01Bibliographically approved