Int J Performability Eng ›› 2018, Vol. 14 ›› Issue (6): 1251-1262.doi: 10.23940/ijpe.18.06.p16.12511262

• Original articles • Previous Articles     Next Articles

Decomposing Constraints for Better Coverage in Test Data Generation

Ju Qian, Kun Liu, Hao Chen, Zhiyi Zhang, and Zhe Chen   

  1. College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, 210016, China

Abstract:

In black-box testing, a possible choice for test data generation is to derive test data from interface constraints using some constraint solving techniques. However, directly performing constraint solving to the whole constraint formula may not be able to fully leverage the information embodied in a constraint. Thus, it is difficult to obtain a high coverage test set. For example, when solving a constraint (a > 0 or b < 0) in a whole, we cannot guarantee that data covering sub-constraint b < 0 will be involved in the test set. To address the problem, in this paper, we firstly define a hierarchy of coverage criteria at the specification constraint level. Then, algorithms are designed to decompose constraints according to such coverage criteria and to generate test input sets. The experiments on a set of benchmark programs show that decomposing constraints according to constraint-level coverage criteria does effectively lead to better coverage in test data generation.


Submitted on March 6, 2018; Revised on April 21, 2018; Accepted on May 19, 2018
References: 22