Work

Gruppering av svartlåde-testfall med inbäddningsmodeller för testsvitsreducering : Ett experiment med loggfiler och testfallsbeskrivningar

Year: 2025
Type: dissertation
Abstract: 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.
Authors: Luong, Anders, Purgal, Daniel
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W6982118313
Cites: 39
Cited by:
Related to: 10