Suppr超能文献

Inferring test models from user bug reports using multi-objective search.

作者信息

Guizzo Giovani, Califano Francesco, Sarro Federica, Ferrucci Filomena, Harman Mark

机构信息

University College London, London, UK.

University of Salerno, Salerno, Italy.

出版信息

Empir Softw Eng. 2023;28(4):95. doi: 10.1007/s10664-023-10333-8. Epub 2023 Jun 20.

Abstract

Bug reports are used by software testers to identify abnormal software behaviour. In this paper, we propose a multi-objective evolutionary approach to automatically generate finite state machines (FSMs) based on bug reports written in natural language, to automatically capture incorrect software behaviour. These FSMs can then be used by testers to both exercise the reported bugs and create tests that can potentially reveal new bugs. The FSM generation is guided by a Multi-Objective Evolutionary Algorithm (MOEA) that simultaneously minimises three objectives: size of the models, number of unrealistic states (over-generalisation), and number of states not covered by the models (under-generalisation). We assess the feasibility of our approach for 10 real-world software programs by exploiting three different MOEAs (NSGA-II, NSGA-III and MOEA/D) and benchmarking them with the baseline tool KLFA. Our results show that KLFA is not practical to be used with real-world software, because it generates models that over generalise software behaviour. Among the three MOEAs, NSGA-II obtained significantly better results than the other two for all 10 programs, detecting a greater number of bugs for 90% of the programs. We also studied the differences in quality and model performance when MOEAs are guided by only two objectives rather than three during the evolution. We found that the use of under-approximation (or over-approximation) and size as objectives generates infeasible solutions. On the other hand, using as objectives over-approximation and under-approximation generates feasible solutions yet still worse than those obtained using all three objectives for 100% of the cases. The size objective acts as a diversity factor. As a consequence, an algorithm guided by all three objectives avoids local optima, controls the size of the models, and makes the results more diverse and closer to the optimal Pareto set.

摘要
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/40ef/10282050/50cc908c315d/10664_2023_10333_Fig1_HTML.jpg

相似文献

1
Inferring test models from user bug reports using multi-objective search.
Empir Softw Eng. 2023;28(4):95. doi: 10.1007/s10664-023-10333-8. Epub 2023 Jun 20.
3
Comparison of multi-objective evolutionary algorithms applied to watershed management problem.
J Environ Manage. 2022 Dec 15;324:116255. doi: 10.1016/j.jenvman.2022.116255. Epub 2022 Oct 6.
5
Hybrid selection based multi/many-objective evolutionary algorithm.
Sci Rep. 2022 Apr 27;12(1):6861. doi: 10.1038/s41598-022-10997-0.
6
MOEA/D with adaptive weight adjustment.
Evol Comput. 2014 Summer;22(2):231-64. doi: 10.1162/EVCO_a_00109. Epub 2014 Feb 6.
7
A hierarchical evolutionary algorithm for multiobjective optimization in IMRT.
Med Phys. 2010 Sep;37(9):4986-97. doi: 10.1118/1.3478276.
8
Difficulty Adjustable and Scalable Constrained Multiobjective Test Problem Toolkit.
Evol Comput. 2020 Fall;28(3):339-378. doi: 10.1162/evco_a_00259. Epub 2019 May 23.
10
A multi-objective scheduling method for operational coordination time using improved triangular fuzzy number representation.
PLoS One. 2021 Jun 9;16(6):e0252293. doi: 10.1371/journal.pone.0252293. eCollection 2021.

本文引用的文献

1
PRINS: scalable model inference for component-based system logs.
Empir Softw Eng. 2022;27(4):87. doi: 10.1007/s10664-021-10111-4. Epub 2022 Apr 12.
2
Learning deterministic finite automata with a smart state labeling evolutionary algorithm.
IEEE Trans Pattern Anal Mach Intell. 2005 Jul;27(7):1063-74. doi: 10.1109/TPAMI.2005.143.

文献AI研究员

20分钟写一篇综述,助力文献阅读效率提升50倍。

立即体验

用中文搜PubMed

大模型驱动的PubMed中文搜索引擎

马上搜索

文档翻译

学术文献翻译模型,支持多种主流文档格式。

立即体验