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 条
  • [21] On the Social Properties of Mobility Models: a Genetic Algorithm-based Approach
    Lv Bo
    Wu Muqing
    Wen Jingrong
    Wang Dongyang
    2013 16TH INTERNATIONAL SYMPOSIUM ON WIRELESS PERSONAL MULTIMEDIA COMMUNICATIONS (WPMC), 2013,
  • [22] A Genetic Algorithm-Based Classification Approach for Multicriteria ABC Analysis
    Kaabi, Hadhami
    Jabeur, Khaled
    Ladhari, Talel
    INTERNATIONAL JOURNAL OF INFORMATION TECHNOLOGY & DECISION MAKING, 2018, 17 (06) : 1805 - 1837
  • [23] Genetic Algorithm-Based Approach for Estimating Commodity OD Matrix
    Parichart Pattanamekar
    Dongjoo Park
    Kang-Dae Lee
    Chansung Kim
    Wireless Personal Communications, 2014, 79 : 2499 - 2515
  • [24] A genetic algorithm-based approach for class-imbalanced learning
    Dong, Shangyan
    Wu, Yongcheng
    THIRD INTERNATIONAL WORKSHOP ON PATTERN RECOGNITION, 2018, 10828
  • [25] Genetic Algorithm-Based Approach for RNA Secondary Structure Prediction
    Borkar, Pradnya S.
    Mahajan, A. R.
    PROGRESS IN ADVANCED COMPUTING AND INTELLIGENT ENGINEERING, PROCEEDINGS OF ICACIE 2016, VOLUME 1, 2018, 563 : 397 - 408
  • [26] Genetic algorithm-based approach for design of independent manufacturing cells
    Moon, Chiung
    Gen, Mitsuo
    International Journal of Production Economics, 1999, 60 : 421 - 426
  • [27] Genetic algorithm-based clustering approach for k-anonymization
    Lin, Jun-Lin
    Wei, Meng-Cheng
    EXPERT SYSTEMS WITH APPLICATIONS, 2009, 36 (06) : 9784 - 9792
  • [28] A genetic algorithm-based approach for building accurate decision trees
    Fu, ZW
    Golden, BL
    Lele, S
    Raghavan, S
    Wasil, EA
    INFORMS JOURNAL ON COMPUTING, 2003, 15 (01) : 3 - 22
  • [29] AN EVALUATION APPROACH FOR THE PROGRAM OF ASSOCIATION RULES ALGORITHM BASED ON METAMORPHIC RELATIONS
    Zhang Jing Hu Xuegang Zhang Bin(School of Computer and Information
    Journal of Electronics(China), 2011, (Z1) : 623 - 631
  • [30] AN EVALUATION APPROACH FOR THE PROGRAM OF ASSOCIATION RULES ALGORITHM BASED ON METAMORPHIC RELATIONS
    Zhang Jing Hu Xuegang Zhang BinSchool of Computer and InformationHefei University of TechnologyHefei China
    Journal of Electronics(China), 2011, 28(Z1) (China) : 623 - 631