首页    期刊浏览 2025年02月17日 星期一
登录注册

文章基本信息

  • 标题:A Genetic Algorithm-Based Approach for Composite Metamorphic Relations Construction
  • 本地全文:下载
  • 作者:Zhenglong Xiang , Hongrun Wu ; Fei Yu
  • 期刊名称:Information
  • 电子版ISSN:2078-2489
  • 出版年度:2019
  • 卷号:10
  • 期号:12
  • 页码:1-15
  • DOI:10.3390/info10120392
  • 出版社:MDPI Publishing
  • 摘要: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.
  • 关键词:metamorphic testing; genetic algorithm; composite metamorphic relation; search-based software testing metamorphic testing ; genetic algorithm ; composite metamorphic relation ; search-based software testing
国家哲学社会科学文献中心版权所有