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 条
  • [41] A genetic algorithm-based design approach for smart base isolation systems
    Mohebbi, Mohtasham
    Dadkhah, Hamed
    Dabbagh, Hamed Rasouli
    JOURNAL OF INTELLIGENT MATERIAL SYSTEMS AND STRUCTURES, 2018, 29 (07) : 1315 - 1332
  • [42] Genetic algorithm-based parameter selection approach to single image defogging
    Guo, Fan
    Peng, Hui
    Tang, Jin
    INFORMATION PROCESSING LETTERS, 2016, 116 (10) : 595 - 602
  • [43] A genetic algorithm-based, hybrid machine learning approach to model selection
    Bies, RR
    Muldoon, MF
    Pollock, BG
    Manuck, S
    Smith, G
    Sale, ME
    JOURNAL OF PHARMACOKINETICS AND PHARMACODYNAMICS, 2006, 33 (02) : 195 - 221
  • [44] A genetic algorithm-based dendritic cell algorithm for input signal generation
    Zhang, Dan
    Zhang, Yu
    Liang, Yiwen
    APPLIED INTELLIGENCE, 2023, 53 (22) : 27571 - 27588
  • [45] A genetic algorithm-based approach to cost-sensitive bankruptcy prediction
    Chen, Ning
    Ribeiro, Bernardete
    Vieira, Armando S.
    Duarte, Joao
    Neves, Joao C.
    EXPERT SYSTEMS WITH APPLICATIONS, 2011, 38 (10) : 12939 - 12945
  • [46] Genetic algorithm-based approach for optimizing the energy rating on existing buildings
    Fresco Contreras, Rafael
    Moyano, Juan
    Rico, Fernando
    BUILDING SERVICES ENGINEERING RESEARCH & TECHNOLOGY, 2016, 37 (06) : 664 - 681
  • [47] A Genetic Algorithm-based Approach to Scheduling of Batch Production with Maximum Profit
    伍联营
    胡仰栋
    徐冬梅
    华贲
    ChineseJournalofChemicalEngineering, 2005, (01) : 74 - 79
  • [48] A Genetic Algorithm-based Approach for Design-level Class Decomposition
    Priyambadha, Bayu
    Takahashi, Nobuya
    Katayama, Tetsuro
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (04) : 461 - 468
  • [49] A Genetic Algorithm-Based, Hybrid Machine Learning Approach to Model Selection
    Robert R. Bies
    Matthew F. Muldoon
    Bruce G. Pollock
    Steven Manuck
    Gwenn Smith
    Mark E. Sale
    Journal of Pharmacokinetics and Pharmacodynamics, 2006, 33 : 195 - 221
  • [50] A genetic algorithm-based approach to scheduling of batch production with maximum profit
    Wu, LY
    Hu, YD
    Xu, DM
    Hua, B
    CHINESE JOURNAL OF CHEMICAL ENGINEERING, 2005, 13 (01) : 68 - 73