Log in

Discrete and combinatorial gravitational search algorithms for test case prioritization and minimization

  • Original Research
  • Published:
International Journal of Information Technology Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price includes VAT (Germany)

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. Yoo S, Harman M (2012) Regression testing minimization, selection and prioritization: a survey. Softw Test Verif Reliab 22(2):67–120

    Article  Google Scholar 

  2. 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.

  3. Bajaj A, Sangwan OP (2019) A systematic literature review of test case prioritization using genetic algorithms. IEEE Access 7:126355–126375

    Article  Google Scholar 

  4. 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

    MATH  Google Scholar 

  5. 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

    Article  Google Scholar 

  6. 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

    Article  Google Scholar 

  7. 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

    Google Scholar 

  8. 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

    Article  Google Scholar 

  9. Li Z, Harman M, Hierons RM (2007) Search algorithms for regression test case prioritization. IEEE Trans Software Eng 33(4):225–237

    Article  Google Scholar 

  10. 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.

  11. Rashedi E, Nezamabadi-Pour H, Saryazdi S (2009) GSA: a gravitational search algorithm. Inf Sci 179(13):2232–2248

    Article  Google Scholar 

  12. Dhumane AV, Prasad RS (2019) Multi-objective fractional gravitational search algorithm for energy efficient routing in IoT. Wireless Netw 25(1):399–413

    Article  Google Scholar 

  13. Gouthamkumar N, Sharma V, Naresh R (2015) Disruption based gravitational search algorithm for short term hydrothermal scheduling. Expert Syst Appl 42(20):7000–7011

    Article  Google Scholar 

  14. 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

    Article  Google Scholar 

  15. 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

    Article  Google Scholar 

  16. Mirjalili S, Gandomi AH (2017) Chaotic gravitational constants for the gravitational search algorithm. Appl Soft Comput 53:407–419

    Article  Google Scholar 

  17. 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

    Book  Google Scholar 

  18. 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

    Article  Google Scholar 

  19. 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

    Article  Google Scholar 

  20. http://www.cs.umd.edu/~atif/Benchmarks/UMD2005b.html

  21. 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

    Google Scholar 

  22. Kumar D (2017) Feature selection for face recognition using DCT-PCA and Bat algorithm. Internat J Inform Technol 9(4):411–423

    Article  Google Scholar 

  23. 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

    Google Scholar 

  24. Mann M, Sangwan OP (2014) Test case prioritization using cuscutta search. Network Biol 4(4):179–192

    Google Scholar 

  25. 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

    Google Scholar 

  26. 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

    Google Scholar 

  27. 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

    Google Scholar 

  28. Rhmann W (2020) Cross project defect prediction using hybrid search based algorithms. Internat J Inform Technol 12(2):531–538

    Article  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Anu Bajaj.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s41870-021-00628-8

Keywords

Navigation