传统基于随机算法、约束求解以及面向白盒测试的测试数据生成方法往往忽略了测试数据与数据库系统之间的依赖关系,同时并不适用于数据复用、We b应用测试。提出一种面向业务流程数据约束的测试数据生成与筛选方法,通过在We b业务流程模型中引入对测试数据的半形式化约束,利用数据池存储技术,并提高测试数据的复用性。通过案例表明,新的测试数据生成技术能够以较低的开销生成可用性高的测试数据集。%Conventional test data generation techniques based on random algorithm, constraint-solving and white-box testing oriented generation method ignore the dependency between test data and database, which are not suitable for test data reuse and web application testing. This paper presents a test data generation and selection approach based on data constraints in business processes, which improves the reusability of data by injecting semi-formalized constraints into web business pro-cess with data pool storage technique. The case study shows a set of test data with high usability can be generated by this technique with low consumption.
展开▼