Skip to main content

Genetic Algorithm: An Approach for Software Testing Based on a Given Source Code

  • Conference paper
  • First Online:
Micro-Electronics and Telecommunication Engineering

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 617))

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.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

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

    Article  Google Scholar 

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

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

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

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

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

    Article  Google Scholar 

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

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ayasha Malik .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics