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 条
  • [1] GENETIC ALGORITHM-BASED CHAOS CLUSTERING APPROACH FOR NONLINEAR OPTIMIZATION
    Cheng, Min-Yuan
    Huang, Kuo-Yu
    JOURNAL OF MARINE SCIENCE AND TECHNOLOGY-TAIWAN, 2010, 18 (03): : 435 - 441
  • [2] A Genetic Algorithm-based Construction of Fractional Repetition Codes
    Deng, Zhihang
    Zhu, Bing
    Du, Xianzhi
    Shum, Kenneth W.
    2022 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM 2022), 2022, : 4244 - 4249
  • [3] A GENETIC ALGORITHM-BASED APPROACH FOR OPTIMIZATION OF SCHEDULING IN JOB SHOP ENVIRONMENT
    Ritwik, Kumar
    Deb, Sankha
    JOURNAL OF ADVANCED MANUFACTURING SYSTEMS, 2011, 10 (02) : 223 - 240
  • [4] A genetic algorithm-based clustering approach for database partitioning
    Cheng, CH
    Lee, WK
    Wong, KF
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS PART C-APPLICATIONS AND REVIEWS, 2002, 32 (03): : 215 - 230
  • [5] Stochastic diagonalization of Hamiltonian: A genetic algorithm-based approach
    Nandy, S
    Chaudhury, P
    Bhattacharyya, SP
    INTERNATIONAL JOURNAL OF QUANTUM CHEMISTRY, 2002, 90 (01) : 188 - 194
  • [6] A Genetic Algorithm-Based Approach for Test Case Prioritization
    Habtemariam, Getachew Mekuria
    Mohapatra, Sudhir Kumar
    INFORMATION AND COMMUNICATION TECHNOLOGY FOR DEVELOPMENT FOR AFRICA (ICT4DA 2019), 2019, 1026 : 24 - 37
  • [7] A Genetic Algorithm-based Hybrid Optimization Approach for Microgrid Energy Management
    Li, Hepeng
    Zang, Chuanzhi
    Zeng, Peng
    Yu, Haibin
    Li, Zhongwen
    2015 IEEE INTERNATIONAL CONFERENCE ON CYBER TECHNOLOGY IN AUTOMATION, CONTROL, AND INTELLIGENT SYSTEMS (CYBER), 2015, : 1474 - 1478
  • [8] A Genetic Algorithm-Based Approach for the Inspection Scheduling Planning in Power Distribution Networks
    de Vasconcelos, Fillipe Matos
    Meschini Almeida, Carlos Frederico
    Pereira, Danilo de Souza
    Nascimento, Ananda Andrade
    Santos Rocha, Celso Henrique
    Kagan, Nelson
    JOURNAL OF CONTROL AUTOMATION AND ELECTRICAL SYSTEMS, 2022, 33 (04) : 1237 - 1248
  • [9] A Genetic Algorithm-Based Approach for the Inspection Scheduling Planning in Power Distribution Networks
    Fillipe Matos de Vasconcelos
    Carlos Frederico Meschini Almeida
    Danilo de Souza Pereira
    Ananda Andrade Nascimento
    Celso Henrique Santos Rocha
    Nelson Kagan
    Journal of Control, Automation and Electrical Systems, 2022, 33 : 1237 - 1248
  • [10] Integration of process planning and scheduling-A modified genetic algorithm-based approach
    Shao, Xinyu
    Li, Xinyu
    Gao, Liang
    Zhang, Chaoyong
    COMPUTERS & OPERATIONS RESEARCH, 2009, 36 (06) : 2082 - 2096