Using Source Code Metrics for Predicting Metamorphic Relations at Method Level

被引:5
作者
Duque-Torres, Alejandra [1 ]
Pfahl, Dietmar [1 ]
Klammer, Claus [2 ]
Fischer, Stefan [2 ]
机构
[1] Univ Tartu, Inst Comp Sci, Tartu, Estonia
[2] Software Competence Ctr Hagenberg SCCH GmbH, Hagenberg, Austria
来源
2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022) | 2022年
关键词
Software testing; metamorphic testing; metamorphic relations; prediction modelling; SOFTWARE;
D O I
10.1109/SANER53432.2022.00132
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Metamorphic testing (TM) examines the relations between inputs and outputs of test runs. These relations are known as metamorphic relations (MR). Currently, MRs are handpicked and require in-depth knowledge of the System Under Test (SUT), as well as its problem domain. As a result, the identification and selection of high-quality MRs is a challenge. Kanewala et al. suggested the Predicting Metamorphic Relations (PMR) approach for automatic prediction of applicable MRs picked from a predefined list. PMR is based on a Support Vector Machine (SVM) model using features derived from the Control Flow Graphs (CFGs) of 100 Java methods. The original study of Kanewala et al. showed encouraging results, but developing classification models from CFG-related features is costly. In this paper, we aim at developing a PMR approach that is less costly without losing performance. We complement the original PMR approach by considering other than CFG-related features. We define 21 features that can be directly extracted from source code and build several classifiers, including SVM models. Our results indicate that using the original CFG-based method-level features, in particular for a SVM with random walk kernel (RWK), achieve better predictions in terms of AUC-ROC for most of the candidate MRs than our models. However, for one of the candidate MRs, using source code features achieved the best AUC-ROC result (greater than 0.8).
引用
收藏
页码:1147 / 1154
页数:8
相关论文
共 38 条
  • [1] [Anonymous], Java Collections
  • [2] [Anonymous], 1998, technical report hkust-cs98-01
  • [3] [Anonymous], Apache Commons Math
  • [4] Apache Mahout, ABOUT US
  • [5] The Oracle Problem in Software Testing: A Survey
    Barr, Earl T.
    Harman, Mark
    McMinn, Phil
    Shahbaz, Muzammil
    Yoo, Shin
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (05) : 507 - 525
  • [6] MT-EA4Cloud: A Methodology For testing and optimising energy-aware cloud systems
    Canizares, Pablo C.
    Nunez, Alberto
    de Lara, Juan
    Llana, Luis
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 163
  • [7] Metamorphic Testing: A Review of Challenges and Opportunities
    Chen, Tsong Yueh
    Kuo, Fei-Ching
    Liu, Huai
    Poon, Pak-Lok
    Towey, Dave
    Tse, T. H.
    Zhou, Zhi Quan
    [J]. ACM COMPUTING SURVEYS, 2018, 51 (01)
  • [8] METRIC: METamorphic Relation Identification based on the Category-choice framework
    Chen, Tsong Yueh
    Poon, Pak-Lok
    Xie, Xiaoyuan
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2016, 116 : 177 - 190
  • [9] USING METRICS TO EVALUATE SOFTWARE SYSTEM MAINTAINABILITY
    COLEMAN, D
    ASH, D
    LOWTHER, B
    OMAN, P
    [J]. COMPUTER, 1994, 27 (08) : 44 - 49
  • [10] Colt project, US