Test betiklerindeki kod klonlarının otomatik tanımlanması ve tekrarın ortadan kaldırılması için yeniden yapılandırılması
Is this your thesis?
This record came from a bulk archive import. If it’s yours, link it to your profile.
Abstract (EN)
Code clones in test scripts can significantly reduce maintainability. They can lead to duplication especially in ecosystems and product families where applications have commonalities in their test scenarios. Our goal is to eliminate duplication in test scripts for reducing their size and improving their maintainability. In particular, we focus on Python test scripts and propose an automated approach to identify commonalities, detect variations, and apply refactoring. We compare the effectiveness of various clone detection tools in identifying code clones at the function level in Python test scripts. We apply static analysis to detect variations and code dependencies among similar functions to steer the automated refactoring process. The refactoring approach involves extracting new functions or generalizing existing functions through parameterization. We validate our approach through case studies on one industrial and three open-source projects. Our findings indicate that automated refactoring can lead to a reduction of up to 8% in the size of test scripts. Automated detection and refactoring of code clones in test scripts can eliminate code duplication and reduce the script size. The proposed approach, validated through case studies, shows promising results and can be applied in various software ecosystems to improve test script maintainability
Author
Abdulmecit Şahin
Institution
How to Cite
Abdulmecit Şahin (Master Thesis). Test betiklerindeki kod klonlarının otomatik tanımlanması ve tekrarın ortadan kaldırılması için yeniden yapılandırılması, 2025, Özyeğin University.
Keywords
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from Özyeğin University
- A metaheuristic approach for multiple-item economic lot sizing problem with inventory dependent demand(2023)
- İleri karmaşık olay işleme özellikli veri akışı yönetim sisteminin tasarım ve gerçeklemesi(2013)
- Biyolojik kendiliğinden iyileşen çimento esaslı harçların performansa dayalı değerlendirilmesi(2022)
- Effective remorse provisions for drug and stimulant substances crimes in the Turkish Penal Code(2023)
- Bina bölütlemesi ve yükseklik tahmini için görsel durum-uzayı tabanlı çoklu görevli öğrenme(2025)
- Tam ka-bant uydu haberleşmesi için çift dairesel kutuplamalı horn anten ve besleme ağı(2025)
