The Modified Sparrow Search Algorithm with Brown Motion and Levy Flight Strategy for the Class Integration Test Order Generation Problem
Source abstract
Abstract
Software testing identifies potential errors and defects in software. A crucial component of software testing is integration testing, and the generation of class integration test orders (CITOs) is a critical topic in integration testing. The research shows that search-based algorithms can solve this problem effectively. As a novel search-based algorithm, the sparrow search algorithm (SSA) is good at finding the optimal to optimization problems, but it has drawbacks like weak population variety later on and the tendency to easily fall into the local optimum. To overcome its shortcomings, a modified sparrow search algorithm (MSSA) is developed and applied to the CITO generation issue. The algorithm is initialized with a good point set strategy, which distributes the sparrows evenly in the solution space. Then, the discoverer learning strategy of Brownian motion is introduced and the Levy flight is utilized to renew the positions of the followers, which balances the global search and local search of the algorithm. Finally, the optimal solution is subjected to random wandering to increase the probability of the algorithm jumping out of the local optimum. Using the overall stubbing complexity as a fitness function to evaluate different class test sequences, experiments are conducted on open-source Java systems, and the experimental results demonstrate that the MSSA generates test orders with lower stubbing cost in a shorter time than other novel intelligent algorithms. The superiority of the proposed algorithm is verified by five evaluation indexes: the overall stubbing complexity, attribute complexity, method complexity, convergence speed, and running time. The MSSA has shown significant advantages over the BSSA in all aspects. Among the nine systems, the total overall stubbing complexity of the MSSA is 13.776% lower than that of the BSSA. Total time is reduced by 23.814 s.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Software Testing and Debugging Techniques · Advanced Malware Detection Techniques · Machine Learning and Data Classification
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Laboratory for Advanced Computing and Intelligence Engineering, Information Engineering University, Zhengzhou 450001, China
Henan Information Engineering School, Zhengzhou Vocational College of Industrial Safety, Zhengzhou 450011, China
School of Computer and Artificial Intelligence, Zhengzhou University, Zhengzhou 450001, China
Software College, Zhongyuan University of Technology, Zhengzhou 450007, China
Funding
National Natural Science Foundation of China
References (48)
Show source-provided references
1. On cost-effective software defect prediction: Classification or ranking?10.1016/j.neucom.2019.05.100 ↗
2. Software testing with large language models: Survey, landscape, and vision10.1109/TSE.2024.3368208 ↗
3. Evaluating the effects of similar-class combination on class integration test order generation10.1016/j.infsof.2020.106438 ↗
4. Devising optimal integration test orders using cost-benefit analysis10.1631/FITEE.2100466 ↗
5. On regression testing of object-oriented programs10.1016/0164-1212(95)00047-X ↗
6. Efficient object-oriented integration and regression testing10.1109/24.855533 ↗
7. Hewett, R., and Kijsanayothin, P. (2009, January 16–20). Automated test order generation for software component integration testing. Proceedings of the 2009 IEEE/ACM International Conference on Automated Software Engineering, Auckland, New Zealand.10.1109/ASE.2009.84 ↗
8. Sakovich, N., Aksenov, D., Pleshakova, E., and Gataullin, S. (2024). MAMGD: Gradient-based optimization method using exponential decay. Technologies, 12.10.3390/technologies12090154 ↗
9. SSC: A hybrid nature-inspired meta-heuristic optimization algorithm for engineering applications10.1016/j.knosys.2021.106926 ↗
10. Genetic algorithms: Theory, genetic operators, solutions, and applications10.1007/s12065-023-00822-6 ↗
11. Particle swarm optimization algorithm and its applications: A systematic review10.1007/s11831-021-09694-4 ↗
12. Optimizing software reliability growth models through simulated annealing algorithm: Parameters estimation and performance analysis10.1007/s11227-024-06046-4 ↗
13. Aquila optimizer: A novel meta-heuristic optimization algorithm10.1016/j.cie.2021.107250 ↗
14. A Novel Smell Agent Optimization (SAO): An extensive CEC study and engineering application10.1016/j.knosys.2021.107486 ↗
15. The arithmetic optimization algorithm10.1016/j.cma.2020.113609 ↗
16. An optimization algorithm applied to the class integration and test order problem10.1007/s00500-018-3077-1 ↗
17. A multi-objective optimization approach for the integration and test order problem10.1016/j.ins.2013.12.040 ↗
18. Guizzo, G., Fritsche, G.M., Vergilio, S.R., and Pozo, A.T.R. (2015, January 11). A hyper-heuristic for the multi-objective integration and test order problem. Proceedings of the 2015 Annual Conference on Genetic and Evolutionary Computation, Madrid, Spain.10.1145/2739480.2754725 ↗
19. Mariani, T., Guizzo, G., Vergilio, S.R., and Pozo, A.T. (2016, January 20). Grammatical evolution for the multi-objective integration and test order problem. Proceedings of the Genetic and Evolutionary Computation Conference 2016, Denver, CO, USA.10.1145/2908812.2908816 ↗
20. Generating optimal class integration test orders using genetic algorithms10.1142/S0218194022500309 ↗
21. Borner, L., and Paech, B. (2009, January 20–25). Integration test order strategies to consider test focus and simulation effort. Proceedings of the 2009 First International Conference on Advances in System Testing and Validation Lifecycle, Porto, Portugal.10.1109/VALID.2009.30 ↗
22. A novel swarm intelligence optimization approach: Sparrow search algorithm10.1080/21642583.2019.1708830 ↗
23. Liu, G., Shu, C., Liang, Z., Peng, B., and Cheng, L. (2021). A modified sparrow search algorithm with application in 3d route planning for UAV. Sensors, 21.10.3390/s21041224 ↗
24. A sparrow search algorithm with intelligent weight factors and mutation operators and applications to image classification10.3233/JIFS-212883 ↗
25. A new elite opposite sparrow search algorithm-based optimized LightGBM approach for fault diagnosis10.1007/s12652-022-03703-5 ↗
26. Sun, L., Lin, Y., Pan, N., Fu, Q., Chen, L., and Yang, J. (2023). Demand-Side electricity load forecasting based on time-series decomposition combined with kernel extreme learning machine improved by sparrow algorithm. Energies, 16.10.3390/en16237714 ↗
27. Improved sparrow search algorithm with the extreme learning machine and its application for prediction10.1007/s11063-022-10804-x ↗
28. Enhancing sparrow search algorithm via multi-strategies for continuous optimization problems10.1016/j.ipm.2021.102854 ↗
29. A learning sparrow search algorithm10.1155/2021/3946958 ↗
30. Improved sparrow search algorithm based on iterative local search10.1155/2021/6860503 ↗
31. Liang, Q., Chen, B., Wu, H., and Han, M. (2021, January 23–26). A novel modified sparrow search algorithm based on adaptive weight and improved boundary constraints. Proceedings of the 2021 IEEE 6th International Conference on Computer and Communication Systems (ICCCS), Chengdu, China.10.1109/ICCCS52626.2021.9449311 ↗
32. A stochastic configuration network based on chaotic sparrow search algorithm10.1016/j.knosys.2021.106924 ↗
33. An improved sparrow search algorithm based on quantum computations and multi-strategy enhancement10.1016/j.eswa.2022.119421 ↗
34. Understanding large-scale software systems–structure and flows10.1007/s10664-021-09938-8 ↗
35. Progress on class integration test order generation approaches: A systematic literature review10.1016/j.infsof.2022.107133 ↗
36. Advances in sparrow search algorithm: A comprehensive survey10.1007/s11831-022-09804-w ↗
37. Good point set based genetic algorithm
38. Pore-scale analysis of two-phase nanofluid flow and heat transfer in open-cell metal foams considering Brownian motion10.1016/j.applthermaleng.2022.119847 ↗
39. A novel particle swarm optimization algorithm with Lévy flight and orthogonal learning10.1016/j.swevo.2022.101207 ↗
40. A Quasi oppositional smell agent optimization and its levy flight variant: A PV/Wind/battery system optimization application10.1016/j.asoc.2023.110813 ↗
41. Differential evolution: A review of more than two decades of research10.1016/j.engappai.2020.103479 ↗
42. Briand, L.C., Feng, J., and Labiche, Y. (2002, January 15). Using genetic algorithms and coupling measures to devise optimal integration test orders. Proceedings of the 14th International Conference on Software Engineering and Knowledge Engineering, Ischia, Italy.10.1145/568766.568769 ↗
43. Multi-strategy serial cuckoo search algorithm for global optimization10.1016/j.knosys.2020.106729 ↗
44. An improved firefly algorithm for global continuous optimization problems10.1016/j.eswa.2020.113340 ↗
45. Adaptive inertia weight bat algorithm with sugeno-function fuzzy search10.1016/j.asoc.2020.106159 ↗
46. Clustering method and sine cosine algorithm for image segmentation10.1007/s12065-020-00544-z ↗
47. A multi-level thresholding image segmentation method using hybrid arithmetic optimization and harris hawks optimizer algorithms10.1016/j.eswa.2023.122316 ↗
48. Review and empirical analysis of sparrow search algorithm10.1007/s10462-023-10435-1 ↗