On Path-Wise Automatic Generation of Test Data for Both White-Box and Black-Box Testing

  • Authors:
  • Jin-Hui Shan;Ji Wang;Zhi-Chang Qi

  • Affiliations:
  • -;-;-

  • Venue:
  • APSEC '01 Proceedings of the Eighth Asia-Pacific on Software Engineering Conference
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

Automatic generation of test data for a given path in a program is one of the elementary problems in software testing, the difficulty of which lies in the fact that how to solving nonlinear constraint is unsolvable in theory.Gupta et al proposed a method, which is referred to as the Iterative Relaxation Method, to address the above problem by linearizing the predicate functions [1 ].This paper improves the Iterative Relaxation Method by omitting the constructions of predicate slice and input dependency set, and proves the equivalence of systems of constraints generated by both methods.Since it is not needed for our method to analyze the dependencies between statements on the path in the course of deriving of system of constraints, our method still work whensome statements are only object or executable codes ratherthan source codes on the path. Therefore, our method is fitfor generating test data for black-box testing and regressiontesting also.We have developed a prototype of path-wise testdata generator whose fundamental algorithm is presented inthis paper.The initial experiments with this prototype haveshown that our method is practical.