Journal of Advanced Database Management & Systems

A Framework for Test Data Generation Using Genetic Algorithm

  1. Bindhyachal Kumar Singh ✉
  2. Arun Solanki
  3. Ashish Kumar

Abstract

Software testing is one of the best methods to increase the confidence of the programmers in terms of correctness, quality and reliability of software. The testing effort is divided into three parts: test case generation, test execution, and test assessment. The goal of software testing is to design a set of minimal number of test data such that it reveals as many faults as possible. This paper proposed a framework for generating efficient test data for path testing using genetic algorithm (GA). The proposed framework accepts a program unit files and then generate a control flow diagram (CFG). The CFG is used for identification of paths in a detailed form with the help of path selection criteria. The identified path is used to select a target path using probability theory. Finally the selected path and execution of genetic algorithm are used to generate the final test data. The proposed framework also provides a facility for evaluation of generated test data to ensure their effectiveness in terms of coverage and efficiency. The proposed framework reduces time, effort and also increases the quality of generated test data. This paper is organized into three parts: part I discuss the applicability of genetic algorithm in software testing, part II describes the proposed framework, part III presents the experimental case study.Cite this ArticleBindhyachal Kumar Singh, Arun Solanki, Ashish Kumar. A Framework for Test Data Generation Using Genetic Algorithm. Journal of Advanced Database Management & Systems. 2016; 3(1): 18–25p.

Keywords

References (15)

  1. Myers GJ. The Art of Software Testing . NY, USA: John Wiley and Sons; 1979.
  2. Miller EF. Introduction to Software Testing Technology . Tutorial: Software Test Data Generation Using Genetic Algorithm Singh et al. JoADMS (2016) 18-25 © STM Journals 2016. All Rights Reserved Page 25 Testing & Validation Techniques . 2nd Edn. IEEE Catalogue No. EHO 180 -0; 2001; 4–16p.
  3. Whittaker JA. What is Software Testing? And Why is it so Hard? IEEE Software . 2000; 70–79p.
  4. Beizer B. Software Testing Techniques . 2nd Edn . USA: Van Nostrand Reinhold ; 1990.
  5. Premal I, Nirpal B, Kale KV. Using Genetic Algorithm for Automate d Efficient Software Test Case generation for Path Testing . IEEE Int J Adv Netw Appl. 2011; 2: 911–915p.
  6. Singh BK. Automatic Efficient Test Data Generation Based on Genetic Algorithm for Path Testing . EARDA International Journal of Research in Engineering & Applied Sciences (IJREAS) . 2012; 2(2): 1460–1472p. ISSN: 2249-3905, India.
  7. Korel B. Automated Software Test Data Generation. IEEE Trans Softw Eng . 1990; 16(8): 870–879p.
  8. Xibo W, Shenyang SN. Automatic Test Data Generation for Path Testing Using Genetic Algorithms . IEEE Third International Conference on Measuring Technology and Mechatronics Automation (ICMTMA). 2011; 596–599p.
  9. Michael CC, McGraw GE, Schatz MA. Generating Software Test Data by Evolution. IEEE Trans Softw Eng. 2001; 27(12): 1085–1110p.
  10. Mall R. Fundamentals of Software Engineering. 3rd Edn . New Delhi, India: PHI; 2009.
  11. Pakinam NB, Nagwa LB, Hashem M, et al. A Proposed Test Case Generation Technique Based on Activity Diagrams . International Journal of Engineering & Technology IJET -IJENS. 2011; 11(03): 37–57p.
  12. Chen1 Y, Zhong Y, Shi 1 T, et al. Comparison of Two Fitness Functions for GA-based P ath-Oriented Test Data Generation. IEEE Fifth International Conference on Natural Computation. 2008; 566–570p.
  13. Holland JH. Adaptation in Natural and Artificial S ystem. The University of Michigan Press; 2008.
  14. Mahapatra RP, Singh J. Improving the Effectiveness of Software Testing through Test Case Reduction . In Proceedings of World Academy of Science, Engineering and Technology (WASET). 2008; 345– 350p.
  15. Edvardsson J. A Survey on Automatic Test Data Gen eration. In Proceedings of the Second Conference on Computer Science and Engineering in Linkoping (ECSEL). 1999; 21–28p. Cite this Article Bindhyachal Kumar Singh , Arun Solanki, Ashish Kumar. A Framework for Test Data Generation Using Genetic Algorithm. Journal of Advanced Database Management & Systems . 2016; 3(1): 18–25p.

Read more of it

Subscribe to one journal or build your own list of several. One invoice, one payment, access for a full year.

Subscribe to journals →

Publish your article

Peer-reviewed journals across every subject, with open access options. Send your manuscript to the right editor today.

Publish with us → Calculate your APC
Support