liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Clustering Black Box Test Cases by Embedding Models for Test Suite Reduction: An experiment with log files and test case descriptions
Linköping University, Department of Computer and Information Science, Software and Systems.
Linköping University, Department of Computer and Information Science, Software and Systems.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent 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
Available from: 2025-06-30 Created: 2025-06-24 Last updated: 2025-07-01Bibliographically approved

Open Access in DiVA

fulltext(1786 kB)151 downloads
File information
File name FULLTEXT02.pdfFile size 1786 kBChecksum SHA-512
95fd96f593a95e17cd50fa42ee18e925eea8bafcf1939d3526cba81dc76ac5ffac8a36105c05b90fd46741088e8ac524be8915dac089c6fc94af1db2cded51bf
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Luong, AndersPurgal, Daniel
By organisation
Software and Systems
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 153 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 769 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf