Test data generation approach for basis path coverage

  • Authors:
  • Shujuan Jiang;Yanmei Zhang;Dandan Yi

  • Affiliations:
  • China University of Mining and Technology Xuzhou, Jiangsu Province, China;China University of Mining and Technology Xuzhou, Jiangsu Province, China;China University of Mining and Technology Xuzhou, Jiangsu Province, China

  • Venue:
  • ACM SIGSOFT Software Engineering Notes
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

On the basis of determining the feasibility of paths, this paper proposes an evolutionary approach to generating test data for feasible basis path coverage. First, the structure of the program under test is expressed by a control flow graph, and the target paths are encoded into the form of hybrid-coding that efficiently combines the statement label with the outcome of a conditional statement (i.e. T or F). Then, the genetic algorithm is employed to generate test data for multiple paths coverage, and the fitness function of an input data (an individual) takes into account the degree of the execution track matching the target paths. Finally, the proposed approach is applied in several benchmark programs. The experimental results show that the proposed approach cannot only avoid redundant test but also improve the efficiency of test data generation effectively