基于多目标粒子群优化的测试序列生成研究
On Test Sequence Generation using Multi-Objective Particle Swarm Optimization
AI总结:
本文将测试序列生成建模为同时优化路径与Oracle成本的多目标问题,采用MOPSO生成高优先级、低成本测试序列,并证明其优于MOFA。
摘要:
软件测试是软件开发生命周期中重要且必不可少的组成部分,几乎占系统开发成本的三分之一。在软件行业中,测试成本可占软件项目总成本的约35%至40%。因此,提供高效的软件测试方法对于降低成本、时间和工作量至关重要。黑盒测试和白盒测试是软件测试的两个基本组成部分。黑盒测试关注软件的功能,而白盒测试检查软件的内部结构。这些测试对确保程序覆盖率具有重要作用,而程序覆盖率仍是软件测试范式的主要目标之一。该领域的主要问题之一是识别适合实现程序覆盖的路径,这些路径被称为测试序列。创建自动化且有效的测试序列是软件测试过程中一项具有挑战性的任务。在所提出的方法中,“测试序列生成”的挑战被视为一个多目标优化问题,其中包括Oracle成本和路径两个目标,二者以对称方式进行优化,以实现最优的软件测试。采用多目标粒子群优化(Multi-Objective Particle Swarm Optimization,MOPSO)将具有最高优先级和最低Oracle成本的测试序列表示为最优解。所实现方法的性能在测试序列生成方面与多目标萤火虫算法(Multi-Objective Firefly Algorithm,MOFA)进行了比较。基于MOPSO的解决方案优于基于MOFA的方法,并同时为两个目标提供最优解。
英文摘要:
Software testing is an important and essential part of the software development life cycle and accounts for almost one-third of system development costs. In the software industry, testing costs can account for about 35% to 40% of the total cost of a software project. Therefore, providing efficient ways to test software is critical to reduce cost, time, and effort. Black-box testing and White-box testing are two essential components of software testing. Black-box testing focuses on the software's functionality, while White-box testing examines its internal structure. These tests contribute significantly to ensuring program coverage, which remains one of the main goals of the software testing paradigm. One of the main problems in this area is the identification of appropriate paths for program coverage, which are referred to as test sequences. Creating an automated and effective test sequence is a challenging task in the software testing process. In the proposed methodology, the challenge of "test sequence generation" is considered a multi-objective optimization problem that includes the Oracle cost and the path, both of which are optimized in a symmetrical manner to achieve optimal software testing. Multi-Objective Particle Swarm Optimization (MOPSO) is used to represent the test sequences with the highest priority and the lowest Oracle cost as optimal. The performance of the implemented approach is compared with the Multi-Objective Firefly Algorithm (MOFA) for generating test sequences. The MOPSO-based solution outperforms the MOFA-based approach and simultaneously provides the optimal solution for both objectives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。