Abstraction-Aware Inference of Metamorphic Relations

Author:

Nolasco Agustín1ORCID,Molina Facundo2ORCID,Degiovanni Renzo3ORCID,Gorla Alessandra2ORCID,Garbervetsky Diego4ORCID,Papadakis Mike5ORCID,Uchitel Sebastian6ORCID,Aguirre Nazareno7ORCID,Frias Marcelo F.8ORCID

Affiliation:

1. University of Rio Cuarto, Rio Cuarto, Argentina

2. IMDEA Software Institute, Madrid, Spain

3. Luxembourg Institute of Science and Technology, Luxembourg, Luxembourg

4. University of Buenos Aires and ICC/CONICET, Buenos Aires, Argentina

5. University of Luxembourg, Luxembourg, Luxembourg

6. Imperial College, London, United Kingdom / University of Buenos Aires and ICC/CONICET, Buenos Aires, Argentina

7. University of Rio Cuarto, Rio Cuarto, Argentina / CONICET, Buenos Aires, Argentina

8. The University of Texas at El Paso, El Paso, USA

Abstract

Metamorphic testing is a valuable technique that helps in dealing with the oracle problem. It involves testing software against specifications of its intended behavior given in terms of so called metamorphic relations , statements that express properties relating different software elements (e.g., different inputs, methods, etc). The effective application of metamorphic testing strongly depends on identifying suitable domain-specific metamorphic relations, a challenging task, that is typically manually performed. This paper introduces MemoRIA, a novel approach that aims at automatically identifying metamorphic relations. The technique focuses on a particular kind of metamorphic relation, which asserts equivalences between methods and method sequences. MemoRIA works by first generating an object-protocol abstraction of the software being tested, then using fuzzing to produce candidate relations from the abstraction, and finally validating the candidate relations through run-time analysis. A SAT-based analysis is used to eliminate redundant relations, resulting in a concise set of metamorphic relations for the software under test. We evaluate our technique on a benchmark consisting of 22 Java subjects taken from the literature, and compare MemoRIA with the metamorphic relation inference technique SBES. Our results show that by incorporating the object protocol abstraction information, MemoRIA is able to more effectively infer meaningful metamorphic relations, that are also more precise, compared to SBES, measured in terms of mutation analysis. Also, the SAT-based reduction allows us to significantly reduce the number of reported metamorphic relations, while in general having a small impact in the bug finding ability of the corresponding obtained relations.

Publisher

Association for Computing Machinery (ACM)

Reference51 articles.

1. 2023. Fuzzing Research Tools and their Relatedness. https://fuzzing-survey.org/

2. 2024. MemoRIA implementation and replication package. https://zenodo.org/records/10683011

3. Testing Web Enabled Simulation at Scale Using Metamorphic Testing

4. Apache. 2023. Apache Commons site. https://commons.apache.org/

5. 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