Abstract
In the progression of computer-based structures and products, software has turned out to be a vital element. Software testing is an utmost effort of an intense segment in the software development life cycle. In the same manner, everyone like to minimalize the struggle and distinguish the most of the number of errors. Automatic test case production helps to minimize the price and time effort. Worldwide a single or most significant method of automatic test case production is a crucial issue in software testing and a warm problem in the study of software testing. The paper proposed a genetic algorithm (GA) to improve the test case and the submission of the artificial intelligence (AI) approaches that is applied in software testing for automatic software testing. The data of test cases are produced randomly by put on the conditional coverage on the source code and creating the control flow graph (CFG) of the source code and then applying GA test cases that are automatically generated. GA makes the test cases optimized and outperforms which is produced by a type of testing named random testing (RT). It is an effective technique for enhancing test cases by applying GA and conditional coverage as well that implemented in MATLAB. Automated test case production improves the software testing approaches and advances the quality of software. Like this automated test, case production decreases the complete cost of software development for software-based systems.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Khan, R. A., Khan, S. U., Khan, H. U., & Ilyas, M. (2021). Systematic mapping study on security approaches in secure software engineering. IEEE Access, 9, 19139–19160. https://doi.org/10.1109/ACCESS.2021.3052311
Wu, H., Nie, C., Petke, J., Jia, Y., & Harman, M. (2020). An empirical comparison of combinatorial testing, random testing and adaptive random testing. IEEE Transactions on Software Engineering, 46(3), 302–320. https://doi.org/10.1109/TSE.2018.2852744
Priyanka, S., & Subhashni, R. (2021). Automatic test case generation using hybrid genetic algorithm. In 2021 Second International Conference on Electronics and Sustainable Communication Systems (ICESC). https://doi.org/10.1109/icesc51422.2021.9532880
Yao, X., Gong, D., Li, B., Dang, X., & Zhang, G. (2020). Testing method for software with randomness using genetic algorithm. IEEE Access, 8, 61999–62010. https://doi.org/10.1109/ACCESS.2020.2983762
Di Nucci, D., Panichella, A., Zaidman, A., & De Lucia, A. (2020). A test case prioritization genetic algorithm guided by the hypervolume indicator. IEEE Transactions on Software Engineering, 46(6), 674–696. https://doi.org/10.1109/TSE.2018.2868082
Moawad, A., Islam, E., Kim, N., Vijayagopal, R., Rousseau, A., & Wu, W. B. (2021). Explainable AI for a No-Teardown vehicle component cost estimation: A top-down approach. IEEE Transactions on Artificial Intelligence, 2(2), 185–199. https://doi.org/10.1109/TAI.2021.3065011
Ye, C., Ding, Y., Wang, P., & Lin, Z. (2019). A data-driven bottom-up approach for spatial and temporal electric load forecasting. IEEE Transactions on Power Systems, 34(3), 1966–1979. https://doi.org/10.1109/TPWRS.2018.2889995
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Srivastava, J., Malik, A., Bhushan, B., Parihar, V., Nair, S. (2023). Genetic Algorithm: An Approach for Software Testing Based on a Given Source Code. In: Sharma, D.K., Peng, SL., Sharma, R., Jeon, G. (eds) Micro-Electronics and Telecommunication Engineering . Lecture Notes in Networks and Systems, vol 617. Springer, Singapore. https://doi.org/10.1007/978-981-19-9512-5_49
Download citation
DOI: https://doi.org/10.1007/978-981-19-9512-5_49
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-19-9511-8
Online ISBN: 978-981-19-9512-5
eBook Packages: EngineeringEngineering (R0)