Skip to main content

Test Case Generation and Optimization for Critical Path Testing Using Genetic Algorithm

  • Conference paper
  • First Online:
Book cover Soft Computing for Problem Solving

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 817))

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.

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 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.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. Mathur, A.P.: Foundations of Software Testing, 2 edn. Pearson Education, India (2013)

    Google Scholar 

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

    Google Scholar 

  3. Chauhan, N.: Software Testing: Principles and Practices. Oxford University Press (2010)

    Google Scholar 

  4. Srivastava, P.R., Kim, T.H.: Application of genetic algorithm in software testing. Int. J. Softw. Eng. Appl. 3(4), 87–96 (2009)

    Google Scholar 

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

    Google Scholar 

  6. Sharma, A., Rishon, P., Aggarwal, A.: Software testing using genetic algorithms. Int. J. Comput. Sci. Eng. Surv. (IJCSES) 7(2), 21–33 (2016)

    Article  Google Scholar 

  7. Deb, K.: Optimization for Engineering Design: Algorithms and Examples. PHI Learning Pvt. Ltd. (2012)

    Google Scholar 

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

    Google Scholar 

  9. Goldberg, D.E.: Real-coded genetic algorithms, virtual alphabets, and blocking. Complex Syst. 5(2), 139–167 (1991)

    MathSciNet  MATH  Google Scholar 

  10. Umbarkar, A.J., Sheth, P.D.: Crossover operators in genetic algorithms: a review. ICTACT J. Soft Comput. 6(1) (2015)

    Google Scholar 

  11. Heitzinger, C.: Simulation and inverse modeling of semiconductor manufacturing processes (2002)

    Google Scholar 

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

    Google Scholar 

  13. Jones, B.F., Sthamer, H.H., Eyres, D.E.: Automatic structural testing using genetic algorithms. Softw. Eng. J. 11(5), 299–306 (1996)

    Article  Google Scholar 

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

    Google Scholar 

  15. Ahmed, M.A., Hermadi, I.: GA-based multiple paths test data generator. Comput. Oper. Res. 35(10), 3107–3124 (2008)

    Article  Google Scholar 

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

    Google Scholar 

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

    Google Scholar 

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

    Google Scholar 

  19. Shimin, L., Zhangang, W.: Genetic algorithm and its application in the path-oriented test data automatic generation. Procedia Eng. 15, 1186–1190 (2011)

    Article  Google Scholar 

  20. Ghiduk, A.S.: Automatic generation of basis test paths using variable length genetic algorithm. Inf. Process. Lett. 114(6), 304–316 (2014)

    Article  MathSciNet  Google Scholar 

  21. Bartle, R.G., Bartle, R.G.: The Elements of Real Analysis, vol. 2. Wiley, New York (1964)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rajashree Mishra .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics