banner

Requirement Aware Optimisation of Test Case Selection (R-OTCS) approach

Vivek Kulkarni, R. Madhanmohan, H. Venkateswara Reddy

Abstract


TCP (test case prioritization) is a difficult problem to solve. Its complexity grows in direct proportion to the addition or update of project modules. Prioritizing an enormous amount of test cases is a complicated task. To optimize test case prioritization, a variety of strategies and techniques are available. It has been noted that eradicating all flaws from a software project is very hard, and even after using several testing methodologies, some flaws remain in the project. The work that is suggested priorities not only the fault detection abilities of test cases across the whole suite, but also the defect degree and commercial relevance of the test case execution. The purpose of this study is to locate all undiscovered faults using a Requirement Aware Optimization of Test Case Selection (R-OTCS) approach. We applied the genetic algorithm (GA) to optimize this proposed approach. We calibrated GA for performance before applying it to a dataset by fine-tuning the algorithm. The proposed technique improves software dependability by finding errors early and detecting serious problems first. Prioritizing test cases that address business critical/major requirements also improves reliability. The average percentage of fault detection (APFD) metric is used to assess all generated sequences. The business criticality value is used to determine the test case score. The suggested ROTCS approach yielded encouraging results in terms of APFD score and fault detection rate.


Keywords


Optimisation; Genetic Algorithm; Testing; Prioritization; Test Cases

Full Text:

PDF

References


1. McDermid J. Book review: Software Engineering: A Practitioner’s Approach. Software Engineering Journal. 1995; 10(6): 266. doi: 10.1049/sej.1995.0031

2. Patton R. Software testing. 2001. p. 389.

3. Chittimalli PK, Harrold MJ. Recomputing Coverage Information to Assist Regression Testing. IEEE Transactions on Software Engineering. 2009; 35(4): 452-469. doi: 10.1109/tse.2009.4

4. Elbaum S, Kallakuri P, Malishevsky A, et al. Understanding the effects of changes on the cost‐effectiveness of regression testing techniques. Software Testing, Verification and Reliability. 2003; 13(2): 65-83. doi: 10.1002/stvr.263

5. Li Z, Harman M, Hierons RM. Search Algorithms for Regression Test Case Prioritization. IEEE Transactions on Software Engineering. 2007; 33(4): 225-237. doi: 10.1109/tse.2007.38

6. Zhang W, Qi Y, Zhang X, et al. On Test Case Prioritization Using Ant Colony Optimization Algorithm. 2019 IEEE 21st International Conference on High Performance Computing and Communications; IEEE 17th International Conference on Smart City; IEEE 5th International Conference on Data Science and Systems (HPCC/SmartCity/DSS). Published online August 2019. doi: 10.1109/hpcc/smartcity/dss.2019.00388

7. Bajaj A, Sangwan OP. Discrete cuckoo search algorithms for test case prioritization. Applied Soft Computing. 2021; 110: 107584. doi: 10.1016/j.asoc.2021.107584

8. Ahmed BS. Test case minimization approach using fault detection and combinatorial optimization techniques for configuration-aware structural testing. Engineering Science and Technology, an International Journal. 2016; 19(2): 737-753. doi: 10.1016/j.jestch.2015.11.006

9. Mohapatra SK, Prasad S. Test Case Reduction Using Ant Colony Optimization for Object Oriented Program. International Journal of Electrical and Computer Engineering (IJECE). 2015; 5(6): 1424. doi: 10.11591/ijece.v5i6.pp1424-1432

10. Zhang YN, Yang H, Lin ZK, et al. A Test Suite Reduction Method Based on Novel Quantum Ant Colony Algorithm. 2017 4th International Conference on Information Science and Control Engineering (ICISCE). Published online July 2017. doi: 10.1109/icisce.2017.176

11. Mondal D, Hemmati H, Durocher S. Exploring Test Suite Diversification and Code Coverage in Multi-Objective Test Case Selection. In: Proceedings of the 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST). doi: 10.1109/icst.2015.7102588

12. Khatibsyarbini M, Isa MA, Jawawi DNA. Particle Swarm Optimization for Test Case Prioritization Using String Distance. Advanced Science Letters. 2018; 24(10): 7221-7226. doi: 10.1166/asl.2018.12918

13. de Souza LS, Prudêncio RBC, Barros F de A, et al. Search based constrained test case selection using execution effort. Expert Systems with Applications. 2013; 40(12): 4887-4896. doi: 10.1016/j.eswa.2013.02.018

14. de Souza LS, Prudencio RBC, Barros F de A. A Hybrid Binary Multi-objective Particle Swarm Optimization with Local Search for Test Case Selection. In: Proceedings of the 2014 Brazilian Conference on Intelligent Systems. doi: 10.1109/bracis.2014.80

15. de Souza LS, Cavalcante Prudêncio RB, de Barros FA. A hybrid particle swarm optimization and harmony search algorithm approach for multi-objective test case selection,” J. Brazilian Comput. Soc. 2015; 21(1): 1-20. doi: 10.1186/S13173-015-0038-8/TABLES/4

16. Correia D. An industrial application of test selection using test suite diagnosability. In: Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. doi: 10.1145/3338906.3342493

17. Bajaj A, Abraham A. Prioritizing and Minimizing the Test Cases using the Dragonfly Algorithms. 2021; 13: 62-71.

18. Bajaj A, Sangwan OP. Tri-level regression testing using nature-inspired algorithms. Innovations in Systems and Software Engineering. 2021; 17(1): 1-16. doi: 10.1007/s11334-021-00384-9

19. Bharathi M. Hybrid Particle Swarm and Ranked Firefly Metaheuristic Optimization-Based Software Test Case Minimization. International Journal of Applied Metaheuristic Computing. 2021; 13(1): 1-20. doi: 10.4018/ijamc.290534

20. Nayak G, Ray M. Modified condition decision coverage criteria for test suite prioritization using particle swarm optimization. Int. J. Intell. Comput. Cybern. 2019; 12(4): 425-443. doi: 10.1108/IJICC-04-2019-0038/FULL/XML

21. Deneke A, Gizachew Assefa B, Kumar Mohapatra S. Test suite minimization using particle swarm optimization. Materials Today: Proceedings. 2022; 60: 229-233. doi: 10.1016/j.matpr.2021.12.472

22. Samad A, Mahdin HB, Kazmi R, et al. Multiobjective Test Case Prioritization Using Test Case Effectiveness: Multicriteria Scoring Method. Ali S, ed. Scientific Programming. 2021; 2021: 1-13. doi: 10.1155/2021/9988987

23. Agrawal AP, Kaur A. A comprehensive comparison of ant colony and hybrid particle swarm optimization algorithms through test case selection. Adv. Intell. Syst. Comput. 2018; 542: 397-405. doi: 10.1007/978-981-10-3223-3_38/COVER

24. Lodewijks G, Cao Y, Zhao N, et al. Reducing CO₂ Emissions of an Airport Baggage Handling Transport System Using a Particle Swarm Optimization Algorithm. IEEE Access. 2021; 9: 121894-121905. doi: 10.1109/access.2021.3109286

25. Sun J, Xu W, Feng B. A global search strategy of quantum-behaved particle swarm optimization. IEEE Conference on Cybernetics and Intelligent Systems, 2004. doi: 10.1109/iccis.2004.1460396

26. Lukemire J, Mandal A, Wong WK. d-QPSO: A Quantum-Behaved Particle Swarm Technique for Finding D-Optimal Designs with Discrete and Continuous Factors and a Binary Response. Technometrics. 2018; 61(1): 77-87. doi: 10.1080/00401706.2018.1439405

27. Iliyasu A, Fatichah C. A Quantum Hybrid PSO Combined with Fuzzy k-NN Approach to Feature Selection and Cell Classification in Cervical Cancer Detection. Sensors. 2017; 17(12): 2935. doi: 10.3390/s17122935

28. Peng C, Yan J, Duan S, et al. Enhancing Electronic Nose Performance Based on a Novel QPSO-KELM Model. Sensors. 2016; 16(4): 520. doi: 10.3390/s16040520

29. Guo X, Peng C, Zhang S, et al. A Novel Feature Extraction Approach Using Window Function Capturing and QPSO-SVM for Enhancing Electronic Nose Performance. Sensors. 2015; 15(7): 15198-15217. doi: 10.3390/s150715198

30. Wen T, Yan J, Huang D, et al. Feature Extraction of Electronic Nose Signals Using QPSO-Based Multiple KFDA Signal Processing. Sensors. 2018; 18(2): 388. doi: 10.3390/s18020388

31. dos Coelho LS. Gaussian quantum-behaved particle swarm optimization approaches for constrained engineering design problems. Expert Systems with Applications. 2010; 37(2): 1676-1683. doi: 10.1016/j.eswa.2009.06.044

32. Omkar SN, Khandelwal R, Ananth TVS, et al. Quantum behaved Particle Swarm Optimization (QPSO) for multi-objective design optimization of composite structures. Expert Systems with Applications. 2009; 36(8): 11312-11322. doi: 10.1016/j.eswa.2009.03.006




DOI: https://doi.org/10.32629/jai.v7i5.1045

Refbacks

  • There are currently no refbacks.


Copyright (c) 2024 Vivek Kulkarni, R. Madhanmohan, H. Venkateswara Reddy

License URL: https://creativecommons.org/licenses/by-nc/4.0/