Abstract
Software testing is the process of validating and verifying the computer program, application or product works according to its requirements. Computers have become an integral part of today’s society in all the aspects; therefore, it is important that there exist no errors that could compromise safety, security or even financial investment. This chapter, focus on basis path testing as a part of white-box testing to provide code with a level of test coverage by generating all the independent paths for the given code by using its control flow graph. These paths are generated by applying a hybrid algorithm of existing Cuckoo Search Algorithm and Bat Algorithm. The main focus of this chapter is designing of this hybrid algorithm in which basic egg-laying property of cuckoo and echolocation and loudness property of bat is made use of.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Pressman RS (2007) Software engineering: a practitioners approach, 6th edn. McGraw Hill, Chapter 1[33–47], 13[387–406], 14[420–444]
Sommerville (2007) Software engineering, 8th edn. Pearson, Chapter 1[27–42], 11[265–288], 23[561–589]
Srikanth A, Nandakishore JK, Naveen KV, Singh P, Srivastava PR (2011) Test Case Optimization using artificial bee colony algorithm. Commun Comput Inf Sci 192. Adv Comput Commun 5:570–579
Briand LC (2002) Ways software engineering can benefit from knowledge engineering. In: Proceeding in 14th software engineering and knowledge engineering (SEKE), Italy, pp 3–6
Srivastava PR (2009) Test case prioritization. Int J Theoret Appl Inf Technol 4(2):178–181
Srivastava PR, Baby KM (2010) Automated software testing using metaheuristic technique based on an ant colony optimization. In: Electronic system design (ISED), 2010 international symposium, Bhubaneswar, pp 235–240
Yang XS, Deb S (2009) Cuckoo search via Lévy flights. In: Proceeding in world congress on nature and biologically inspired computing (NaBIC 2009), USA. IEEE, pp 210–214
Srivastava PR, Singh AT, Kumhar H, Jain M (2012) Optimal test sequence generation in state based testing using cuckoo search. Int J Appl Evol Comput 3(3):17–32. IGI global, USA
Gandomi AH, Yang XS, Alavi AH (2011) Cuckoo search algorithm: a metaheuristic approach to solve structural optimization problems. Eng Comput 27(1):17–35. Springer
Yang XS, Gandomi AH, Algorithm Bat (2012) A novel approach for global engineering optimization. Eng Comput 29(5):464–483
Yang XS (2010) Nature inspired cooperative strategies for optimization (NICSO). In: Studies in computational intelligence, vol 284. Springer
Srivastava PR, Pradyot K, Sharma D, Gouthami KP (2015) Favourable test sequence generation in state-based testing using bat algorithm. Int J Comput Appl Technol 51(4):334–343. Inderscience
Dahal DK, Hossain A, Suwannasart T (2008) GA-based automatic test data generation for UML state diagrams with parallel paths. In: Advanced design and manufacture to gain a competitive edge. Springer
Srikanth A, Kulkarni NJ, Naveen KV, Singh P, Srivastava PR (2011) Test case optimization using artificial bee colony algorithm. ACC (3):570–579. Springer
Srivastava PR (2010) Structured testing using an ant colony optimization. In: IITM 2010, Allahabad, ICPS. ACM, pp 205–209
Srivastava PR, Khandelwal R, Khandelwal S, Kumar S, Ranganatha SS (2012) Automated test data generation using cuckoo search and tabu search (CSTS) algorithm. J Intell Syst 21(2):195–224
Rathore A, Bohara A, Prashil RG, Prashanth TSL, Srivastava PR (2011) Application of genetic algorithm and tabu search in software testing. In: Proceedings of the 4th Bangalore annual compute conference, Compute 2011, Bangalore, India, March 25–26, 2011
Agarwal K, Goyal M, Srivastava PR (2012) Code coverage using intelligent water drop (IWD. Int J Bio-Inspired Comput 4(6):392–402. Inderscience
Srivastava PR, Mallikarjun B, Yang X-S (2013) Optimal test sequence generation using firefly algorithm, Swarm and evolutionary computation, vol 8, pp 44–53. Elsevier
Srivastava PR, Baby KM (2010) Automated software testing using metahurestic technique based on an ant colony optimization. Electronic system design (ISED), 2010 international symposium, Bhubaneswar, pp 235–240
Payne RB, Sorenson MD, Klitz K (2005) The cuckoos. Oxford University Press, USA
Yang XS (2010) Nature-inspired metaheuristic algorithms, 2nd edn. Luniver Press
Leccardi M (2005) Comparison of three algorithms for Lèvy noise generation. In: Fifth EUROMECH nonlinear dynamics conference (ENOC’05), Israel, pp 1–6
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Srivastava, P.R. (2017). Path Generation for Software Testing: A Hybrid Approach Using Cuckoo Search and Bat Algorithm. In: Patnaik, S., Yang, XS., Nakamatsu, K. (eds) Nature-Inspired Computing and Optimization. Modeling and Optimization in Science and Technologies, vol 10. Springer, Cham. https://doi.org/10.1007/978-3-319-50920-4_16
Download citation
DOI: https://doi.org/10.1007/978-3-319-50920-4_16
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-50919-8
Online ISBN: 978-3-319-50920-4
eBook Packages: EngineeringEngineering (R0)