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] Stochastic construction of reaction paths: A genetic algorithm-based approach
    Chaudhury, Pinaki
    Bhattacharyya, S.P.
    2000, John Wiley & Sons Inc, New York, NY, USA (76)
  • [2] Stochastic construction of reaction paths: A genetic algorithm-based approach
    Chaudhury, P
    Bhattacharyya, SP
    INTERNATIONAL JOURNAL OF QUANTUM CHEMISTRY, 2000, 76 (02) : 161 - 168
  • [3] A Genetic Algorithm-based approach for Project Management and developed design of construction
    Tiene, Sara
    Bragadin, Marco Alvise
    Ballabeni, Andrea
    TECHNE-JOURNAL OF TECHNOLOGY FOR ARCHITECTURE AND ENVIRONMENT, 2018, 16 : 131 - 141
  • [4] 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
  • [5] A genetic algorithm-based method for scheduling repetitive construction projects
    Long, Luong Duc
    Ohsato, Ario
    AUTOMATION IN CONSTRUCTION, 2009, 18 (04) : 499 - 511
  • [6] 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
  • [7] 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
  • [8] 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
  • [9] A Genetic algorithm-Based Approach for Classification Rule Discovery
    Shi, Xian-Jun
    Lei, Hong
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON INFORMATION MANAGEMENT, INNOVATION MANAGEMENT AND INDUSTRIAL ENGINEERING, VOL 1, 2008, : 175 - 178
  • [10] A genetic algorithm-based approach to machine assignment problem
    Chan, FTS
    Wong, TC
    Chan, LY
    INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2005, 43 (12) : 2451 - 2472