Identifying metamorphic relations: A data mutation directed approach

Author:

Sun Chang‐ai1ORCID,Jin Hui1,Wu SiYi1,Fu An1,Wang ZuoYi1,Chan Wing Kwong2

Affiliation:

1. School of Computer and Communication Engineering University of Science and Technology Beijing Beijing China

2. Department of Computer Science City University of Hong Kong Hong Kong China

Abstract

SummaryMetamorphic testing (MT) is an effective technique to alleviate the test oracle problem. The principle of MT is to detect failures by checking whether some necessary properties, commonly known as metamorphic relations (MRs), of software under test (SUT) hold among multiple executions of source and follow‐up test cases. Since both the generation of follow‐up test cases and test result verification depend on MRs, the identification of MRs plays a key role in MT, which is an important yet difficult task requiring deep domain knowledge of the SUT. Accordingly, techniques that can direct a tester to identify MRs effectively are desirable. In this paper, we propose MT, a data mutation directed approach to identifying MRs. MT guides a tester to identify MRs by providing a set of data mutation operators and template‐style mapping rules, which not only alleviates the difficulties faced in the process of MR identification but also improves the identification effectiveness. We have further developed a tool to implement the proposed approach and conducted an empirical study to evaluate the MR identification effectiveness of MT and the performance of MRs identified by MT with respect to fault detection capability and statement coverage. The empirical results show that MT is able to identify MRs for numeric programs effectively, and the identified MRs have high fault detection capability and statement coverage. The work presented in this paper advances the field of MT by providing a simple yet practical approach to the MR identification problem.

Funder

National Natural Science Foundation of China

Chinese Aeronautical Establishment

Beijing Natural Science Foundation

City University of Hong Kong

Fundamental Research Funds for the Central Universities

Publisher

Wiley

Subject

Software

Reference74 articles.

1. SunCA LiuY WangZ ChanW.μMT: a data mutation directed metamorphic relation acquisition methodology. Proceedings of the 1st IEEE/ACM International Workshop on Metamorphic Testing (MET'16) in Conjunction with the 38th International Conference on Software Engineering (ICSE'16). IEEE.201612–18.

2. Oracles for Distributed Testing

3. HarmanM McminnP ShahbazM YooS.A Comprehensive Survey of Trends in Oracles for Software Testing. University of Sheffield Department of Computer Science Tech. Rep. CS‐13‐012013.

4. The Oracle Problem in Software Testing: A Survey

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3