An Intelligent Method for Test Data Generation Based on Optimized Interval Arithmetic

Ying Xing,Yun-Zhan Gong,Ya-Wen Wang,Xu-Zhou Zhang
DOI: https://doi.org/10.14257/ijdta.2014.7.1.02
2014-01-01
International Journal of Database Theory and Application
Abstract:Path-oriented test data generation is in essence a Constraint Satisfaction Problem solved by search strategies, among which backtracking algorithms are widely used. In this paper, the backtracking algorithm Branch & Bound is introduced to generate path-oriented test data automatically. A model based on state space search is proposed to construct the search tree dynamically. Aiming at the programs containing constraints of strongly related variables even equalities, the static analysis technique interval arithmetic is optimized for the precise judgment of the assignment to each variable. The analysis on conflict is made accurate via distance for further domain reduction, thus ensuring the precise direction of the next search step. Experiments show that the proposed method outperformed other methods used in static test data generation. Specifically, it produces excellent results when variables are strongly related even when they are in equalities, and generation time increases stably and linearly with the increment of number of expressions including both equalities and inequalities.
What problem does this paper attempt to address?