Abstract
Regression testing is an essential but expensive activity to re-execute all the test cases every time the software updates. Test case prioritization and minimization reduces the cost and efforts required for retesting by prioritizing the test cases based on their importance and minimizing the redundancy. Optimization approaches further enhance the effectiveness of these techniques. In this paper, a discrete and combinatorial gravitational search algorithm is proposed to solve the test case prioritization and minimization problems. Furthermore, an improved version is developed using the chaotic map to update the gravitational constant. The proposed algorithms are compared with the most commonly used algorithm, i.e., genetic algorithm. Three subject programs of varying sizes are used for evaluation. Simulation results prove that the proposed algorithms are more efficient and effective than the genetic algorithm for test case prioritization and minimization. Statistical representation via boxplots of APFD and interval plots of minimized suite size performance metrics, confirms that the improved gravitational search algorithm with chaotic gravitational constant has a more squeezed distribution than the standard gravitational search algorithm.
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig1_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig2_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig3_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig4_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig5_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs41870-021-00628-8/MediaObjects/41870_2021_628_Fig6_HTML.png)
Similar content being viewed by others
References
Yoo S, Harman M (2012) Regression testing minimization, selection and prioritization: a survey. Softw Test Verif Reliab 22(2):67–120
Bajaj A, Sangwan OP (2018) “A survey on regression testing using nature-inspired approaches”, Proceedings of 4th International Conference on Computing, Communication and Automation (ICCCA), pp. 1–5, IEEE.
Bajaj A, Sangwan OP (2019) A systematic literature review of test case prioritization using genetic algorithms. IEEE Access 7:126355–126375
Fister I Jr, Yang XS, Fister I, Brest J, Fister D (2013) A brief review of nature-inspired algorithms for optimization. ar**v Preprint ar**v 1:1307–4186
Khatibsyarbini M, Isa MA, Jawawi DN, Hamed HNA, Suffian MDM (2019) Test case prioritization using firefly algorithm for software testing. IEEE Access 7:132360–132373
Bajaj A, Sangwan OP (2021) Test case prioritization using bat algorithm. Recent Adv Comp Sci Commun 14(2):1–6. https://doi.org/10.2174/221327591266619022615434
Dhareula P, Ganpati A (2020) Flower pollination algorithm for test case prioritization in regression testing. In ICT analysis and applications. Springer, Singapore, pp 155–167
Mishra DB, Panda N, Mishra R, Acharya AA (2020) Total fault exposing potential based test case prioritization using genetic algorithm. Internat J Inform Technol 11(4):633–637
Li Z, Harman M, Hierons RM (2007) Search algorithms for regression test case prioritization. IEEE Trans Software Eng 33(4):225–237
Bajaj A, Sangwan OP (2019) “Study the impact of parameter settings and operators role for genetic algorithm based test case prioritization”, Proceedings of International Conference on Sustainable Computing in Science, Technology and Management. pp. 1564–1569, Elsevier.
Rashedi E, Nezamabadi-Pour H, Saryazdi S (2009) GSA: a gravitational search algorithm. Inf Sci 179(13):2232–2248
Dhumane AV, Prasad RS (2019) Multi-objective fractional gravitational search algorithm for energy efficient routing in IoT. Wireless Netw 25(1):399–413
Gouthamkumar N, Sharma V, Naresh R (2015) Disruption based gravitational search algorithm for short term hydrothermal scheduling. Expert Syst Appl 42(20):7000–7011
Prakash J, Singh PK (2019) Gravitational search algorithm and K-means for simultaneous feature selection and data clustering: a multi-objective approach. Soft Comput 23(6):2083–2210
Somu N, Kaveri A, Krithivasan K (2020) IBGSS: an improved binary gravitational search algorithm based search strategy for QoS and ranking prediction in cloud environments. Appl Soft Comput 88:1059450
Mirjalili S, Gandomi AH (2017) Chaotic gravitational constants for the gravitational search algorithm. Appl Soft Comput 53:407–419
Bala I, Yadav A (2019) Gravitational search algorithm: a state-of-the-art review” in harmony search and nature inspired optimization algorithms. Springer, Singapore, pp 27–37
Farasat A, Menhaj MB, Mansouri T, Moghadam MRS (2010) ARO: a new model-free optimization algorithm inspired from asexual reproduction. Appl Soft Comput 10(4):1284–1292
Mansouri T, Farasat A, Menhaj MB, Moghadam MRS (2011) ARO: a new model free optimization algorithm for real time applications inspired by the asexual reproduction. Expert Syst Appl 38(5):4866–4874
Kaushik A, Singal N (2019) A hybrid model of wavelet neural network and metaheuristic algorithm for software development effort estimation. Internat J Inform Technol 1:1–10
Kumar D (2017) Feature selection for face recognition using DCT-PCA and Bat algorithm. Internat J Inform Technol 9(4):411–423
Jain A, Ratnoo S, Kumar D (2020) A novel multi-objective genetic algorithm approach to address class imbalance for disease diagnosis. Internat J Inform Technol 5:12–32
Mann M, Sangwan OP (2014) Test case prioritization using cuscutta search. Network Biol 4(4):179–192
Chaudhary N, Sangwan OP (2016) Multi objective test suite reduction for GUI based software using NSGA-II. Internat J Inform Technol Comput Sci 8:59–65
Bajaj A, Sangwan OP (2020) Nature-inspired approaches to test suite minimization for regression testing. In computational intelligence techniques and their applications to software engineering problems. CRC Press, Taylor, pp 99–110
Aggarwal D, Kumar V (2019) Performance evaluation of distance metrics on Firefly Algorithm for VRP with time windows. Internat J Inform Technol 3:1–8
Rhmann W (2020) Cross project defect prediction using hybrid search based algorithms. Internat J Inform Technol 12(2):531–538
Acknowledgement
The University Grants Commission supports this work under the JRF-NET scheme with reference number 3469/(NET-DEC. 2014).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Bajaj, A., Sangwan, O.P. Discrete and combinatorial gravitational search algorithms for test case prioritization and minimization. Int. j. inf. tecnol. 13, 817–823 (2021). https://doi.org/10.1007/s41870-021-00628-8
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s41870-021-00628-8