Skip to main content

Test Data Generation for Mutation Testing Using Genetic Algorithm

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

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

Abstract

Mutation testing is a fault-based unit testing in which faults are detected by executing certain test data designed by any white box testing technique. This paper presents a hybridized method for path testing as well as mutation testing by generating the test data automatically using genetic algorithm. In the proposed approach, first path coverage-based test data is generated and further this data is exercised to cover all mutants present in the specific program under test. The proposed method can improve the testing efficiency by deleting the redundant test data obtained from the path testing in terms of better mutation score, and fault detection matrix is used to delete the duplicate data covering same mutants.

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/e. Pearson Education India (2013)

    Google Scholar 

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

    Article  Google Scholar 

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

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

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

  6. Silva, R.A., de Souza, S.D.R.S., de Souza, P.S.L.: A systematic review on search based mutation testing. Inf. Softw. Technol. 81, 19–35 (2017)

    Article  Google Scholar 

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

    Google Scholar 

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

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

  10. Rani, S., Suri, B.: An approach for test data generation based on genetic algorithm and delete mutation operators. In: 2015 Second International Conference on Advances in Computing and Communication Engineering (ICACCE), pp. 714–718. IEEE, May 2015

    Google Scholar 

  11. Khan, R., Amjad, M.: Automatic test case generation for unit software testing using genetic algorithm and mutation analysis. In: 2015 IEEE UP Section Conference on Electrical Computer and Electronics (UPCON), pp. 1–5. IEEE, Dec 2015

    Google Scholar 

  12. Bashir, M.B., Nadeem, A.: Improved genetic algorithm to reduce mutation testing cost. IEEE Access 5, 3657–3674 (2017)

    Article  Google Scholar 

  13. Haga, H., Suehiro, A.: Automatic test case generation based on genetic algorithm and mutation analysis. In: 2012 IEEE International Conference on Control System, Computing and Engineering (ICCSCE), pp. 119–123. IEEE, Nov 2012

    Google Scholar 

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

    MathSciNet  MATH  Google Scholar 

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

    Google Scholar 

  16. Singh, G., Gupta, N., Khosravy, M.: New crossover operators for real coded genetic algorithm (RCGA). In: 2015 International Conference on Intelligent Informatics and Biomedical Sciences (ICIIBMS), pp. 135–140. IEEE, Nov 2015

    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, Oct 2014

    Google Scholar 

  18. Last, M., Eyal, S.: A fuzzy-based lifetime extension of genetic algorithms. Fuzzy Sets Syst. 149(1), 131–147 (2005)

    Article  MathSciNet  Google Scholar 

  19. Quyen, N.T.H., Tung, K.T., Binh, N.T.: Improving mutant generation for Simulink models using genetic algorithm. In: 2016 International Conference on Electronics, Information, and Communications (ICEIC), pp. 1–4. IEEE, Jan 2016

    Google Scholar 

  20. Khan, R., Amjad, M.: Optimize the software testing efficiency using genetic algorithm and mutation analysis. In: 2016 3rd International Conference on Computing for Sustainable Global Development (INDIACom), pp. 1174–1176. IEEE, Mar 2016

    Google Scholar 

  21. Khan, R., Amjad, M., Srivastava, A.K.: Generation of automatic test cases with mutation analysis and hybrid genetic algorithm. In: 2017 3rd International Conference on Computational Intelligence & Communication Technology (CICT), pp. 1–4. IEEE, Feb 2017

    Google Scholar 

  22. Masud, M., Nayak, A., Zaman, M., Bansal, N.: Strategy for mutation testing using genetic algorithms. In: 2005 Canadian Conference on Electrical and Computer Engineering, pp. 1049–1052. IEEE, May 2005

    Google Scholar 

  23. Mishra, K.K., Tiwari, S., Kumar, A., Misra, A.K.: An approach for mutation testing using elitist genetic algorithm. In: 2010 3rd IEEE International Conference on Computer Science and Information Technology (ICCSIT), vol. 5, pp. 426–429. IEEE, July 2010

    Google Scholar 

  24. Bybro, M., Arnborg, S.: A mutation testing tool for java programs. Master’s thesis, Stockholm University, Stockholm, Sweden (2003)

    Google Scholar 

  25. Dave, M., Agrawal, R.: Search based techniques and mutation analysis in automatic test case generation: a survey. In: 2015 IEEE International Advance Computing Conference (IACC), pp. 795–799. IEEE, June 2015

    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., Acharya, A.A., Das, K.N. (2019). Test Data Generation for Mutation 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_68

Download citation

Publish with us

Policies and ethics