Abstract
This paper presents a method for path testing by generating the test data automatically and optimizing the test data to test the critical paths for a software under test (SUT), using real-coded genetic algorithm. Real encoding is used for automatic test data generation, and a representative test suite, which achieves 100% path coverage, is found as an optimum result. In this paper, the proposed real-coded genetic algorithm for path coverage (RCGAPC) generates a set of inputs for testing a specific software and outperforms by giving effective and efficient results in terms of less number of test data generation counts. In the proposed approach, one-to-one injective mapping scheme is used for mapping the test data to the corresponding path and the most critical path is covered during path testing of a specific software. It seems to be faster than the traditional GA in covering critical path. The proposed method can reduce the number of test data generation required for path testing of a SUT and give an optimized Test suite that covers 100% path for specific software.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Mathur, A.P.: Foundations of Software Testing, 2 edn. Pearson Education, India (2013)
Mishra, D.B., Bilgaiyan, S., Mishra, R., Acharya, A.A., Mishra, S.: A review of random test case generation using genetic algorithm. Indian J. Sci. Technol. 10(30) (2017)
Chauhan, N.: Software Testing: Principles and Practices. Oxford University Press (2010)
Srivastava, P.R., Kim, T.H.: Application of genetic algorithm in software testing. Int. J. Softw. Eng. Appl. 3(4), 87–96 (2009)
Thi, D.N., Hieu, V.D., Ha, N.V.: November. A technique for generating test data using genetic algorithm. In: 2016 International Conference on Advanced Computing and Applications (ACOMP), pp. 67–73. IEEE (2016)
Sharma, A., Rishon, P., Aggarwal, A.: Software testing using genetic algorithms. Int. J. Comput. Sci. Eng. Surv. (IJCSES) 7(2), 21–33 (2016)
Deb, K.: Optimization for Engineering Design: Algorithms and Examples. PHI Learning Pvt. Ltd. (2012)
Mishra, D.B., Mishra, R., Das, K.N., Acharya, A.A.: A systematic review of software testing using evolutionary techniques. In: Proceedings of Sixth International Conference on Soft Computing for Problem Solving, pp. 174–184. Springer, Singapore (2017)
Goldberg, D.E.: Real-coded genetic algorithms, virtual alphabets, and blocking. Complex Syst. 5(2), 139–167 (1991)
Umbarkar, A.J., Sheth, P.D.: Crossover operators in genetic algorithms: a review. ICTACT J. Soft Comput. 6(1) (2015)
Heitzinger, C.: Simulation and inverse modeling of semiconductor manufacturing processes (2002)
Lin, J.C., Yeh, P.L.: Using genetic algorithms for test case generation in path testing. In: Proceedings of the Ninth Asian Test Symposium, 2000 (ATS 2000), pp. 241–246. IEEE (2000)
Jones, B.F., Sthamer, H.H., Eyres, D.E.: Automatic structural testing using genetic algorithms. Softw. Eng. J. 11(5), 299–306 (1996)
Hermadi, I., Ahmed, M.A.: Genetic algorithm based test data generator. In: The 2003 Congress on Evolutionary Computation, 2003, CEC’03, vol. 1, pp. 85–91. IEEE (2003)
Ahmed, M.A., Hermadi, I.: GA-based multiple paths test data generator. Comput. Oper. Res. 35(10), 3107–3124 (2008)
Chen, Y., Zhong, Y.: Automatic path-oriented test data generation using a multi-population genetic algorithm. In: Fourth International Conference on Natural Computation, 2008, ICNC’08, vol. 1, pp. 566–570. IEEE (2008)
Boopathi, M., Sujatha, R., Kumar, C.S., Narasimman, S.: The mathematics of software testing using genetic algorithm. In: 2014 3rd International Conference on Reliability, Infocom Technologies and Optimization (ICRITO). Trends and Future Directions, pp. 1–6. IEEE (2014)
Khan, R., Amjad, M., Srivastava, A.K.: Optimization of Automatic Generated Test Cases for Path Testing Using Genetic Algorithm. In: 2016 Second International Conference on Computational Intelligence & Communication Technology (CICT), Ghaziabad, 2016, pp. 32–36 (2016)
Shimin, L., Zhangang, W.: Genetic algorithm and its application in the path-oriented test data automatic generation. Procedia Eng. 15, 1186–1190 (2011)
Ghiduk, A.S.: Automatic generation of basis test paths using variable length genetic algorithm. Inf. Process. Lett. 114(6), 304–316 (2014)
Bartle, R.G., Bartle, R.G.: The Elements of Real Analysis, vol. 2. Wiley, New York (1964)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Mishra, D.B., Mishra, R., Das, K.N., Acharya, A.A. (2019). Test Case Generation and Optimization for Critical Path Testing Using Genetic Algorithm. In: Bansal, J., Das, K., Nagar, A., Deep, K., Ojha, A. (eds) Soft Computing for Problem Solving. Advances in Intelligent Systems and Computing, vol 817. Springer, Singapore. https://doi.org/10.1007/978-981-13-1595-4_6
Download citation
DOI: https://doi.org/10.1007/978-981-13-1595-4_6
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-1594-7
Online ISBN: 978-981-13-1595-4
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)