Machine Intelligence Research Labs (MIR Labs), Auburn, WA 98071, USA.
Department of Computer Science and Engineering, Guru Jambheshwar University of Science and Technology, Hisar 125001, India.
Sensors (Basel). 2022 Jun 9;22(12):4374. doi: 10.3390/s22124374.
The emerging areas of IoT and sensor networks bring lots of software applications on a daily basis. To keep up with the ever-changing expectations of clients and the competitive market, the software must be updated. The changes may cause unintended consequences, necessitating retesting, i.e., regression testing, before being released. The efficiency and efficacy of regression testing techniques can be improved with the use of optimization approaches. This paper proposes an improved quantum-behaved particle swarm optimization approach for regression testing. The algorithm is improved by employing a fix-up mechanism to perform perturbation for the combinatorial TCP problem. Second, the dynamic contraction-expansion coefficient is used to accelerate the convergence. It is followed by an adaptive test case selection strategy to choose the modification-revealing test cases. Finally, the superfluous test cases are removed. Furthermore, the algorithm's robustness is analyzed for fault as well as statement coverage. The empirical results reveal that the proposed algorithm performs better than the Genetic Algorithm, Bat Algorithm, Grey Wolf Optimization, Particle Swarm Optimization and its variants for prioritizing test cases. The findings show that inclusivity, test selection percentage and cost reduction percentages are higher in the case of fault coverage compared to statement coverage but at the cost of high fault detection loss (approx. 7%) at the test case reduction stage.
物联网和传感器网络等新兴领域每天都会带来许多软件应用。为了满足客户不断变化的期望和竞争激烈的市场,软件必须进行更新。这些更改可能会导致意外后果,因此在发布之前必须进行重新测试,即回归测试。通过使用优化方法可以提高回归测试技术的效率和效果。本文提出了一种改进的量子行为粒子群优化回归测试方法。该算法通过采用修复机制来对组合 TCP 问题进行干扰,从而得到改进。其次,使用动态收缩扩张系数来加速收敛。其次,采用自适应测试用例选择策略来选择修改揭示测试用例。最后,删除多余的测试用例。此外,还分析了算法的健壮性,以进行故障和语句覆盖。实验结果表明,与遗传算法、蝙蝠算法、灰狼优化、粒子群优化及其变体相比,该算法在优先化测试用例方面表现更好。结果表明,在故障覆盖的情况下,包容性、测试选择百分比和成本降低百分比都更高,而在测试用例减少阶段,故障检测损失(约 7%)更高。