Test betiklerindeki kod klonlarının otomatik tanımlanması ve tekrarın ortadan kaldırılması için yeniden yapılandırılması
2025
0 views
0 downloads
Advisor: Prof. Dr. Hasan Sözer
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
Dr. 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, Özyegin University.
Keywords
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from Özyegin University
- Robust whole-body control for legged robots(2022)
- Yonga levha tesisi için uygulama: Kalite tahminlemesi ve dijital dönüşüm için web tabanlı karar destek sistemi(2022)
- Araç görünür ışık haberleşmesinin performans değerlendirmesi ve deneysel doğrulaması(2022)
- Likidite yeterlilik oranının belirleyicileri: Türk bankaları üzerine ampirik bir çalışma(2022)
- Buzdolabı kablo tasarımının bozulma gücü testine deneysel etki analizi(2022)
- Biyolojik kendiliğinden iyileşen çimento esaslı harçların performansa dayalı değerlendirilmesi(2022)
