A Genetic Algorithm-Based Approach for Composite Metamorphic Relations Construction

被引:4
作者
Xiang, Zhenglong [1 ]
Wu, Hongrun [2 ]
Yu, Fei [2 ]
机构
[1] Wuhan Univ, Sch Comp Sci, Wuhan 430072, Peoples R China
[2] Minnan Normal Univ, Sch Phys & Informat Engn, Zhangzhou 363000, Peoples R China
基金
中国国家自然科学基金;
关键词
metamorphic testing; genetic algorithm; composite metamorphic relation; search-based software testing; SOFTWARE; SEARCH; PRIORITIZATION; OPTIMIZATION;
D O I
10.3390/info10120392
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The test oracle problem exists widely in modern complex software testing, and metamorphic testing (MT) has become a promising testing technique to alleviate this problem. The inference of efficient metamorphic relations (MRs) is the core problem of metamorphic testing. Studies have proven that the combination of simple metamorphic relations can construct more efficient metamorphic relations. In most previous studies, metamorphic relations have been mainly manually inferred by experts with professional knowledge, which is an inefficient technique and hinders the application. In this paper, a genetic algorithm-based approach is proposed to construct composite metamorphic relations automatically for the program to be tested. We use a set of relation sequences to represent a particular class of MRs and turn the problem of inferring composite MRs into a problem of searching for suitable sequences. We then dynamically implement multiple executions of the program and use a genetic algorithm to search for the optimal set of relation sequences. We conducted empirical studies to evaluate our approach using scientific functions in the GNU scientific library (abbreviated as GSL). From the empirical results, our approach can automatically infer high-quality composite MRs, on average, five times more than basic MRs. More importantly, the inferred composite MRs can increase the fault detection capabilities by at least 30% more than the original metamorphic relations.
引用
收藏
页数:15
相关论文
共 50 条
  • [31] Genetic algorithm-based mapping scheme for dynamic construction in cloud simulation environments
    Zhou C.
    Hu Y.
    Li J.
    Li G.
    Li, Guohui (guohuili@hust.edu.cn), 1600, Huazhong University of Science and Technology (44): : 31 - 35
  • [32] A Template-Based Approach to Describing Metamorphic Relations
    Segura, Sergio
    Duran, Amador
    Troya, Javier
    Ruiz Cortes, Antonio
    2017 IEEE/ACM 2ND INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2017), 2017, : 3 - 9
  • [33] Genetic algorithm-based optimization used in rolling schedule
    Yang Jing-ming
    Che Hai-jun
    Dou Fu-ping
    Zhou Tao
    JOURNAL OF IRON AND STEEL RESEARCH INTERNATIONAL, 2008, 15 (02) : 18 - 22
  • [34] A genetic algorithm-based approach for automated refactoring of component-based software
    Kebir, Salim
    Borne, Isabelle
    Meslati, Djamel
    INFORMATION AND SOFTWARE TECHNOLOGY, 2017, 88 : 17 - 36
  • [35] Genetic Algorithm-Based Optimization Used in Rolling Schedule
    Jing-ming Yang
    Hai-jun Che
    Fu-ping Dou
    Tao Zhou
    Journal of Iron and Steel Research International, 2008, 15 : 18 - 22
  • [36] Genetic algorithm-based optimization of a vehicle suspension system
    Esat, I
    INTERNATIONAL JOURNAL OF VEHICLE DESIGN, 1999, 21 (2-3) : 148 - 160
  • [38] Research on genetic algorithm-based rapid design optimization
    Tong Yifei
    He Yong
    Gong Zhibing
    Li Dongbo
    Zhu Baiqing
    MECHANIKA, 2012, (05): : 569 - 573
  • [39] GENETIC ALGORITHM-BASED MULTI-CRITERIA APPROACH TO PRODUCT MODULARIZATION
    Kumar, Binay
    Singh, Ritesh Kumar
    Kumar, Surendra
    INTERNATIONAL JOURNAL OF TECHNOLOGY, 2018, 9 (04) : 775 - 786
  • [40] Genetic Algorithm-based Crowdsensing for Cognitive Radio Networks
    Mossad, Omar S.
    ElNainay, Mustafa
    2018 14TH INTERNATIONAL CONFERENCE ON WIRELESS AND MOBILE COMPUTING, NETWORKING AND COMMUNICATIONS (WIMOB 2018), 2018,