A Genetic Algorithm based Approach for Test Data Generation in Basis Path Testing
چکیده
Software testing is a process to identify the quality and reliability of software, which can be achieved through the help of proper test data. However, doing this manually is a difficult task due to the presence ofhuge number of predicate nodes in the module. So, thisleads towards a problem of NP-complete. Therefore, someintelligence-based search algorithms have to be used to generate test data.In this paper, a soft computing based approach for generating test data automatically using genetic algorithmbased upon the set of basis paths is proposed.This paper combines the characteristics of genetic algorithm with test data, making use of the merits of respective global and local optimization capability to improve the generation capacity of test data.This automated process of generating test data optimally helps in reducing the test effort and time of a tester.Finally, the proposed approach is applied tothe ATM withdrawal task. Experimental results show that GA was able to generate suitable test data based on a fitness value and avoid redundant data by optimization. Keywords-basis path; cyclomatic complexity; fitness function; genetic algorithm; test data.